Package com.linecorp.armeria.common
Common types.
Starting points
-
Interface Summary Interface Description AggregatedHttpObject A complete HTTP headers and content that are readily available.AggregatedHttpRequest A complete HTTP request whose content is readily available as a singleHttpData
.AggregatedHttpResponse A complete HTTP response whose content is readily available as a singleHttpData
.ContextAwareEventLoop A delegatingEventLoop
that sets theRequestContext
before executing any submitted tasks.ContextAwareScheduledExecutorService A delegatingScheduledExecutorService
that sets theRequestContext
before executing any submitted tasks.ContextHolder A holder ofRequestContext
.Cookie An interface defining an HTTP cookie.Cookies Http1HeaderNaming Converts a normalized HTTP/2 header name to another HTTP/1 header name.HttpData HTTP/2 data that contains a chunk of bytes.HttpHeaders Immutable HTTP/2 headers.HttpHeadersBuilder Builds anHttpHeaders
.HttpMessage A streamed HTTP/2 message.HttpObject The common interface for HTTP/2 message objects,HttpHeaders
andHttpData
.HttpRequest A streamed HTTP/2Request
.HttpRequestDuplicator A duplicator that duplicates aHttpRequest
into one or moreHttpRequest
s, which publish the same elements.HttpRequestWriter AnHttpRequest
that can haveHttpObject
s written to it.HttpResponse A streamed HTTP/2Response
.HttpResponseDuplicator A duplicator that duplicates aHttpResponse
into one or moreHttpResponse
s, which publish the same elements.HttpResponseWriter AnHttpResponse
that can haveHttpObject
s written to it.JacksonModuleProvider QueryParams Immutable HTTP query parameters.QueryParamsBuilder Builds aQueryParams
.Request A request.RequestContext RequestContextStorage The storage for storingRequestContext
.RequestContextStorageProvider Creates a newRequestContextStorage
dynamically via Java SPI (Service Provider Interface).RequestHeaders Immutable HTTP/2 headers for anHttpRequest
.RequestHeadersBuilder Builds aRequestHeaders
.RequestId Response A response stream or a holder of the future result value.ResponseHeaders Immutable HTTP/2 headers for anHttpResponse
.ResponseHeadersBuilder Builds aResponseHeaders
.RpcRequest An RPCRequest
.RpcResponse An RPCResponse
.SplitHttpResponse AnHttpResponse
which splits a stream ofHttpObject
s into HTTP headers and payloads. -
Class Summary Class Description AbstractHttpRequestBuilder Builds a newHttpRequest
.AbstractRequestContextBuilder Provides the information required for building aRequestContext
.CacheControl Directives for HTTP caching mechanisms in requests or responses.ClientCacheControl Directives for HTTP caching mechanisms in requests.ClientCacheControlBuilder Creates a newClientCacheControl
using the builder pattern.CommonPools Provides the common shared thread pools andEventLoopGroup
s which is used when not overridden.CompletableRpcResponse AnRpcResponse
implementation which is initially incomplete and can be completed later.ContentDisposition Representation of the Content-Disposition type and parameters as defined in RFC 6266.ContentDispositionBuilder A builder class for creatingContentDisposition
.ContentTooLargeExceptionBuilder Builds a newContentTooLargeException
.CookieBuilder Builds aCookie
.FilteredHttpRequest AnHttpRequest
that filters objects as they are published.FilteredHttpResponse AnHttpResponse
that filters objects as they are published.Flags The system properties that affect Armeria's runtime behavior.HttpHeaderNames Contains constant definitions for the HTTP header field names.HttpRequestBuilder Builds a newHttpRequest
.HttpStatus HTTP response code and its description.MediaType Represents an Internet Media Type (also known as a MIME Type or Content Type).MediaTypeNames String constants defined inMediaType
class.MediaTypeSet NonWrappingRequestContext A skeletalRequestContext
implementation that helps to implement a non-wrappingRequestContext
.RequestContextStorageWrapper Wraps an existingRequestContextStorage
.RequestContextWrapper<T extends RequestContext> Wraps an existingRequestContext
.Scheme A pair ofSerializationFormat
andSessionProtocol
.SerializationFormat Serialization format of a remote procedure call and its reply.SerializationFormatProvider Registers theSerializationFormat
s dynamically via Java SPI (Service Provider Interface).SerializationFormatProvider.Entry A registration entry of aSerializationFormat
.ServerCacheControl Directives for HTTP caching mechanisms in responses.ServerCacheControlBuilder Creates a newServerCacheControl
using the builder pattern. -
Enum Summary Enum Description ByteBufAccessMode HttpMethod HTTP request method.HttpStatusClass The class of HTTP status.SessionProtocol Session-level protocol that provides facilities such as framing and flow control. -
Exception Summary Exception Description CancellationException ARuntimeException
raised when a requested invocation is forced to stop before its completion.ClosedSessionException ARuntimeException
raised when the connection to the remote peer has been closed unexpectedly.ContentTooLargeException ARuntimeException
raised when the length of request or response content exceeds its limit.ProtocolViolationException ARuntimeException
raised when a remote peer violated the currentSessionProtocol
.TimeoutException ARuntimeException
raised when a requested invocation does not complete before its deadline.