Package com.linecorp.armeria.common
@NonNullByDefault
package com.linecorp.armeria.common
Common types.
Starting points
-
InterfaceDescriptionA complete HTTP headers and content that are readily available.A complete HTTP request whose content is readily available as a single
HttpData
.A complete HTTP response whose content is readily available as a singleHttpData
.A delegatingEventLoop
that sets theRequestContext
before executing any submitted tasks.A delegatingScheduledExecutorService
that sets theRequestContext
before executing any submitted tasks.A holder ofRequestContext
.An interface defining an HTTP cookie.Converts a normalized HTTP/2 header name to another HTTP/1 header name.HTTP/2 data that contains a chunk of bytes.Immutable HTTP/2 headers.Builds anHttpHeaders
.A streamed HTTP/2 message.The common interface for HTTP/2 message objects,HttpHeaders
andHttpData
.A streamed HTTP/2Request
.A duplicator that duplicates aHttpRequest
into one or moreHttpRequest
s, which publish the same elements.AnHttpRequest
that can haveHttpObject
s written to it.A streamed HTTP/2Response
.A duplicator that duplicates aHttpResponse
into one or moreHttpResponse
s, which publish the same elements.AnHttpResponse
that can haveHttpObject
s written to it.A Java SPI (Service Provider Interface) for the default JacksonObjectMapper
.Immutable HTTP query parameters.Builds aQueryParams
.A request.The storage for storingRequestContext
.Creates a newRequestContextStorage
dynamically via Java SPI (Service Provider Interface).Immutable HTTP/2 headers for anHttpRequest
.Builds aRequestHeaders
.A response stream or a holder of the future result value.Immutable HTTP/2 headers for anHttpResponse
.Builds aResponseHeaders
.An RPCRequest
.An RPCResponse
.AnHttpResponse
which splits a stream ofHttpObject
s into HTTP headers and payloads. -
ClassDescriptionBuilds a new
HttpRequest
.Provides the information required for building aRequestContext
.Directives for HTTP caching mechanisms in requests or responses.Directives for HTTP caching mechanisms in requests.Creates a newClientCacheControl
using the builder pattern.Provides the common shared thread pools andEventLoopGroup
s which is used when not overridden.AnRpcResponse
implementation which is initially incomplete and can be completed later.Representation of the Content-Disposition type and parameters as defined in RFC 6266.A builder class for creatingContentDisposition
.Builds a newContentTooLargeException
.Builds aCookie
.AnHttpRequest
that filters objects as they are published.AnHttpResponse
that filters objects as they are published.The system properties that affect Armeria's runtime behavior.Contains constant definitions for the HTTP header field names.Builds a newHttpRequest
.HTTP response code and its description.Represents an Internet Media Type (also known as a MIME Type or Content Type).String constants defined inMediaType
class.A skeletalRequestContext
implementation that helps to implement a non-wrappingRequestContext
.Wraps an existingRequestContextStorage
.RequestContextWrapper<T extends RequestContext>Wraps an existingRequestContext
.A pair ofSerializationFormat
andSessionProtocol
.Serialization format of a remote procedure call and its reply.Registers theSerializationFormat
s dynamically via Java SPI (Service Provider Interface).A registration entry of aSerializationFormat
.Directives for HTTP caching mechanisms in responses.Creates a newServerCacheControl
using the builder pattern. -
Enum ClassDescriptionHTTP request method.The class of HTTP status.Session-level protocol that provides facilities such as framing and flow control.
-
ExceptionDescriptionA
RuntimeException
raised when a requested invocation is forced to stop before its completion.ARuntimeException
raised when the connection to the remote peer has been closed unexpectedly.ARuntimeException
raised when the length of request or response content exceeds its limit.ARuntimeException
raised when a remote peer violated the currentSessionProtocol
.ARuntimeException
raised when a requested invocation does not complete before its deadline.