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, httpParser, inputStreamInputBuffer, lastActiveFilter, lastValid, parsingHeader, pos, rejectIllegalHeaderName, request, sm, swallowInput
Constructor and Description |
---|
AbstractNioInputBuffer(Request request,
int headerBufferSize,
boolean rejectIllegalHeaderName,
HttpParser httpParser)
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, boolean rejectIllegalHeaderName, HttpParser httpParser)
public void recycle()
recycle
in class AbstractInputBuffer<S>
public void nextRequest()
nextRequest
in class AbstractInputBuffer<S>
public boolean parseRequestLine(boolean useAvailableDataOnly) throws java.io.IOException
parseRequestLine
in class AbstractInputBuffer<S>
java.io.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 java.io.IOException
parseHeaders
in class AbstractInputBuffer<S>
java.io.IOException
public int getParsingRequestLinePhase()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.