Package com.linecorp.armeria.common
@NonNullByDefault
package com.linecorp.armeria.common
Common types.
Starting points
-
ClassDescriptionA skeletal builder implementation for
HttpMessage
.Builds a newHttpRequest
.Provides the information required for building aRequestContext
.A complete HTTP message whose content is readily available as a singleHttpData
.A complete HTTP headers and content that are readily available.A complete HTTP request whose content is readily available as a singleHttpData
.A complete HTTP response whose content is readily available as a singleHttpData
.AnAggregationOptions
to control the aggregation behavior ofHttpMessage
.A builder forAggregationOptions
.An immutableAttributes
that holds attributes which can be accessed viaAttributeKey
.A builder forAttributes
.Provides the getter methods toAttributes
andConcurrentAttributes
.Sets entries for building anAttributes
or updatingConcurrentAttributes
.Represents binary data.Directives for HTTP caching mechanisms in requests or responses.ARuntimeException
raised when a requested invocation is forced to stop before its completion.Directives for HTTP caching mechanisms in requests.Creates a newClientCacheControl
using the builder pattern.ARuntimeException
raised when the connection to the remote peer has been closed unexpectedly.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.AnAttributes
supporting concurrency of retrievals and updates.Representation of the Content-Disposition type and parameters as defined in RFC 6266.A builder class for creatingContentDisposition
.ARuntimeException
raised when the length of request or response content exceeds its limit.Builds a newContentTooLargeException
.A delegatingBiConsumer
that makes sure an underlying BiConsumer is executed within theRequestContext
.ContextAwareBiFunction<T,U, R> A delegatingBiFunction
that makes sure an underlying BiFunction is executed within theRequestContext
.A delegatingBlockingTaskExecutor
that sets theRequestContext
before executing any submitted tasks.A delegatingCallable
that makes sure an underlying Callable is executed within theRequestContext
.A delegatingConsumer
that makes sure an underlying Consumer is executed within theRequestContext
.A delegatingEventLoop
that sets theRequestContext
before executing any submitted tasks.A delegatingExecutor
that makes sure all submitted tasks are executed within theRequestContext
.A delegatingExecutorService
that makes sure all submitted tasks are executed within theRequestContext
.ContextAwareFunction<T,R> A delegatingFunction
that makes sure an underlying Function is executed within theRequestContext
.A delegatingRunnable
that makes sure an underlying Runnable is executed within theRequestContext
.A delegatingScheduledExecutorService
that sets theRequestContext
before executing any submitted tasks.A holder ofRequestContext
.An interface defining an HTTP cookie.Builds aCookie
.ABlockHoundIntegration
for the core module.Injects dependencies that are specified inRequestConverter.value()
,ResponseConverter.value()
,ExceptionHandler.value()
,Decorator.value()
andDecoratorFactory.value()
.An exception which is thrown when anHttpResponse
without any headers or body is attempted to be sent over the wire.Represents whether to stream anHttpRequest
orHttpResponse
.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.A Java SPI (Service Provider Interface) for theFlags
values.Converts a normalized HTTP/2 header name to another HTTP/1 header name.HTTP/2 data that contains a chunk of bytes.HttpEntity<T>An entity of an HTTP message.Contains constant definitions for the HTTP header field names.Immutable HTTP/2 headers.Builds anHttpHeaders
.A streamed HTTP/2 message.Sets properties for building anHttpMessage
.HTTP request method.The common interface for HTTP/2 message objects,HttpHeaders
andHttpData
.A streamed HTTP/2Request
.Builds a newHttpRequest
.A duplicator that duplicates aHttpRequest
into one or moreHttpRequest
s, which publish the same elements.Sets properties for building anHttpRequest
.AnHttpRequest
that can haveHttpObject
s written to it.A streamed HTTP/2Response
.Builds a newHttpResponse
.A duplicator that duplicates aHttpResponse
into one or moreHttpResponse
s, which publish the same elements.AnHttpResponse
that can haveHttpObject
s written to it.HTTP response code and its description.The class of HTTP status.A Java SPI (Service Provider Interface) for the default JacksonObjectMapper
.Represents an Internet Media Type (also known as a MIME Type or Content Type).String constants defined inMediaType
class.ARuntimeException
that is raised when attempted to access a null request or response content.Provides the setters for building a path and a query string.ARuntimeException
raised when a remote peer violated the currentSessionProtocol
.Immutable HTTP query parameters.Builds aQueryParams
.A request.The storage for storingRequestContext
.Creates a newRequestContextStorage
dynamically via Java SPI (Service Provider Interface).Wraps an existingRequestContextStorage
.RequestContextWrapper<T extends RequestContext>Wraps an existingRequestContext
.An entity of an HTTP request.Immutable HTTP/2 headers for anHttpRequest
.Builds aRequestHeaders
.Provide the setters for building anHttpMethod
and a request path.An HTTP request target, as defined in Section 3.2, RFC 9112.RequestTarget
form, as defined in Section 3.2, RFC 9112.A response stream or a holder of the future result value.A specialCancellationException
that aborts anHttpRequest
after the correspondingHttpResponse
is completed.An entity of an HTTP response.Immutable HTTP/2 headers for anHttpResponse
.Builds aResponseHeaders
.An RPCRequest
.An RPCResponse
.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.Session-level protocol that provides facilities such as framing and flow control.AnHttpMessage
which splits a stream ofHttpObject
s into payloads and HTTP trailers.AnHttpRequest
which splits a stream ofHttpObject
s into HTTP headers and payloads.AnHttpResponse
which splits a stream ofHttpObject
s into HTTP headers and payloads.ARuntimeException
raised when a requested invocation does not complete before its deadline.Sets properties for TLS or SSL.