Package io.fusionauth.http.body.request
Class ChunkedBodyProcessor
java.lang.Object
io.fusionauth.http.body.request.ChunkedBodyProcessor
- All Implemented Interfaces:
BodyProcessor
A body processor that handles chunked requests/responses.
- Author:
- Brian Pontarelli
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidprocessBuffer(Consumer<ByteBuffer> consumer) Called after bytes are read into the current buffer in order to process the bytes read.long
-
Field Details
-
MaxChunkSize
public static final int MaxChunkSize- See Also:
-
-
Constructor Details
-
ChunkedBodyProcessor
public ChunkedBodyProcessor(int bufferSize)
-
-
Method Details
-
currentBuffer
- Specified by:
currentBufferin interfaceBodyProcessor- Returns:
- The current buffer that the selector should use for reading.
-
isComplete
public boolean isComplete()- Specified by:
isCompletein interfaceBodyProcessor- Returns:
- True if the body processing is complete.
-
processBuffer
Description copied from interface:BodyProcessorCalled after bytes are read into the current buffer in order to process the bytes read.- Specified by:
processBufferin interfaceBodyProcessor- Parameters:
consumer- A consumer of finished ByteBuffers.
-
totalBytesProcessed
public long totalBytesProcessed()- Specified by:
totalBytesProcessedin interfaceBodyProcessor
-