public final class AnnotatedHttpServiceElement extends Object
| Modifier and Type | Method and Description |
|---|---|
HttpService |
buildSafeDecoratedService(Function<? super HttpService,? extends HttpService> localDecorator)
Builds a safe decorated
HttpService by wrapping the localDecorator with
exceptionHandlingDecorators. |
Function<? super HttpService,? extends HttpService> |
decorator()
Returns the decorator of the
AnnotatedHttpService which will be evaluated at service
registration time. |
Route |
route()
Returns the
Route. |
AnnotatedHttpService |
service()
Returns the
AnnotatedHttpService that will handle the request. |
String |
toString() |
public AnnotatedHttpService service()
AnnotatedHttpService that will handle the request.public Function<? super HttpService,? extends HttpService> decorator()
AnnotatedHttpService which will be evaluated at service
registration time.public HttpService buildSafeDecoratedService(Function<? super HttpService,? extends HttpService> localDecorator)
HttpService by wrapping the localDecorator with
exceptionHandlingDecorators.localDecorator - a decorator to decorate the service with.Copyright © 2020 LeanCloud. All rights reserved.