public class InternalAprInputBuffer extends AbstractInputBuffer<java.lang.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, httpParser, inputStreamInputBuffer, lastActiveFilter, lastValid, parsingHeader, pos, rejectIllegalHeaderName, request, sm, swallowInput
Constructor and Description |
---|
InternalAprInputBuffer(Request request,
int headerBufferSize,
boolean rejectIllegalHeaderName,
HttpParser httpParser)
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<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, isBlocking, isFinished, nextRequest, setSwallowInput
public InternalAprInputBuffer(Request request, int headerBufferSize, boolean rejectIllegalHeaderName, HttpParser httpParser)
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.IOException
public int doRead(ByteChunk chunk, Request req) throws java.io.IOException
doRead
in interface InputBuffer
doRead
in class AbstractInputBuffer<java.lang.Long>
java.io.IOException
protected 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.IOException
protected boolean fill(boolean block) throws java.io.IOException
AbstractInputBuffer
fill
in class AbstractInputBuffer<java.lang.Long>
true
if more data was added to the input buffer
otherwise false
java.io.IOException
protected final Log getLog()
getLog
in class AbstractInputBuffer<java.lang.Long>
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.