ContentEncoding implementation, which compresses/decompresses HTTP content using gzip algorithm.
| Modifier and Type | Field and Description |
|---|---|
| private static final String[] | |
| private final GZipDecoder | |
| public static final int | |
| public static final int | |
| private final GZipEncoder | |
| private final EncodingFilter | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | GZipContentEncoding(int
input buffer size inBufferSize, int output buffer size outBufferSize)Construct GZipContentEncoding using specific buffer sizes. |
| public | GZipContentEncoding(int
input buffer size inBufferSize, int output buffer size outBufferSize, EncodingFilter EncodingFilter, which will decide if
GZipContentEncoding should be applied to encode specific
HttpHeader packet.Construct GZipContentEncoding using specific buffer sizes, with default compression level and strategy. |
| public | GZipContentEncoding(int
input buffer size inBufferSize, int output buffer size outBufferSize, int the compression level used by the GZipEncoder compressionLevel, int the compression strategy used by the GZipEncoder compressionStrategy, EncodingFilter EncodingFilter, which will decide if
GZipContentEncoding should be applied to encode specific
HttpHeader packet.Construct GZipContentEncoding using specific buffer sizes, compression level and strategy. |
| Modifier and Type | Method and Description |
|---|---|
| public ParsingResult | decode(final Connection<L> connection, final HttpContent httpContent)
Implements org. Decode HTTP packet content represented by |
| public HttpContent | encode(Connection<L> connection, HttpContent httpContent)
Implements org. Encode HTTP packet content represented by |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public String[] | getAliases()
Implements org. Get the ContentEncoding aliases. |
| public static String[] | |
| public String | getName()
Implements org. Get the ContentEncoding name. |
| public int | |
| public final boolean | wantDecode(final HttpHeader header)
Implements org. Method should implement the logic, which decides if HTTP packet with the specific |
| public final boolean | wantEncode(final HttpHeader header)
Implements org. Method should implement the logic, which decides if HTTP packet with the specific |
| ALIASES | back to summary |
|---|---|
| private static final String[] ALIASES | |
| decoder | back to summary |
|---|---|
| private final GZipDecoder decoder | |
| DEFAULT_IN_BUFFER_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_IN_BUFFER_SIZE | |
| DEFAULT_OUT_BUFFER_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_OUT_BUFFER_SIZE | |
| encoder | back to summary |
|---|---|
| private final GZipEncoder encoder | |
| encoderFilter | back to summary |
|---|---|
| private final EncodingFilter encoderFilter | |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| GZipContentEncoding | back to summary |
|---|---|
| public GZipContentEncoding() Construct GZipContentEncoding using default buffer sizes. | |
| GZipContentEncoding | back to summary |
|---|---|
| public GZipContentEncoding(int inBufferSize, int outBufferSize) Construct GZipContentEncoding using specific buffer sizes.
| |
| GZipContentEncoding | back to summary |
|---|---|
| public GZipContentEncoding(int inBufferSize, int outBufferSize, EncodingFilter encoderFilter) Construct GZipContentEncoding using specific buffer sizes, with default compression level and strategy.
| |
| GZipContentEncoding | back to summary |
|---|---|
| public GZipContentEncoding(int inBufferSize, int outBufferSize, int compressionLevel, int compressionStrategy, EncodingFilter encoderFilter) Construct GZipContentEncoding using specific buffer sizes, compression level and strategy.
| |
| decode | back to summary |
|---|---|
| public ParsingResult decode(final Connection<L> connection, final HttpContent httpContent) Implements org. Doc from org. Decode HTTP packet content represented by
| |
| encode | back to summary |
|---|---|
| public HttpContent encode(Connection<L> connection, HttpContent httpContent) Implements org. Doc from org. Encode HTTP packet content represented by
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAliases | back to summary |
|---|---|
| public String[] getAliases() Implements org. Doc from org. Get the ContentEncoding aliases.
| |
| getGzipAliases | back to summary |
|---|---|
| public static String[] getGzipAliases() | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get the ContentEncoding name.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| wantDecode | back to summary |
|---|---|
| public final boolean wantDecode(final HttpHeader header) Implements org. Doc from org. Method should implement the logic, which decides if HTTP packet with the specific
| |
| wantEncode | back to summary |
|---|---|
| public final boolean wantEncode(final HttpHeader header) Implements org. Doc from org. Method should implement the logic, which decides if HTTP packet with the specific
| |