| 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<RequestConverterFunction> |
AnnotatedServiceExtensions.requestConverters()
Returns the specified
RequestConverterFunctions 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.requestConverter(RequestConverterFunction requestConverterFunction)
|
AnnotatedServiceBindingBuilder |
AnnotatedServiceBindingBuilder.requestConverter(RequestConverterFunction requestConverterFunction)
|
VirtualHostAnnotatedServiceBindingBuilder |
VirtualHostAnnotatedServiceBindingBuilder.requestConverters(RequestConverterFunction... requestConverterFunctions)
Adds the given
RequestConverterFunctions to this
VirtualHostAnnotatedServiceBindingBuilder. |
AnnotatedServiceBindingBuilder |
AnnotatedServiceBindingBuilder.requestConverters(RequestConverterFunction... requestConverterFunctions)
Adds the given
RequestConverterFunctions 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.requestConverters(Iterable<? extends RequestConverterFunction> requestConverterFunctions)
Adds the given
RequestConverterFunctions to this
VirtualHostAnnotatedServiceBindingBuilder. |
AnnotatedServiceBindingBuilder |
AnnotatedServiceBindingBuilder.requestConverters(Iterable<? extends RequestConverterFunction> requestConverterFunctions)
Adds the given
RequestConverterFunctions to this AnnotatedServiceBindingBuilder. |
| Modifier and Type | Class and Description |
|---|---|
class |
ByteArrayRequestConverterFunction
A default implementation of a
RequestConverterFunction which converts a binary body of
the AggregatedHttpRequest to one of byte[] or HttpData. |
class |
JacksonRequestConverterFunction
A default implementation of a
RequestConverterFunction which converts a JSON body of
the AggregatedHttpRequest to an object by ObjectMapper. |
class |
StringRequestConverterFunction
A default implementation of a
RequestConverterFunction which converts a text body of
the AggregatedHttpRequest to a String. |
Copyright © 2020 LeanCloud. All rights reserved.