Package com.linecorp.armeria.server
Server core.
Starting points
-
Interface Summary Interface Description DecoratingServiceFunction<I extends Request,O extends Response> A functional interface that enables building aSimpleDecoratingService
withService.decorate(DecoratingServiceFunction)
.HttpService An HTTP/2Service
.PathMapping Matches the absolute path part of a URI and extracts path parameters from it.PathMappingContext Holds the parameters which are required to find a service available to handle the request.RejectedPathMappingHandler RequestTimeoutChangeListener A listener that is notified when request timeout setting is changed.Router<V> Finds a mapping that matches a givenPathMappingContext
.ServerListener Listens to life cycle events of aServer
.Service<I extends Request,O extends Response> ServiceRequestContext Provides information about an invocation and related utilities.ServiceWithPathMappings<I extends Request,O extends Response> An interface that enables getting all thePathMapping
where aService
should be bound.TransientService<I extends Request,O extends Response> AService
that handles transient requests, for example, health check requests. -
Class Summary Class Description AbstractHttpService A skeletalHttpService
for easier HTTP service implementation.AbstractPathMapping A skeletalPathMapping
implementation.ChainedVirtualHostBuilder Builds a newVirtualHost
.DecoratingService<T_I extends Request,T_O extends Response,R_I extends Request,R_O extends Response> DefaultServiceRequestContext DefaultServiceRequestContext
implementation.GracefulShutdownSupport Keeps track of pending requests to allow shutdown to happen after a fixed quiet period passes after the last pending request.PathMapped<T> A value mapped byRouter
.PathMappingResult The result returned byPathMapping.apply(PathMappingContext)
.ProxiedAddresses An interface to provide source and destination addresses delivered from a proxy server.RedirectService AnHttpService
that implements an HTTP redirection.Routers A factory that creates aRouter
instance.Server Listens toServerPort
s and delegates client requests toService
s.ServerBuilder Builds a newServer
and itsServerConfig
.ServerConfig Server
configuration.ServerListenerAdapter A skeletalServerListener
implementation to minimize the effort to implement this interface.ServerListenerBuilder Builds a newServerListener
.ServerPort A pair of server-side bind address andSessionProtocol
.ServiceCallbackInvoker A helper class that invokes the callback methods inService
.ServiceConfig ServiceRequestContextWrapper Wraps an existingServiceRequestContext
.SimpleDecoratingService<I extends Request,O extends Response> VirtualHost VirtualHostBuilder Builds a newVirtualHost
. -
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
.RequestTimeoutException ATimeoutException
raised when a request has not been received from a client within timeout.