Class ServerInputBuffer
- java.lang.Object
-
- org.glassfish.grizzly.http.io.InputBuffer
-
- org.glassfish.grizzly.http.server.io.ServerInputBuffer
-
public class ServerInputBuffer extends InputBuffer
Server-side implementation of theInputBuffer.- Author:
- Alexey Stashok
-
-
Field Summary
-
Fields inherited from class org.glassfish.grizzly.http.io.InputBuffer
trailers
-
-
Constructor Summary
Constructors Constructor Description ServerInputBuffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpContentblockingRead()Read next chunk of data in this thread, block if needed.protected java.util.concurrent.ExecutorgetThreadPool()voidinitialize(Request serverRequest, FilterChainContext ctx)voidinitiateAsyncronousDataReceiving()Initiates 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
-
-
-
-
Method Detail
-
initialize
public void initialize(Request serverRequest, FilterChainContext ctx)
-
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
protected HttpContent blockingRead() throws java.io.IOException
Description copied from class:InputBufferRead next chunk of data in this thread, block if needed.- Overrides:
blockingReadin classInputBuffer- Returns:
HttpContent- Throws:
java.io.IOException- if an error occurs reading data from the wire.
-
updateInputContentBuffer
protected void updateInputContentBuffer(Buffer buffer)
- Overrides:
updateInputContentBufferin classInputBuffer
-
recycle
public void recycle()
Description copied from class:InputBufferRecycle this
InputBufferfor reuse.- Overrides:
recyclein classInputBuffer
-
getThreadPool
protected java.util.concurrent.Executor getThreadPool()
- Overrides:
getThreadPoolin classInputBuffer- Returns:
Executor, which will be used for notifying user registeredReadHandler.
-
-