Top Description Fields Constructors Methods
org.glassfish.grizzly.http.server.io

public Class ServerInputBuffer

extends InputBuffer
Class Inheritance
Imports
java.io.IOException, java.util.concurrent.Executor, org.glassfish.grizzly.Buffer, org.glassfish.grizzly.filterchain.FilterChainContext, org.glassfish.grizzly.http.HttpBrokenContent, .HttpContent, .HttpHeader, org.glassfish.grizzly.http.io.InputBuffer, org.glassfish.grizzly.http.server.HttpServerFilter, .Request

Server-side implementation of the InputBuffer.
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
private volatile Request
private volatile long
Inherited from org.glassfish.grizzly.http.io.InputBuffer:
trailers

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected HttpContent
blockingRead()

Overrides org.glassfish.grizzly.http.io.InputBuffer.blockingRead.

Read next chunk of data in this thread, block if needed.

private boolean
protected Executor
public void
initialize(final Request serverRequest, final FilterChainContext ctx)

private boolean
public void
public void
recycle()

Overrides org.glassfish.grizzly.http.io.InputBuffer.recycle.

Recycle this InputBuffer for reuse.

protected void
Inherited from org.glassfish.grizzly.http.io.InputBuffer:
appendareTrailersAvailableavailableavailableCharclosefillFullyfinishedgetBuffergetReadHandlergetTrailersinitializeisAsyncEnabledisClosedisFinishedmarkmarkSupportednotifyAvailablenotifyAvailableprocessingCharsreadreadreadreadBufferreadBufferreadBytereadCharreadyreadyDatareplayPayloadresetsetAsyncEnabledsetDefaultEncodingskipskipterminate

Field Detail

serverRequestback to summary
private volatile Request serverRequest
totalReadContentInBytesback to summary
private volatile long totalReadContentInBytes

Constructor Detail

ServerInputBufferback to summary
public ServerInputBuffer()

Method Detail

blockingReadback to summary
protected HttpContent blockingRead() throws IOException

Overrides org.glassfish.grizzly.http.io.InputBuffer.blockingRead.

Doc from org.glassfish.grizzly.http.io.InputBuffer.blockingRead.

Read next chunk of data in this thread, block if needed.

Annotations
@Override
Exceptions
IOException:
if an error occurs reading data from the wire.
checkChunkedMaxPostSizeback to summary
private boolean checkChunkedMaxPostSize()
getThreadPoolback to summary
protected Executor getThreadPool()

Overrides org.glassfish.grizzly.http.io.InputBuffer.getThreadPool.

Annotations
@Override
initializeback to summary
public void initialize(final Request serverRequest, final FilterChainContext ctx)
initializedback to summary
private boolean initialized()
initiateAsyncronousDataReceivingback to summary
public void initiateAsyncronousDataReceiving()

Overrides org.glassfish.grizzly.http.io.InputBuffer.initiateAsyncronousDataReceiving.

Initiates asynchronous data receiving. This is service method, usually users don't have to call it explicitly.

Annotations
@Override
recycleback to summary
public void recycle()

Overrides org.glassfish.grizzly.http.io.InputBuffer.recycle.

Doc from org.glassfish.grizzly.http.io.InputBuffer.recycle.

Recycle this InputBuffer for reuse.

Annotations
@Override
updateInputContentBufferback to summary
protected void updateInputContentBuffer(final Buffer buffer) throws IOException

Overrides org.glassfish.grizzly.http.io.InputBuffer.updateInputContentBuffer.

Annotations
@Override