Package com.linecorp.armeria.server
Class SimpleDecoratingHttpService
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
- All Implemented Interfaces:
Unwrappable
,HttpService
,Service<HttpRequest,
HttpResponse>
- Direct Known Subclasses:
AuthService
,BraveService
,ContentPreviewingService
,CoroutineContextService
,CorsService
,DecodingService
,DocService
,EncodingService
,LoggingService
,MetricCollectingService
public abstract class SimpleDecoratingHttpService
extends SimpleDecoratingService<HttpRequest,HttpResponse>
implements HttpService
An
HttpService
that decorates another HttpService
.-
Constructor Summary
ModifierConstructorDescriptionprotected
SimpleDecoratingHttpService
(HttpService delegate) Creates a new instance that decorates the specifiedHttpService
. -
Method Summary
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.HttpService
decorate, decorate, serve
Methods inherited from interface com.linecorp.armeria.server.Service
as, serviceAdded, shouldCachePath, unwrap
-
Constructor Details
-
SimpleDecoratingHttpService
Creates a new instance that decorates the specifiedHttpService
.
-
-
Method Details
-
exchangeType
Description copied from interface:HttpService
Determines anExchangeType
for thisHttpService
from the givenRoutingContext
. By default,ExchangeType.BIDI_STREAMING
is set.Note that an
HttpRequest
will be aggregated before serving theHttpService
ifExchangeType.UNARY
orExchangeType.RESPONSE_STREAMING
is set.- Specified by:
exchangeType
in interfaceHttpService
-