| Package | Description |
|---|---|
| com.linecorp.armeria.internal.server.annotation |
Various classes used internally.
|
| com.linecorp.armeria.server |
Server core.
|
| com.linecorp.armeria.server.auth |
HTTP authorization service.
|
| com.linecorp.armeria.server.composition |
Service composition.
|
| com.linecorp.armeria.server.cors |
Cross-Origin Resource Sharing
(CORS) support.
|
| com.linecorp.armeria.server.docs |
Documentation service.
|
| com.linecorp.armeria.server.encoding |
HTTP content encoding service.
|
| com.linecorp.armeria.server.file |
HTTP static file service.
|
| com.linecorp.armeria.server.healthcheck |
HTTP health check service for load balancers.
|
| com.linecorp.armeria.server.logging |
Logging and metric-collecting service decorators.
|
| com.linecorp.armeria.server.metric |
Metric-collecting service decorators and exporters.
|
| com.linecorp.armeria.server.throttling |
Request throttling service decorators and strategies.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AnnotatedService
An
HttpService which is defined by a Path or HTTP method annotations. |
| Modifier and Type | Method and Description |
|---|---|
Set<Class<? extends Service<?,?>>> |
AnnotatedDocServicePlugin.supportedServiceTypes() |
| Modifier and Type | Interface and Description |
|---|---|
interface |
HttpService
An HTTP/2
Service. |
interface |
HttpServiceWithRoutes
An interface that enables getting all the
Routes where an HttpService should be bound. |
interface |
RpcService
An RPC
Service. |
interface |
RpcServiceWithRoutes
An interface that enables getting all the
Routes where an RpcService should be bound. |
interface |
ServiceWithRoutes<I extends Request,O extends Response>
|
interface |
TransientHttpService
An
HttpService that handles transient requests, for example, health check requests. |
interface |
TransientRpcService
An
RpcService that handles transient requests, for example, health check requests. |
interface |
TransientService<I extends Request,O extends Response>
A
Service that handles transient requests, for example, health check requests. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractHttpService
A skeletal
HttpService for easier HTTP service implementation. |
class |
DecoratingService<T_I extends Request,T_O extends Response,R_I extends Request,R_O extends Response>
|
class |
RedirectService
An
HttpService that sends a redirect response such as "307 Temporary Redirect". |
class |
SimpleDecoratingHttpService
An
HttpService that decorates another HttpService. |
class |
SimpleDecoratingRpcService
An
RpcService that decorates another RpcService. |
class |
SimpleDecoratingService<I extends Request,O extends Response>
|
| Modifier and Type | Method and Description |
|---|---|
default <R extends Service<?,?>> |
Service.decorate(Class<R> serviceType)
|
default <R extends Service<R_I,R_O>,R_I extends Request,R_O extends Response> |
HttpService.decorate(Function<? super HttpService,R> decorator)
|
default <R extends Service<R_I,R_O>,R_I extends Request,R_O extends Response> |
RpcService.decorate(Function<? super RpcService,R> decorator)
|
static <T extends Service<?,?>> |
Routers.ofCompositeService(List<CompositeServiceEntry<T>> entries)
Returns the default implementation of the
Router to find a CompositeServiceEntry. |
| Modifier and Type | Method and Description |
|---|---|
static void |
ServiceCallbackInvoker.invokeServiceAdded(ServiceConfig cfg,
Service<?,?> service)
Invokes
serviceAdded(ServiceConfig). |
| Constructor and Description |
|---|
DecoratingService(Service<T_I,T_O> delegate)
Creates a new instance that decorates the specified
Service. |
SimpleDecoratingService(Service<I,O> delegate)
Creates a new instance that decorates the specified
Service. |
| Modifier and Type | Class and Description |
|---|---|
class |
AuthService
Decorates an
HttpService to provide HTTP authorization functionality. |
class |
HttpAuthService
Deprecated.
Use
AuthService. |
| Modifier and Type | Method and Description |
|---|---|
O |
AuthFailureHandler.authFailed(Service<I,O> delegate,
ServiceRequestContext ctx,
I req,
Throwable cause)
Invoked when the authorization of the specified
Request has failed. |
O |
AuthSuccessHandler.authSucceeded(Service<I,O> delegate,
ServiceRequestContext ctx,
I req)
Invoked when the authorization of the specified
Request has succeeded. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCompositeService<T extends Service<I,O>,I extends Request,O extends Response>
|
class |
AbstractCompositeServiceBuilder<T extends Service<?,?>>
A skeletal builder implementation for
AbstractCompositeService and its subclasses. |
class |
CompositeServiceEntry<T extends Service<?,?>>
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCompositeService<T extends Service<I,O>,I extends Request,O extends Response>
|
class |
SimpleCompositeRpcService
A general purpose
AbstractCompositeService implementation. |
class |
SimpleCompositeService
A general purpose
AbstractCompositeService implementation. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Service<?,?>> |
CompositeServiceEntry.of(Route route,
T service)
|
static <T extends Service<?,?>> |
CompositeServiceEntry.of(String pathPattern,
T service)
Creates a new
CompositeServiceEntry whose Service is bound at the specified
path pattern. |
static <T extends Service<?,?>> |
CompositeServiceEntry.ofCatchAll(T service)
|
static <T extends Service<?,?>> |
CompositeServiceEntry.ofExact(String exactPath,
T service)
Creates a new
CompositeServiceEntry whose Service is bound at the specified
exact path. |
static <T extends Service<?,?>> |
CompositeServiceEntry.ofGlob(String glob,
T service)
Creates a new
CompositeServiceEntry whose Service is bound at the path that matches
the specified glob pattern. |
static <T extends Service<?,?>> |
CompositeServiceEntry.ofPrefix(String pathPrefix,
T service)
Creates a new
CompositeServiceEntry whose Service is bound under the specified
directory. |
static <T extends Service<?,?>> |
CompositeServiceEntry.ofRegex(Pattern regex,
T service)
Creates a new
CompositeServiceEntry whose Service is bound at the path that matches
the specified regular expression. |
| Modifier and Type | Class and Description |
|---|---|
class |
CorsService
Decorates an
HttpService to add the
Cross-Origin Resource Sharing
(CORS) support. |
| Modifier and Type | Class and Description |
|---|---|
class |
DocService
|
| Modifier and Type | Method and Description |
|---|---|
Set<Class<? extends Service<?,?>>> |
DocServicePlugin.supportedServiceTypes()
|
| Modifier and Type | Class and Description |
|---|---|
class |
EncodingService
Decorates an
HttpService to apply HTTP encoding (e.g., gzip) to an HttpService. |
| Modifier and Type | Class and Description |
|---|---|
class |
FileService
An
HttpService that serves static files from a file system. |
class |
HttpFileService
Deprecated.
Use
FileService. |
| Modifier and Type | Class and Description |
|---|---|
class |
HealthCheckService
An
HttpService that responds with HTTP status "200 OK" if the server is healthy and can
accept requests and HTTP status "503 Service Not Available" if the server is unhealthy and cannot
accept requests. |
class |
HttpHealthCheckService
Deprecated.
Use
HealthCheckService. |
class |
ManagedHttpHealthCheckService
Deprecated.
Use
HealthCheckService. |
| Modifier and Type | Class and Description |
|---|---|
class |
ContentPreviewingService
|
class |
LoggingService
|
| Modifier and Type | Class and Description |
|---|---|
class |
MetricCollectingService
Decorates an
HttpService to collect metrics into MeterRegistry. |
class |
PrometheusExpositionService
Exposes Prometheus metrics in text
format 0.0.4.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractThrottlingService<I extends Request,O extends Response>
Decorates a
Service to throttle incoming requests. |
class |
ThrottlingRpcService
Decorates an RPC
Service to throttle incoming requests. |
class |
ThrottlingService
Decorates an
HttpService to throttle incoming requests. |
| Constructor and Description |
|---|
AbstractThrottlingService(Service<I,O> delegate,
ThrottlingStrategy<I> strategy,
Function<CompletionStage<? extends O>,O> responseConverter)
Creates a new instance that decorates the specified
Service. |
Copyright © 2020 LeanCloud. All rights reserved.