public class InternalAprInputBuffer extends AbstractInputBuffer<java.lang.Long>
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | InternalAprInputBuffer.SocketInputBufferThis 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()Fill the internal buffer using data from the underlying input stream. | 
| protected boolean | fill(boolean block) | 
| protected void | init(SocketWrapper<java.lang.Long> socketWrapper,
AbstractEndpoint<java.lang.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, nextRequest, setSwallowInputpublic InternalAprInputBuffer(Request request, int headerBufferSize)
public void recycle()
recycle in class AbstractInputBuffer<java.lang.Long>public boolean parseRequestLine(boolean useAvailableData)
                         throws java.io.IOException
parseRequestLine in class AbstractInputBuffer<java.lang.Long>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.public boolean parseHeaders()
                     throws java.io.IOException
parseHeaders in class AbstractInputBuffer<java.lang.Long>java.io.IOExceptionpublic int doRead(ByteChunk chunk, Request req) throws java.io.IOException
doRead in interface InputBufferdoRead in class AbstractInputBuffer<java.lang.Long>java.io.IOExceptionprotected void init(SocketWrapper<java.lang.Long> socketWrapper, AbstractEndpoint<java.lang.Long> endpoint) throws java.io.IOException
init in class AbstractInputBuffer<java.lang.Long>java.io.IOExceptionprotected boolean fill(boolean block)
                throws java.io.IOException
fill in class AbstractInputBuffer<java.lang.Long>java.io.IOExceptionprotected boolean fill()
                throws java.io.IOException
java.io.IOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.