public abstract class AbstractNioInputBuffer<S> extends AbstractInputBuffer<S>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractNioInputBuffer.HeaderParseData |
Modifier and Type | Field and Description |
---|---|
protected int |
headerBufferSize
Maximum allowed size of the HTTP request line plus headers plus any
leading blank lines.
|
protected int |
socketReadBufferSize
Known size of the NioChannel read buffer.
|
activeFilters, buf, end, filterLibrary, headers, HTTP_TOKEN_CHAR, inputStreamInputBuffer, lastActiveFilter, lastValid, parsingHeader, pos, request, sm, swallowInput
Constructor and Description |
---|
AbstractNioInputBuffer(Request request,
int headerBufferSize)
Alternate constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
expand(int newsize) |
int |
getParsingRequestLinePhase() |
void |
nextRequest()
End processing of current HTTP request.
|
boolean |
parseHeaders()
Parse the HTTP headers.
|
boolean |
parseRequestLine(boolean useAvailableDataOnly)
Read the request line.
|
void |
recycle()
Recycle the input buffer.
|
addActiveFilter, addFilter, available, doRead, endRequest, fill, getFilters, getLog, init, isBlocking, isFinished, setSwallowInput
protected final int headerBufferSize
protected int socketReadBufferSize
public AbstractNioInputBuffer(Request request, int headerBufferSize)
public void recycle()
recycle
in class AbstractInputBuffer<S>
public void nextRequest()
nextRequest
in class AbstractInputBuffer<S>
public boolean parseRequestLine(boolean useAvailableDataOnly) throws IOException
parseRequestLine
in class AbstractInputBuffer<S>
IOException
- If an exception occurs during the underlying socket
read operations, or if the given buffer is not big enough to accommodate
the whole line.protected void expand(int newsize)
public boolean parseHeaders() throws IOException
parseHeaders
in class AbstractInputBuffer<S>
IOException
public int getParsingRequestLinePhase()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.