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:
org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.LifeCycle
- Enclosing interface:
ContentDecoder
public abstract static class ContentDecoder.Factory
extends org.eclipse.jetty.util.component.ContainerLifeCycle
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 org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.Dumpable.DumpAppendableNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
FieldsFields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.util.component.Dumpable
LEGEND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatinthashCode()abstract org.eclipse.jetty.io.Content.SourcenewDecoderContentSource(org.eclipse.jetty.io.Content.Source contentSource) Creates aContent.Sourcethat decodes the chunks of the givenContent.Sourceparameter.Methods inherited from class org.eclipse.jetty.util.component.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 org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop, toStringMethods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListenersMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelfMethods inherited from interface org.eclipse.jetty.util.component.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
public abstract org.eclipse.jetty.io.Content.Source newDecoderContentSource(org.eclipse.jetty.io.Content.Source contentSource) Creates a
Content.Sourcethat decodes the chunks of the givenContent.Sourceparameter.- Parameters:
contentSource- the encodedContent.Source- Returns:
- the decoded
Content.Source
-