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
- 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 org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer, Dumpable.DumpAppendable
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
float
int
hashCode()
abstract Content.Source
newDecoderContentSource
(Content.Source contentSource) Creates aContent.Source
that decodes the chunks of the givenContent.Source
parameter.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, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListeners
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
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-Encoding
request header
-
equals
-
hashCode
-
newDecoderContentSource
Creates a
Content.Source
that decodes the chunks of the givenContent.Source
parameter.- Parameters:
contentSource
- the encodedContent.Source
- Returns:
- the decoded
Content.Source
-