org.apache.coyote.http11.filters
public class VoidOutputFilter extends java.lang.Object implements OutputFilter
| Modifier and Type | Field and Description |
|---|---|
protected OutputBuffer |
buffer
Next buffer in the pipeline.
|
protected static ByteChunk |
ENCODING |
protected static java.lang.String |
ENCODING_NAME |
| Constructor and Description |
|---|
VoidOutputFilter() |
| Modifier and Type | Method and Description |
|---|---|
int |
doWrite(ByteChunk chunk,
Response res)
Write some bytes.
|
long |
end()
End the current request.
|
ByteChunk |
getEncodingName()
Return the name of the associated encoding; Here, the value is
"identity".
|
void |
recycle()
Make the filter ready to process the next request.
|
void |
setBuffer(OutputBuffer buffer)
Set the next buffer in the filter pipeline.
|
void |
setResponse(Response response)
Some filters need additional parameters from the response.
|
protected static final java.lang.String ENCODING_NAME
protected static final ByteChunk ENCODING
protected OutputBuffer buffer
public int doWrite(ByteChunk chunk, Response res) throws java.io.IOException
doWrite in interface OutputFilterdoWrite in interface OutputBufferchunk - data to writeres - used to allow buffers that can be shared by multiple responses.java.io.IOExceptionpublic void setResponse(Response response)
setResponse in interface OutputFilterpublic void setBuffer(OutputBuffer buffer)
setBuffer in interface OutputFilterpublic void recycle()
recycle in interface OutputFilterpublic ByteChunk getEncodingName()
getEncodingName in interface OutputFilterpublic long end()
throws java.io.IOException
end in interface OutputFilterjava.io.IOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.