Class DecodingService
java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<Service<T_I,T_O>>
com.linecorp.armeria.server.DecoratingService<I,O,I,O>
com.linecorp.armeria.server.SimpleDecoratingService<HttpRequest,HttpResponse>
com.linecorp.armeria.server.SimpleDecoratingHttpService
com.linecorp.armeria.server.encoding.DecodingService
- All Implemented Interfaces:
Unwrappable
,HttpService
,Service<HttpRequest,HttpResponse>
public final class DecodingService extends SimpleDecoratingHttpService
A
DecoratingService
that requests and decodes HTTP encoding (e.g., gzip) that has been applied to the
content of an HttpRequest
.-
Method Summary
Modifier and Type Method Description static Function<? super HttpService,DecodingService>
newDecorator()
Creates a newDecodingService
decorator with the default encodings of 'gzip' and 'deflate'.static Function<? super HttpService,DecodingService>
newDecorator(StreamDecoderFactory... decoderFactories)
Creates a newDecodingService
decorator with the specifiedStreamDecoderFactory
s.static Function<? super HttpService,DecodingService>
newDecorator(Iterable<? extends StreamDecoderFactory> decoderFactories)
Creates a newDecodingService
decorator with the specifiedStreamDecoderFactory
s.HttpResponse
serve(ServiceRequestContext ctx, HttpRequest req)
Serves an incomingRequest
.Methods inherited from class com.linecorp.armeria.server.DecoratingService
serviceAdded, shouldCachePath
Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, toString, unwrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.server.Service
as, serviceAdded, shouldCachePath, unwrap
-
Method Details
-
newDecorator
Creates a newDecodingService
decorator with the default encodings of 'gzip' and 'deflate'. -
newDecorator
public static Function<? super HttpService,DecodingService> newDecorator(StreamDecoderFactory... decoderFactories)Creates a newDecodingService
decorator with the specifiedStreamDecoderFactory
s. -
newDecorator
public static Function<? super HttpService,DecodingService> newDecorator(Iterable<? extends StreamDecoderFactory> decoderFactories)Creates a newDecodingService
decorator with the specifiedStreamDecoderFactory
s. -
serve
Description copied from interface:Service
Serves an incomingRequest
.
-