public class InternalNioInputBuffer extends AbstractNioInputBuffer<NioChannel>
Modifier and Type | Class and Description |
---|---|
protected class |
InternalNioInputBuffer.SocketInputBuffer
This class is an input buffer which will read its data from an input
stream.
|
AbstractNioInputBuffer.HeaderParseData
headerBufferSize, socketReadBufferSize
activeFilters, buf, end, filterLibrary, headers, httpParser, inputStreamInputBuffer, lastActiveFilter, lastValid, parsingHeader, pos, rejectIllegalHeaderName, request, sm, swallowInput
Constructor and Description |
---|
InternalNioInputBuffer(Request request,
int headerBufferSize,
boolean rejectIllegalHeaderName,
HttpParser httpParser)
Alternate constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
fill(boolean block)
Attempts to read some data into the input buffer.
|
protected Log |
getLog() |
protected void |
init(SocketWrapper<NioChannel> socketWrapper,
AbstractEndpoint<NioChannel> endpoint) |
void |
recycle()
Recycle the input buffer.
|
expand, getParsingRequestLinePhase, nextRequest, parseHeaders, parseRequestLine
addActiveFilter, addFilter, available, doRead, endRequest, getFilters, isBlocking, isFinished, setSwallowInput
public InternalNioInputBuffer(Request request, int headerBufferSize, boolean rejectIllegalHeaderName, HttpParser httpParser)
protected final Log getLog()
getLog
in class AbstractInputBuffer<NioChannel>
public void recycle()
recycle
in class AbstractNioInputBuffer<NioChannel>
protected void init(SocketWrapper<NioChannel> socketWrapper, AbstractEndpoint<NioChannel> endpoint) throws java.io.IOException
init
in class AbstractInputBuffer<NioChannel>
java.io.IOException
protected boolean fill(boolean block) throws java.io.IOException, java.io.EOFException
AbstractInputBuffer
fill
in class AbstractInputBuffer<NioChannel>
true
if more data was added to the input buffer
otherwise false
java.io.IOException
java.io.EOFException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.