| Package | Description |
|---|---|
| com.linecorp.armeria.internal.server.annotation |
Various classes used internally.
|
| com.linecorp.armeria.server |
Server core.
|
| com.linecorp.armeria.server.annotation |
Annotations for building a RESTful service.
|
| Modifier and Type | Method and Description |
|---|---|
List<ExceptionHandlerFunction> |
AnnotatedServiceExtensions.exceptionHandlers()
Returns the specified
ExceptionHandlerFunctions with the annotated service. |
| Modifier and Type | Method and Description |
|---|---|
static List<AnnotatedServiceElement> |
AnnotatedServiceFactory.find(String pathPrefix,
Object object,
List<RequestConverterFunction> requestConverterFunctions,
List<ResponseConverterFunction> responseConverterFunctions,
List<ExceptionHandlerFunction> exceptionHandlerFunctions)
Returns the list of
AnnotatedService defined by Path and HTTP method annotations
from the specified object, RequestConverterFunctions, ResponseConverterFunctions,
ExceptionHandlerFunctions and AnnotatedServiceExtensions. |
| Constructor and Description |
|---|
AnnotatedServiceExtensions(List<RequestConverterFunction> requestConverters,
List<ResponseConverterFunction> responseConverters,
List<ExceptionHandlerFunction> exceptionHandlers) |
| Modifier and Type | Method and Description |
|---|---|
VirtualHostAnnotatedServiceBindingBuilder |
VirtualHostAnnotatedServiceBindingBuilder.exceptionHandler(ExceptionHandlerFunction exceptionHandlerFunction)
|
AnnotatedServiceBindingBuilder |
AnnotatedServiceBindingBuilder.exceptionHandler(ExceptionHandlerFunction exceptionHandlerFunction)
|
VirtualHostAnnotatedServiceBindingBuilder |
VirtualHostAnnotatedServiceBindingBuilder.exceptionHandlers(ExceptionHandlerFunction... exceptionHandlerFunctions)
Adds the given
ExceptionHandlerFunctions to this
VirtualHostAnnotatedServiceBindingBuilder. |
AnnotatedServiceBindingBuilder |
AnnotatedServiceBindingBuilder.exceptionHandlers(ExceptionHandlerFunction... exceptionHandlerFunctions)
Adds the given
ExceptionHandlerFunctions to this AnnotatedServiceBindingBuilder. |
| Modifier and Type | Method and Description |
|---|---|
VirtualHostBuilder |
VirtualHostBuilder.annotatedService(String pathPrefix,
Object service,
Function<? super HttpService,? extends HttpService> decorator,
Iterable<? extends ExceptionHandlerFunction> exceptionHandlerFunctions,
Iterable<? extends RequestConverterFunction> requestConverterFunctions,
Iterable<? extends ResponseConverterFunction> responseConverterFunctions)
Binds the specified annotated service object under the specified path prefix.
|
ServerBuilder |
ServerBuilder.annotatedService(String pathPrefix,
Object service,
Function<? super HttpService,? extends HttpService> decorator,
Iterable<? extends ExceptionHandlerFunction> exceptionHandlerFunctions,
Iterable<? extends RequestConverterFunction> requestConverterFunctions,
Iterable<? extends ResponseConverterFunction> responseConverterFunctions)
Binds the specified annotated service object under the specified path prefix.
|
VirtualHostBuilder |
VirtualHostBuilder.annotatedServiceExtensions(Iterable<? extends RequestConverterFunction> requestConverterFunctions,
Iterable<? extends ResponseConverterFunction> responseConverterFunctions,
Iterable<? extends ExceptionHandlerFunction> exceptionHandlerFunctions)
Sets the
RequestConverterFunctions, ResponseConverterFunction
and ExceptionHandlerFunctions for creating an AnnotatedServiceExtensions. |
ServerBuilder |
ServerBuilder.annotatedServiceExtensions(Iterable<? extends RequestConverterFunction> requestConverterFunctions,
Iterable<? extends ResponseConverterFunction> responseConverterFunctions,
Iterable<? extends ExceptionHandlerFunction> exceptionHandlerFunctions)
Sets the
RequestConverterFunctions, ResponseConverterFunction
and ExceptionHandlerFunctions for creating an AnnotatedServiceExtensions. |
VirtualHostAnnotatedServiceBindingBuilder |
VirtualHostAnnotatedServiceBindingBuilder.exceptionHandlers(Iterable<? extends ExceptionHandlerFunction> exceptionHandlerFunctions)
Adds the given
ExceptionHandlerFunctions to this
VirtualHostAnnotatedServiceBindingBuilder. |
AnnotatedServiceBindingBuilder |
AnnotatedServiceBindingBuilder.exceptionHandlers(Iterable<? extends ExceptionHandlerFunction> exceptionHandlerFunctions)
Adds the given
ExceptionHandlerFunctions to this AnnotatedServiceBindingBuilder. |
| Modifier and Type | Method and Description |
|---|---|
ResponseConverterFunction |
ResponseConverterFunctionProvider.createResponseConverterFunction(Type responseType,
ResponseConverterFunction responseConverter,
ExceptionHandlerFunction exceptionHandler)
Returns a
ResponseConverterFunction instance if there is a function which can convert
the responseType, otherwise return null. |
Copyright © 2020 LeanCloud. All rights reserved.