Class ContentDecoder.Factory
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.client.ContentDecoder.Factory
- All Implemented Interfaces:
 Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle
- Direct Known Subclasses:
 CompressionContentDecoderFactory
- Enclosing interface:
 ContentDecoder
A factory for Content.Source that decode response content.
A Factory has an encoding and a
weight that are used in the Accept-Encoding
request header and in the Content-Encoding response headers.
Factory instances are configured in HttpClient via
HttpClient.getContentDecoderFactories().
- 
Nested Class Summary
Nested classes/interfaces inherited from class AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainer, Dumpable.DumpAppendableNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatinthashCode()abstract Content.SourcenewDecoderContentSource(Content.Source contentSource) Creates aContent.Sourcethat decodes the chunks of the givenContent.Sourceparameter.Methods inherited from class ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeansMethods inherited from class AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop, toStringMethods inherited from interface Container
getCachedBeans, getEventListenersMethods inherited from interface Dumpable.DumpableContainer
isDumpable 
- 
Field Details
- 
NO_WEIGHT
protected static final float NO_WEIGHT- See Also:
 
 
 - 
 - 
Constructor Details
- 
Factory
 - 
Factory
 
 - 
 - 
Method Details
- 
getEncoding
- Returns:
 - the type of the decoders created by this factory
 
 - 
getWeight
public float getWeight()- Returns:
 - the weight (between 0 and 1, at most 3 decimal digits) to use for the 
Accept-Encodingrequest header 
 - 
equals
 - 
hashCode
 - 
newDecoderContentSource
Creates a
Content.Sourcethat decodes the chunks of the givenContent.Sourceparameter.- Parameters:
 contentSource- the encodedContent.Source- Returns:
 - the decoded 
Content.Source 
 
 -