Package io.servicetalk.http.utils
Class RequestTargetDecoderHttpServiceFilter
- java.lang.Object
-
- io.servicetalk.http.utils.RequestTargetDecoderHttpServiceFilter
-
- All Implemented Interfaces:
HttpExecutionStrategyInfluencer
,StreamingHttpServiceFilterFactory
public final class RequestTargetDecoderHttpServiceFilter extends java.lang.Object implements StreamingHttpServiceFilterFactory, HttpExecutionStrategyInfluencer
Decodes theHttpRequestMetaData.requestTarget()
for each incoming request.
-
-
Constructor Summary
Constructors Constructor Description RequestTargetDecoderHttpServiceFilter()
Create a new instance.RequestTargetDecoderHttpServiceFilter(java.nio.charset.Charset charset)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamingHttpServiceFilter
create(StreamingHttpService service)
Create aStreamingHttpServiceFilter
using the providedStreamingHttpService
.HttpExecutionStrategy
influenceStrategy(HttpExecutionStrategy strategy)
Optionally modify the passedHttpExecutionStrategy
to a newHttpExecutionStrategy
that suits thisHttpExecutionStrategyInfluencer
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.servicetalk.http.api.StreamingHttpServiceFilterFactory
append
-
-
-
-
Constructor Detail
-
RequestTargetDecoderHttpServiceFilter
public RequestTargetDecoderHttpServiceFilter()
Create a new instance.
-
RequestTargetDecoderHttpServiceFilter
public RequestTargetDecoderHttpServiceFilter(java.nio.charset.Charset charset)
Create a new instance.- Parameters:
charset
- The charset to use for the decoding.
-
-
Method Detail
-
create
public StreamingHttpServiceFilter create(StreamingHttpService service)
Description copied from interface:StreamingHttpServiceFilterFactory
Create aStreamingHttpServiceFilter
using the providedStreamingHttpService
.- Specified by:
create
in interfaceStreamingHttpServiceFilterFactory
- Parameters:
service
-StreamingHttpService
to filter- Returns:
StreamingHttpServiceFilter
using the providedStreamingHttpService
.
-
influenceStrategy
public HttpExecutionStrategy influenceStrategy(HttpExecutionStrategy strategy)
Description copied from interface:HttpExecutionStrategyInfluencer
Optionally modify the passedHttpExecutionStrategy
to a newHttpExecutionStrategy
that suits thisHttpExecutionStrategyInfluencer
.- Specified by:
influenceStrategy
in interfaceHttpExecutionStrategyInfluencer
- Parameters:
strategy
-HttpExecutionStrategy
to influence.- Returns:
HttpExecutionStrategy
that suits thisHttpExecutionStrategyInfluencer
-
-