|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.http.FixedLengthTransferEncoding
public final class FixedLengthTransferEncoding
Fixed length transfer encoding implementation.
TransferEncoding| Constructor Summary | |
|---|---|
FixedLengthTransferEncoding()
|
|
| Method Summary | |
|---|---|
ParsingResult |
parsePacket(Connection connection,
HttpHeader httpPacket,
Buffer input)
Parse HTTP packet payload, represented by Buffer using specific
transfer encoding. |
void |
prepareSerialize(HttpHeader httpHeader,
HttpContent httpContent)
This method will be called by HttpCodecFilter to let
TransferEncoding prepare itself for the content serialization. |
Buffer |
serializePacket(Connection connection,
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 FixedLengthTransferEncoding()
| 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(HttpHeader httpHeader,
HttpContent httpContent)
TransferEncodingHttpCodecFilter to let
TransferEncoding prepare itself for the content serialization.
At this time TransferEncoding is able to change, update HTTP
packet headers.
prepareSerialize in interface TransferEncodinghttpHeader - HTTP packet headers.httpContent - ready HTTP content (might be null).
public ParsingResult parsePacket(Connection connection,
HttpHeader httpPacket,
Buffer input)
Buffer using specific
transfer encoding.
parsePacket in interface TransferEncodingconnection - ConnectionhttpPacket - HttpHeader with parsed headers.input - Buffer HTTP message payload.
ParsingResult
public Buffer serializePacket(Connection connection,
HttpContent httpContent)
HttpContent
using specific transfer encoding.
serializePacket in interface TransferEncodingconnection - ConnectionhttpContent - HttpContent with parsed HttpContent.getHttpHeader().
Buffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||