Class FormDemuxer
java.lang.Object
io.micronaut.http.server.netty.multipart.FormDemuxer
- All Implemented Interfaces:
BufferConsumer
This class parses a
ByteBody into a sequence of RawFormFields.- Since:
- 5.0.0
- Author:
- Jonas Konrad
-
Nested Class Summary
Nested classes/interfaces inherited from interface BufferConsumer
BufferConsumer.Upstream -
Constructor Summary
ConstructorsConstructorDescriptionFormDemuxer(io.netty.contrib.multipart.PostBodyDecoder decoder, io.netty.channel.Channel channel, BodySizeLimits fieldLimits, BodySizeLimits totalLimits, ByteBody byteBody) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ReadBuffer rb) Send a buffer to this consumer.voidcomplete()Signal normal completion of the stream.voiddiscard()Signal that the upstream has discarded the remaining data, as requested byBufferConsumer.Upstream.allowDiscard().voidSignal an upstream error.reactor.core.publisher.Flux<RawFormField> fields()
-
Constructor Details
-
FormDemuxer
public FormDemuxer(io.netty.contrib.multipart.PostBodyDecoder decoder, io.netty.channel.Channel channel, BodySizeLimits fieldLimits, BodySizeLimits totalLimits, ByteBody byteBody)
-
-
Method Details
-
fields
-
add
Description copied from interface:BufferConsumerSend a buffer to this consumer. Ownership of the buffer transfers to the consumer.- Specified by:
addin interfaceBufferConsumer- Parameters:
rb- The buffer
-
complete
public void complete()Description copied from interface:BufferConsumerSignal normal completion of the stream.- Specified by:
completein interfaceBufferConsumer
-
discard
public void discard()Description copied from interface:BufferConsumerSignal that the upstream has discarded the remaining data, as requested byBufferConsumer.Upstream.allowDiscard().- Specified by:
discardin interfaceBufferConsumer
-
error
Description copied from interface:BufferConsumerSignal an upstream error.- Specified by:
errorin interfaceBufferConsumer- Parameters:
e- The error
-