public class InternalNio2InputBuffer extends AbstractNioInputBuffer<Nio2Channel>
| Modifier and Type | Class and Description |
|---|---|
protected class |
InternalNio2InputBuffer.SocketInputBuffer
This class is an input buffer which will read its data from an input
stream.
|
AbstractNioInputBuffer.HeaderParseData| Modifier and Type | Field and Description |
|---|---|
protected IOException |
e
Exception that occurred during writing.
|
protected AbstractEndpoint<Nio2Channel> |
endpoint
The associated endpoint.
|
protected boolean |
flipped
Track if the byte buffer is flipped
|
protected boolean |
interest
Track write interest
|
protected boolean |
readPending
Read pending flag.
|
headerBufferSize, socketReadBufferSizeactiveFilters, buf, end, filterLibrary, headers, HTTP_TOKEN_CHAR, inputStreamInputBuffer, lastActiveFilter, lastValid, parsingHeader, pos, request, sm, swallowInput| Constructor and Description |
|---|
InternalNio2InputBuffer(Request request,
int headerBufferSize) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
fill(boolean block)
Attempts to read some data into the input buffer.
|
protected Log |
getLog() |
protected void |
init(SocketWrapper<Nio2Channel> socketWrapper,
AbstractEndpoint<Nio2Channel> associatedEndpoint) |
boolean |
isPending() |
void |
nextRequest()
End processing of current HTTP request.
|
void |
recycle()
Recycle the input buffer.
|
void |
registerReadInterest() |
expand, getParsingRequestLinePhase, parseHeaders, parseRequestLineaddActiveFilter, addFilter, available, doRead, endRequest, getFilters, isBlocking, isFinished, setSwallowInputprotected volatile boolean interest
protected AbstractEndpoint<Nio2Channel> endpoint
protected volatile boolean readPending
protected IOException e
protected volatile boolean flipped
public InternalNio2InputBuffer(Request request, int headerBufferSize)
protected final Log getLog()
getLog in class AbstractInputBuffer<Nio2Channel>public void recycle()
recycle in class AbstractNioInputBuffer<Nio2Channel>public void nextRequest()
nextRequest in class AbstractNioInputBuffer<Nio2Channel>public boolean isPending()
protected void init(SocketWrapper<Nio2Channel> socketWrapper, AbstractEndpoint<Nio2Channel> associatedEndpoint) throws IOException
init in class AbstractInputBuffer<Nio2Channel>IOExceptionprotected boolean fill(boolean block)
throws IOException,
EOFException
AbstractInputBufferfill in class AbstractInputBuffer<Nio2Channel>true if more data was added to the input buffer
otherwise falseIOExceptionEOFExceptionpublic void registerReadInterest()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.