public class IdentityOutputFilter extends Object implements OutputFilter
| Modifier and Type | Field and Description |
|---|---|
protected OutputBuffer |
buffer
Next buffer in the pipeline.
|
protected long |
contentLength
Content length.
|
protected static ByteChunk |
ENCODING |
protected static String |
ENCODING_NAME |
protected long |
remaining
Remaining bytes.
|
| Constructor and Description |
|---|
IdentityOutputFilter() |
| Modifier and Type | Method and Description |
|---|---|
int |
doWrite(ByteChunk chunk,
Response res)
Write some bytes.
|
long |
end()
End the current request.
|
long |
getContentLength()
Get content length.
|
ByteChunk |
getEncodingName()
Return the name of the associated encoding; Here, the value is
"identity".
|
long |
getRemaining()
Get remaining bytes.
|
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 String ENCODING_NAME
protected static final ByteChunk ENCODING
protected long contentLength
protected long remaining
protected OutputBuffer buffer
public long getContentLength()
public long getRemaining()
public int doWrite(ByteChunk chunk, Response res) throws IOException
doWrite in interface OutputFilterdoWrite in interface OutputBufferchunk - Data to writeres - Used to allow buffers that can be shared by multiple
responses.IOExceptionpublic void setResponse(Response response)
setResponse in interface OutputFilterpublic void setBuffer(OutputBuffer buffer)
setBuffer in interface OutputFilterpublic long end()
throws IOException
end in interface OutputFilterIOExceptionpublic void recycle()
recycle in interface OutputFilterpublic ByteChunk getEncodingName()
getEncodingName in interface OutputFilterCopyright © 2005–2017 Oracle Corporation. All rights reserved.