Package org.eclipse.jetty.client
Class ContentDecoder.Factory
- java.lang.Object
-
- org.eclipse.jetty.client.ContentDecoder.Factory
-
- Direct Known Subclasses:
GZIPContentDecoder.Factory
- Enclosing interface:
- ContentDecoder
public abstract static class ContentDecoder.Factory extends java.lang.Object
Factory forContentDecoder
s; subclasses must implementnewContentDecoder()
.ContentDecoder.Factory
have anencoding
, which is the string used inAccept-Encoding
request header and inContent-Encoding
response headers.ContentDecoder.Factory
instances are configured inHttpClient
viaHttpClient.getContentDecoderFactories()
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Factory(java.lang.String encoding)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getEncoding()
int
hashCode()
abstract ContentDecoder
newContentDecoder()
Factory method forContentDecoder
s
-
-
-
Method Detail
-
getEncoding
public java.lang.String getEncoding()
- Returns:
- the type of the decoders created by this factory
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
newContentDecoder
public abstract ContentDecoder newContentDecoder()
Factory method forContentDecoder
s- Returns:
- a new instance of a
ContentDecoder
-
-