public class InternalNioInputBuffer extends AbstractInputBuffer<NioChannel>
Modifier and Type | Class and Description |
---|---|
static class |
InternalNioInputBuffer.HeaderParseData |
protected class |
InternalNioInputBuffer.SocketInputBuffer
This class is an input buffer which will read its data from an input
stream.
|
activeFilters, buf, chr, end, filterLibrary, headers, httpParser, inputStreamInputBuffer, lastActiveFilter, lastValid, parsingHeader, pos, prevChr, rejectIllegalHeaderName, request, sm, swallowInput
Constructor and Description |
---|
InternalNioInputBuffer(Request request,
int headerBufferSize,
boolean rejectIllegalHeader,
HttpParser httpParser)
Alternate constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
fill(boolean block)
Fill the internal buffer using data from the underlying input stream.
|
protected boolean |
fill(boolean timeout,
boolean block) |
int |
getParsingRequestLinePhase() |
protected void |
init(SocketWrapper<NioChannel> socketWrapper,
AbstractEndpoint<NioChannel> endpoint) |
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, getFilters, parseInvalid, setSwallowInput
public InternalNioInputBuffer(Request request, int headerBufferSize, boolean rejectIllegalHeader, HttpParser httpParser)
public void recycle()
recycle
in class AbstractInputBuffer<NioChannel>
public void nextRequest()
nextRequest
in class AbstractInputBuffer<NioChannel>
public boolean parseRequestLine(boolean useAvailableDataOnly) throws IOException
parseRequestLine
in class AbstractInputBuffer<NioChannel>
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<NioChannel>
IOException
public int getParsingRequestLinePhase()
protected void init(SocketWrapper<NioChannel> socketWrapper, AbstractEndpoint<NioChannel> endpoint) throws IOException
init
in class AbstractInputBuffer<NioChannel>
IOException
protected boolean fill(boolean block) throws IOException, EOFException
fill
in class AbstractInputBuffer<NioChannel>
IOException
EOFException
protected boolean fill(boolean timeout, boolean block) throws IOException, EOFException
IOException
EOFException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.