public class Http11InputBuffer extends Object implements InputBuffer, ApplicationBufferHandler
| Constructor and Description |
|---|
Http11InputBuffer(Request request,
int headerBufferSize,
boolean rejectIllegalHeader,
HttpParser httpParser) |
| Modifier and Type | Method and Description |
|---|---|
int |
doRead(ApplicationBufferHandler handler)
Read from the input stream into the ByteBuffer provided by the
ApplicationBufferHandler.
|
int |
doRead(ByteChunk chunk)
Deprecated.
Unused. Will be removed in Tomcat 9. Use
doRead(ApplicationBufferHandler) |
void |
expand(int size) |
ByteBuffer |
getByteBuffer() |
void |
setByteBuffer(ByteBuffer buffer) |
public Http11InputBuffer(Request request, int headerBufferSize, boolean rejectIllegalHeader, HttpParser httpParser)
@Deprecated public int doRead(ByteChunk chunk) throws IOException
doRead(ApplicationBufferHandler)InputBufferdoRead in interface InputBufferchunk - The buffer to read data into.IOException - If an I/O error occurs reading from the input streampublic int doRead(ApplicationBufferHandler handler) throws IOException
InputBufferdoRead in interface InputBufferhandler - ApplicationBufferHandler that provides the buffer to read
data into.IOException - If an I/O error occurs reading from the input streampublic void setByteBuffer(ByteBuffer buffer)
setByteBuffer in interface ApplicationBufferHandlerpublic ByteBuffer getByteBuffer()
getByteBuffer in interface ApplicationBufferHandlerpublic void expand(int size)
expand in interface ApplicationBufferHandlerCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.