Package com.linecorp.armeria.server
Server core.
Starting points
-
Interface Summary Interface Description DecoratingHttpServiceFunction A functional interface that enables building aSimpleDecoratingHttpService
withHttpService.decorate(DecoratingHttpServiceFunction)
.DecoratingRpcServiceFunction A functional interface that enables building aSimpleDecoratingRpcService
withRpcService.decorate(DecoratingRpcServiceFunction)
.HttpService An HTTP/2Service
.HttpServiceWithRoutes An interface that enables getting all theRoute
s where anHttpService
should be bound.RejectedRouteHandler Route Route
maps from an incoming HTTP request to anHttpService
based on its path, method, content type and accepted types.Router<V> Finds a mapping that matches a givenRoutingContext
.RoutingContext Holds the parameters which are required to find a service available to handle the request.RpcService An RPCService
.RpcServiceWithRoutes An interface that enables getting all theRoute
s where anRpcService
should be bound.ServerListener Listens to life cycle events of aServer
.Service<I extends Request,O extends Response> ServiceRequestContext Provides information about an invocation and related utilities.ServiceWithRoutes<I extends Request,O extends Response> TransientHttpService AnHttpService
that handles transient requests, for example, health check requests.TransientRpcService AnRpcService
that handles transient requests, for example, health check requests.TransientService<I extends Request,O extends Response> AService
that handles transient requests, for example, health check requests.TransientServiceBuilder Builds aTransientService
. -
Class Summary Class Description AbstractHttpService A skeletalHttpService
for easier HTTP service implementation.AnnotatedServiceBindingBuilder A builder class for binding anHttpService
fluently.ClientAddressSource A source which is used to get a client address.DecoratingService<T_I extends Request,T_O extends Response,R_I extends Request,R_O extends Response> DecoratingServiceBindingBuilder A builder class for binding adecorator
withRoute
fluently.DefaultServiceRequestContext DefaultServiceRequestContext
implementation.ProxiedAddresses An interface to provide source and destination addresses delivered from a proxy server.RedirectService AnHttpService
that sends a redirect response such as"307 Temporary Redirect"
.RouteBuilder Builds a newRoute
.Routed<T> A value mapped byRouter
.Routers A factory that creates aRouter
instance.RoutingResult The result returned byRoute.apply(RoutingContext, boolean)
.RoutingResultBuilder Builds a newRoutingResult
.Server Listens toServerPort
s and delegates client requests toService
s.ServerBuilder Builds a newServer
and itsServerConfig
.ServerConfig Server
configuration.ServerListenerAdapter A skeletalServerListener
implementation in order for a user to implement only the methods what he or she really needs.ServerListenerBuilder Builds a newServerListener
.ServerPort A pair of server-side bind address andSessionProtocol
.ServiceBindingBuilder A builder class for binding anHttpService
fluently.ServiceCallbackInvoker A helper class that invokes the callback methods inService
.ServiceConfig AnHttpService
configuration.ServiceRequestContextBuilder Builds a newServiceRequestContext
.ServiceRequestContextWrapper Wraps an existingServiceRequestContext
.SimpleDecoratingHttpService AnHttpService
that decorates anotherHttpService
.SimpleDecoratingRpcService AnRpcService
that decorates anotherRpcService
.SimpleDecoratingService<I extends Request,O extends Response> VirtualHost VirtualHostAnnotatedServiceBindingBuilder A builder class for binding anHttpService
to a virtual host fluently.VirtualHostBuilder Builds a newVirtualHost
.VirtualHostDecoratingServiceBindingBuilder A builder class for binding adecorator
to aRoute
fluently.VirtualHostServiceBindingBuilder A builder class for binding anHttpService
fluently. -
Enum Summary Enum Description RoutePathType The type of the path which was specified when aRoute
is created.RoutingResultType The type ofRoutingResult
.TransientServiceOption Specifies which features should be enabled for aTransientService
. -
Exception Summary Exception Description HttpResponseException ARuntimeException
that is raised to send an HTTP response with the content specified by a user.HttpStatusException ARuntimeException
that is raised to send a simplistic HTTP response with minimal content by aService
.RequestCancellationException ACancellationException
raised when a request is cancelled by the user.RequestTimeoutException ATimeoutException
raised when a request has not been received from a client within timeout.