public class Http11InputBuffer extends java.lang.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.
|
void |
expand(int size) |
java.nio.ByteBuffer |
getByteBuffer() |
void |
setByteBuffer(java.nio.ByteBuffer buffer) |
public Http11InputBuffer(Request request, int headerBufferSize, boolean rejectIllegalHeader, HttpParser httpParser)
public int doRead(ApplicationBufferHandler handler) throws java.io.IOException
InputBuffer
doRead
in interface InputBuffer
handler
- ApplicationBufferHandler that provides the buffer to read
data into.java.io.IOException
- If an I/O error occurs reading from the input streampublic void setByteBuffer(java.nio.ByteBuffer buffer)
setByteBuffer
in interface ApplicationBufferHandler
public java.nio.ByteBuffer getByteBuffer()
getByteBuffer
in interface ApplicationBufferHandler
public void expand(int size)
expand
in interface ApplicationBufferHandler
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.