|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.websockets.WebSocketOutputFilter
public class WebSocketOutputFilter
Constructor Summary | |
---|---|
WebSocketOutputFilter()
|
Method Summary | |
---|---|
int |
doWrite(ByteChunk chunk,
Response unused)
Write some bytes. |
long |
end()
End the current request. |
ByteChunk |
getEncodingName()
Get the name of the encoding handled by this filter. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebSocketOutputFilter()
Method Detail |
---|
public int doWrite(ByteChunk chunk, Response unused) throws IOException
OutputFilter
doWrite
in interface OutputFilter
doWrite
in interface OutputBuffer
chunk
- Data to writeunused
- Used to allow buffers that can be shared by multiple
responses.
IOException
public void setResponse(Response response)
OutputFilter
setResponse
in interface OutputFilter
public void recycle()
OutputFilter
recycle
in interface OutputFilter
public ByteChunk getEncodingName()
OutputFilter
getEncodingName
in interface OutputFilter
public void setBuffer(OutputBuffer buffer)
OutputFilter
setBuffer
in interface OutputFilter
public long end() throws IOException
OutputFilter
end
in interface OutputFilter
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |