ContentDecoder decodes content bytes of a response.
Factory
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public abstract static class | ContentDecoder.Factory
Factory for |
| Modifier and Type | Method and Description |
|---|---|
| public default void | |
| public default void | beforeDecoding(Response response)
Processes the response just before the decoding of the response content. |
| public RetainableByteBuffer | Returns: a buffer containing decoded bytesthe buffer containing encoded bytes buffer)Decodes the bytes in the given |
| afterDecoding | back to summary |
|---|---|
| public default void afterDecoding(Response response) Processes the exchange after the response content has been decoded. Typical processing may involve modifying the response headers, for example
updating the | |
| beforeDecoding | back to summary |
|---|---|
| public default void beforeDecoding(Response response) Processes the response just before the decoding of the response content. Typical processing may involve modifying the response headers, for example
by temporarily removing the | |
| decode | back to summary |
|---|---|
| public RetainableByteBuffer decode(ByteBuffer buffer) Decodes the bytes in the given The returned
| |
| Modifier and Type | Field and Description |
|---|---|
| private HttpField | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public HttpField | |
| public Iterator | |
| public ContentDecoder. |
| acceptEncodingField | back to summary |
|---|---|
| private HttpField acceptEncodingField | |
| factories | back to summary |
|---|---|
| private final Map<String, ContentDecoder. | |
| Factories | back to summary |
|---|---|
| public Factories() | |
| clear | back to summary |
|---|---|
| public void clear() | |
| getAcceptEncodingField | back to summary |
|---|---|
| public HttpField getAcceptEncodingField() | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| put | back to summary |
|---|---|
| public ContentDecoder. | |
ContentDecoders; subclasses must implement newContentDecoder().
Factory have an encoding, which is the string used in
Accept-Encoding request header and in Content-Encoding response headers.
Factory instances are configured in HttpClient via
HttpClient#getContentDecoderFactories().
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public String | |
| public int | |
| public abstract ContentDecoder |
| encoding | back to summary |
|---|---|
| private final String encoding | |
| Factory | back to summary |
|---|---|
| protected Factory(String encoding) | |
| 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. | |
| getEncoding | back to summary |
|---|---|
public String getEncoding()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| newContentDecoder | back to summary |
|---|---|
| public abstract ContentDecoder newContentDecoder() Factory method for
| |