| Package | Description |
|---|---|
| com.linecorp.armeria.internal.annotation | |
| com.linecorp.armeria.server |
Server core.
|
| com.linecorp.armeria.server.annotation |
Annotations for building a RESTful service.
|
| Modifier and Type | Method and Description |
|---|---|
static List<AnnotatedHttpServiceElement> |
AnnotatedHttpServiceFactory.find(String pathPrefix,
Object object,
List<ExceptionHandlerFunction> exceptionHandlerFunctions,
List<RequestConverterFunction> requestConverterFunctions,
List<ResponseConverterFunction> responseConverterFunctions)
Returns the list of
AnnotatedHttpService defined by Path and HTTP method annotations
from the specified object, ExceptionHandlerFunction's,
RequestConverterFunction's and ResponseConverterFunction's. |
| Modifier and Type | Method and Description |
|---|---|
VirtualHostAnnotatedServiceBindingBuilder |
VirtualHostAnnotatedServiceBindingBuilder.responseConverter(ResponseConverterFunction responseConverterFunction)
|
AnnotatedServiceBindingBuilder |
AnnotatedServiceBindingBuilder.responseConverter(ResponseConverterFunction responseConverterFunction)
|
VirtualHostAnnotatedServiceBindingBuilder |
VirtualHostAnnotatedServiceBindingBuilder.responseConverters(ResponseConverterFunction... responseConverterFunctions)
Adds the given
ResponseConverterFunctions to this
VirtualHostAnnotatedServiceBindingBuilder. |
AnnotatedServiceBindingBuilder |
AnnotatedServiceBindingBuilder.responseConverters(ResponseConverterFunction... responseConverterFunctions)
Adds the given
ResponseConverterFunctions 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.
|
VirtualHostAnnotatedServiceBindingBuilder |
VirtualHostAnnotatedServiceBindingBuilder.responseConverters(Iterable<? extends ResponseConverterFunction> responseConverterFunctions)
Adds the given
ResponseConverterFunctions to this
VirtualHostAnnotatedServiceBindingBuilder. |
AnnotatedServiceBindingBuilder |
AnnotatedServiceBindingBuilder.responseConverters(Iterable<? extends ResponseConverterFunction> responseConverterFunctions)
Adds the given
ResponseConverterFunctions to this AnnotatedServiceBindingBuilder. |
| Modifier and Type | Class and Description |
|---|---|
class |
ByteArrayResponseConverterFunction
A response converter implementation which creates an
HttpResponse with
content-type: application/binary or content-type: application/octet-stream. |
class |
JacksonResponseConverterFunction
A response converter implementation which creates an
HttpResponse with
content-type: application/json; charset=utf-8 or content-type: application/json-seq. |
class |
NullToNoContentResponseConverterFunction
A response converter implementation which creates an
HttpResponse of HttpStatus.NO_CONTENT
when the specified result is null. |
class |
ServerSentEventResponseConverterFunction
A response converter implementation which creates an
HttpResponse with
content-type: text/event-stream. |
class |
StringResponseConverterFunction
A response converter implementation which creates an
HttpResponse with
content-type: text/plain. |
| 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. |
| 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.