public class InternalAprInputBuffer extends AbstractInputBuffer<Long>
Modifier and Type | Class and Description |
---|---|
protected class |
InternalAprInputBuffer.SocketInputBuffer
This class is an input buffer which will read its data from an input
stream.
|
activeFilters, buf, end, filterLibrary, headers, HTTP_TOKEN_CHAR, inputStreamInputBuffer, lastActiveFilter, lastValid, parsingHeader, pos, request, sm, swallowInput
Constructor and Description |
---|
InternalAprInputBuffer(Request request,
int headerBufferSize)
Alternate constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
doRead(ByteChunk chunk,
Request req)
Read some bytes.
|
protected boolean |
fill(boolean block)
Attempts to read some data into the input buffer.
|
protected Log |
getLog() |
protected void |
init(SocketWrapper<Long> socketWrapper,
AbstractEndpoint<Long> endpoint) |
boolean |
parseHeaders()
Parse the HTTP headers.
|
boolean |
parseRequestLine(boolean useAvailableData)
Read the request line.
|
void |
recycle()
Recycle the input buffer.
|
addActiveFilter, addFilter, available, endRequest, getFilters, isBlocking, isFinished, nextRequest, setSwallowInput
public InternalAprInputBuffer(Request request, int headerBufferSize)
public void recycle()
recycle
in class AbstractInputBuffer<Long>
public boolean parseRequestLine(boolean useAvailableData) throws IOException
parseRequestLine
in class AbstractInputBuffer<Long>
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.public boolean parseHeaders() throws IOException
parseHeaders
in class AbstractInputBuffer<Long>
IOException
public int doRead(ByteChunk chunk, Request req) throws IOException
doRead
in interface InputBuffer
doRead
in class AbstractInputBuffer<Long>
IOException
protected void init(SocketWrapper<Long> socketWrapper, AbstractEndpoint<Long> endpoint) throws IOException
init
in class AbstractInputBuffer<Long>
IOException
protected boolean fill(boolean block) throws IOException
AbstractInputBuffer
fill
in class AbstractInputBuffer<Long>
true
if more data was added to the input buffer
otherwise false
IOException
protected final Log getLog()
getLog
in class AbstractInputBuffer<Long>
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.