Package com.linecorp.armeria.common
Common types.
Starting points
-
Interface Summary Interface Description 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
.HttpData HTTP/2 data.HttpHeaders Immutable HTTP/2 headers.HttpHeadersBuilder Builds anHttpHeaders
.HttpObject The common interface for HTTP/2 message objects,HttpHeaders
andHttpData
.HttpParameters HTTP parameters map.HttpRequest A streamed HTTP/2Request
.HttpRequestWriter AnHttpRequest
that can haveHttpObject
s written to it.HttpResponse A streamed HTTP/2Response
.HttpResponseWriter AnHttpResponse
that can haveHttpObject
s written to it.Request A request.RequestContext RequestHeaders Immutable HTTP/2 headers for anHttpRequest
.RequestHeadersBuilder Builds aRequestHeaders
.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
. -
Class Summary Class Description AbstractHttpData Support APIs for creating well-behavedHttpData
objects.AbstractRequestContext A skeletalRequestContext
implementation.AbstractRequestContextBuilder<B extends AbstractRequestContextBuilder<B>> 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.DefaultHttpData DefaultHttpData
implementation.DefaultHttpParameters Default implementation ofHttpParameters
which uses theHashingStrategy.JAVA_HASHER
to support case-sensitive parameter names.DefaultHttpRequest Deprecated. DefaultHttpResponse Deprecated. DefaultRpcRequest DefaultRpcRequest
implementation.DefaultRpcResponse DefaultRpcResponse
implementation.DeferredHttpResponse Deprecated. 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.HttpHeadersJsonDeserializer JacksonJsonDeserializer
forHttpHeaders
.HttpHeadersJsonSerializer JacksonJsonSerializer
forHttpHeaders
.HttpRequestDuplicator Allows subscribing to aHttpRequest
multiple times by duplicating the stream.HttpResponseDuplicator Allows subscribing to aHttpResponse
multiple times by duplicating the stream.HttpStatus HTTP response code and its description.MediaType Represents an Internet Media Type (also known as a MIME Type or Content Type).MediaTypeJsonDeserializer JacksonJsonDeserializer
forMediaType
.MediaTypeJsonSerializer JacksonJsonSerializer
forMediaType
.MediaTypeSet NonWrappingRequestContext DefaultRequestContext
implementation.RequestContextWrapper<T extends RequestContext> Wraps an existingRequestContext
.RequestHeadersJsonDeserializer JacksonJsonDeserializer
forRequestHeaders
.ResponseHeadersJsonDeserializer JacksonJsonDeserializer
forResponseHeaders
.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 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 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
that is raised when a requested invocation did not complete before its deadline.