Class ServerInputBuffer
java.lang.Object
org.glassfish.grizzly.http.io.InputBuffer
org.glassfish.grizzly.http.server.io.ServerInputBuffer
Server-side implementation of the
InputBuffer.- Author:
- Alexey Stashok
-
Field Summary
Fields inherited from class org.glassfish.grizzly.http.io.InputBuffer
trailers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpContentRead next chunk of data in this thread, block if needed.protected Executorvoidinitialize(Request serverRequest, FilterChainContext ctx) voidInitiates asynchronous data receiving.voidrecycle()Recycle thisInputBufferfor reuse.protected voidupdateInputContentBuffer(Buffer buffer) Methods inherited from class org.glassfish.grizzly.http.io.InputBuffer
append, areTrailersAvailable, available, availableChar, close, fillFully, finished, getBuffer, getReadHandler, getTrailers, initialize, isAsyncEnabled, isClosed, isFinished, mark, markSupported, notifyAvailable, notifyAvailable, processingChars, read, read, read, readBuffer, readBuffer, readByte, readChar, ready, readyData, replayPayload, reset, setAsyncEnabled, setDefaultEncoding, skip, skip, terminate
-
Constructor Details
-
ServerInputBuffer
public ServerInputBuffer()
-
-
Method Details
-
initialize
-
initiateAsyncronousDataReceiving
public void initiateAsyncronousDataReceiving()Initiates asynchronous data receiving. This is service method, usually users don't have to call it explicitly.- Overrides:
initiateAsyncronousDataReceivingin classInputBuffer
-
blockingRead
Description copied from class:InputBufferRead next chunk of data in this thread, block if needed.- Overrides:
blockingReadin classInputBuffer- Returns:
HttpContent- Throws:
IOException- if an error occurs reading data from the wire.
-
updateInputContentBuffer
- Overrides:
updateInputContentBufferin classInputBuffer
-
recycle
public void recycle()Description copied from class:InputBufferRecycle this
InputBufferfor reuse.- Overrides:
recyclein classInputBuffer
-
getThreadPool
- Overrides:
getThreadPoolin classInputBuffer- Returns:
Executor, which will be used for notifying user registeredReadHandler.
-