|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.http.ChunkedTransferEncoding
public final class ChunkedTransferEncoding
Chunked transfer encoding implementation.
TransferEncoding| Constructor Summary | |
|---|---|
ChunkedTransferEncoding(int maxHeadersSize)
|
|
| Method Summary | |
|---|---|
ParsingResult |
parsePacket(FilterChainContext ctx,
HttpHeader httpPacket,
Buffer input)
Parse HTTP packet payload, represented by Buffer using specific
transfer encoding. |
void |
prepareSerialize(FilterChainContext ctx,
HttpHeader httpHeader,
HttpContent content)
This method will be called by HttpCodecFilter to let
TransferEncoding prepare itself for the content serialization. |
Buffer |
serializePacket(FilterChainContext ctx,
HttpContent httpContent)
Serialize HTTP packet payload, represented by HttpContent
using specific transfer encoding. |
boolean |
wantDecode(HttpHeader httpPacket)
Return true if this encoding should be used to parse the content of the passed HttpHeader, or false otherwise. |
boolean |
wantEncode(HttpHeader httpPacket)
Return true if this encoding should be used to serialize the content of the passed HttpHeader, or false otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChunkedTransferEncoding(int maxHeadersSize)
| Method Detail |
|---|
public boolean wantDecode(HttpHeader httpPacket)
HttpHeader, or false otherwise.
wantDecode in interface TransferEncodinghttpPacket - HttpHeader.
HttpHeader, or false otherwise.public boolean wantEncode(HttpHeader httpPacket)
HttpHeader, or false otherwise.
wantEncode in interface TransferEncodinghttpPacket - HttpHeader.
HttpHeader, or false otherwise.
public void prepareSerialize(FilterChainContext ctx,
HttpHeader httpHeader,
HttpContent content)
HttpCodecFilter to let
TransferEncoding prepare itself for the content serialization.
At this time TransferEncoding is able to change, update HTTP
packet headers.
prepareSerialize in interface TransferEncodingctx - FilterChainContexthttpHeader - HTTP packet headers.content - ready HTTP content (might be null).
public ParsingResult parsePacket(FilterChainContext ctx,
HttpHeader httpPacket,
Buffer input)
Buffer using specific
transfer encoding.
parsePacket in interface TransferEncodingctx - FilterChainContexthttpPacket - HttpHeader with parsed headers.input - Buffer HTTP message payload.
ParsingResult
public Buffer serializePacket(FilterChainContext ctx,
HttpContent httpContent)
HttpContent
using specific transfer encoding.
serializePacket in interface TransferEncodingctx - FilterChainContexthttpContent - HttpContent with parsed HttpContent.getHttpHeader().
Buffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||