Interface HttpContentProcessor

All Superinterfaces:
Toggleable
All Known Implementing Classes:
DefaultHttpContentProcessor

@Deprecated public interface HttpContentProcessor extends Toggleable
Deprecated.
Use the MessageBodyReader API instead
This class represents the first step of the HTTP body parsing pipeline. It transforms ByteBufHolder instances that come from a StreamedHttpRequest into parsed objects, e.g. json nodes or form data fragments.
Processors are stateful. They can receive repeated calls to add(io.netty.buffer.ByteBufHolder, java.util.Collection<java.lang.Object>) with more data, followed by a call to complete(java.util.Collection<java.lang.Object>) to finish up. Both of these methods accept a Collection out parameter that is populated with the processed items.
Since:
1.0
Author:
Graeme Rocher
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(io.netty.buffer.ByteBufHolder data, Collection<Object> out)
    Deprecated.
    Process more data.
    default void
    Deprecated.
    Cancel processing, clean up any data.
    default void
    Deprecated.
    Finish processing data.
    processSingle(io.netty.buffer.ByteBuf data)
    Deprecated.
    Process a single ByteBuf into a single item, if possible.
    Deprecated.
    Set the type of the values returned by this processor.

    Methods inherited from interface io.micronaut.core.util.Toggleable

    isEnabled