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 Object
Factory forContentDecoders; subclasses must implementnewContentDecoder().ContentDecoder.Factoryhave anencoding, which is the string used inAccept-Encodingrequest header and inContent-Encodingresponse headers.ContentDecoder.Factoryinstances are configured inHttpClientviaHttpClient.getContentDecoderFactories().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetEncoding()inthashCode()abstract ContentDecodernewContentDecoder()Factory method forContentDecoders
-
-
-
Constructor Detail
-
Factory
protected Factory(String encoding)
-
-
Method Detail
-
getEncoding
public String getEncoding()
- Returns:
- the type of the decoders created by this factory
-
newContentDecoder
public abstract ContentDecoder newContentDecoder()
Factory method forContentDecoders- Returns:
- a new instance of a
ContentDecoder
-
-