Class MetadataServiceInjector
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.centraldogma.server.metadata.MetadataServiceInjector
- All Implemented Interfaces:
Unwrappable
,HttpService
,Service<HttpRequest,
HttpResponse>
Injects the
MetadataService
instance into the attribute of the ServiceRequestContext
.-
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataService
Returns theMetadataService
instance from the specifiedServiceRequestContext
.static Function<? super HttpService,
MetadataServiceInjector> Returns a newly createdService
decorator from the specifiedMetadataService
.serve
(ServiceRequestContext ctx, HttpRequest req) Methods inherited from class com.linecorp.armeria.server.SimpleDecoratingHttpService
exchangeType
Methods inherited from class com.linecorp.armeria.server.DecoratingService
serviceAdded, shouldCachePath
Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, toString, unwrap, unwrapAll
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
Methods inherited from interface com.linecorp.armeria.server.Service
as, serviceAdded, shouldCachePath, unwrap
Methods inherited from interface com.linecorp.armeria.common.util.Unwrappable
equalsIgnoreWrapper, unwrapAll
-
Method Details
-
newDecorator
public static Function<? super HttpService,MetadataServiceInjector> newDecorator(MetadataService mds) Returns a newly createdService
decorator from the specifiedMetadataService
. -
serve
- Throws:
Exception
-
getMetadataService
Returns theMetadataService
instance from the specifiedServiceRequestContext
.
-