ch.mimo.netty.handler.codec.icap
Class DefaultIcapChunkTrailer
java.lang.Object
org.jboss.netty.handler.codec.http.DefaultHttpChunkTrailer
ch.mimo.netty.handler.codec.icap.DefaultIcapChunkTrailer
- All Implemented Interfaces:
- IcapChunk, IcapChunkTrailer, org.jboss.netty.handler.codec.http.HttpChunk, org.jboss.netty.handler.codec.http.HttpChunkTrailer
public class DefaultIcapChunkTrailer
- extends org.jboss.netty.handler.codec.http.DefaultHttpChunkTrailer
- implements IcapChunkTrailer
This class is used to indicate the end of a chunked data stream and to hold
trailing headers.
- Author:
- Michael Mimo Moratti (mimo@mimo.ch)
- See Also:
implementation.
Fields inherited from interface org.jboss.netty.handler.codec.http.HttpChunk |
LAST_CHUNK |
Method Summary |
boolean |
isEarlyTerminated()
Gets whether this chunk belongs to a early terminated preview message. |
boolean |
isPreviewChunk()
Gets whether this chunk belongs to a preview message. |
void |
setEarlyTermination(boolean earlyTermination)
Toggles whether this chunk belongs to a early terminated preview message. |
void |
setPreviewChunk(boolean preview)
Toggles whether this chunk belongs to a preview message. |
String |
toString()
|
Methods inherited from class org.jboss.netty.handler.codec.http.DefaultHttpChunkTrailer |
addHeader, clearHeaders, containsHeader, getContent, getHeader, getHeaderNames, getHeaders, getHeaders, isLast, removeHeader, setContent, setHeader, setHeader |
Methods inherited from interface ch.mimo.netty.handler.codec.icap.IcapChunkTrailer |
addHeader, clearHeaders, containsHeader, getHeader, getHeaderNames, getHeaders, getHeaders, isLast, removeHeader, setHeader, setHeader |
Methods inherited from interface org.jboss.netty.handler.codec.http.HttpChunk |
getContent, setContent |
DefaultIcapChunkTrailer
public DefaultIcapChunkTrailer()
DefaultIcapChunkTrailer
public DefaultIcapChunkTrailer(boolean isPreview,
boolean isEarlyTerminated)
setPreviewChunk
public void setPreviewChunk(boolean preview)
- Description copied from interface:
IcapChunk
- Toggles whether this chunk belongs to a preview message.
- Specified by:
setPreviewChunk
in interface IcapChunk
- Parameters:
preview
- boolean true to indicate it is a preview chunk
isPreviewChunk
public boolean isPreviewChunk()
- Description copied from interface:
IcapChunk
- Gets whether this chunk belongs to a preview message.
- Specified by:
isPreviewChunk
in interface IcapChunk
- Returns:
- boolean true if this chunk is preview.
setEarlyTermination
public void setEarlyTermination(boolean earlyTermination)
- Description copied from interface:
IcapChunk
- Toggles whether this chunk belongs to a early terminated preview message.
- Specified by:
setEarlyTermination
in interface IcapChunk
- Parameters:
earlyTermination
- boolean true if the preview message is early terminated.
isEarlyTerminated
public boolean isEarlyTerminated()
- Description copied from interface:
IcapChunk
- Gets whether this chunk belongs to a early terminated preview message.
- Specified by:
isEarlyTerminated
in interface IcapChunk
- Returns:
- boolean true if the preview message is early terminated.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011. All Rights Reserved.