Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- absoluteTimeout(Duration) - Method in class com.jsgalactic.axiom.security.InMemorySessionStore.Builder
-
Sets the absolute timeout, which must not be shorter than the idle timeout.
- accept(JwtClaims) - Method in interface com.jsgalactic.axiom.security.jwt.TokenCheck
-
Decides whether a verified token is acceptable.
- accepted() - Method in record class com.jsgalactic.axiom.execution.AdmissionSnapshot
-
Returns the value of the
acceptedrecord component. - ACCEPTED - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
202 Accepted.
- acquire(String) - Method in class com.jsgalactic.axiom.security.RateLimit
-
Counts one request under a key.
- active() - Method in record class com.jsgalactic.axiom.execution.AdmissionSnapshot
-
Returns the value of the
activerecord component. - active() - Method in class com.jsgalactic.axiom.jta.TransactionContext
-
Reports whether a transaction is currently associated with this request.
- active(Context) - Method in interface com.jsgalactic.axiom.jpa.JtaTransactionLookup
-
Reports whether the request has a JTA transaction an EntityManager can join.
- active(Object) - Method in class com.jsgalactic.axiom.jta.Jta
- active(Object) - Method in class com.jsgalactic.axiom.jta.JtaLookupService
- active(Object) - Method in interface com.jsgalactic.axiom.jta.spi.JtaTransactionLookup
-
Reports whether a transaction is currently associated with the request represented by
context. - ACTIVE - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionStatus
-
A transaction is associated with the request and can still be completed.
- add(long) - Method in interface com.jsgalactic.axiom.observability.Metrics.Counter
-
Adds an amount.
- add(long) - Method in interface com.jsgalactic.axiom.observability.Metrics.Gauge
-
Adds a signed amount.
- address() - Method in record class com.jsgalactic.axiom.security.ClientOrigin
-
Returns the value of the
addressrecord component. - address(String, int) - Method in class com.jsgalactic.axiom.grpc.Grpc.Builder
-
Sets the listener address.
- addTo(Response) - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns the response with this cookie as its
Set-Cookie. - admission() - Method in interface com.jsgalactic.axiom.lifecycle.Server
-
Observes admission without running callbacks on transport threads.
- admissionPolicy() - Method in interface com.jsgalactic.axiom.application.Application
-
Returns the aggregate policy of the application-wide execution budget.
- admissionPolicy(AdmissionPolicy) - Method in interface com.jsgalactic.axiom.application.Application
-
Sets the aggregate policy of the application-wide execution budget before startup.
- admissionPolicy(Route) - Method in interface com.jsgalactic.axiom.application.Application
-
Returns a registered route's bound in the application-wide budget, or the aggregate policy.
- admissionPolicy(Route, AdmissionPolicy) - Method in interface com.jsgalactic.axiom.application.Application
-
Sets the bound of one registered route in the application-wide budget before startup.
- AdmissionPolicy - Record Class in com.jsgalactic.axiom.execution
-
Immutable execution limits.
- AdmissionPolicy(int, int, Duration) - Constructor for record class com.jsgalactic.axiom.execution.AdmissionPolicy
-
Validates limits before they can be installed.
- AdmissionSnapshot - Record Class in com.jsgalactic.axiom.execution
-
Consistent admission counters for one listener, including all its routes.
- AdmissionSnapshot(int, int, long, long, long) - Constructor for record class com.jsgalactic.axiom.execution.AdmissionSnapshot
-
Creates an instance of a
AdmissionSnapshotrecord class. - afterError(Context, Response) - Method in interface com.jsgalactic.axiom.context.Middleware
-
Decorates a response that was produced from an exception: a problem response for an
AxiomException, the response of an error handler, the generic 500, or the 406 for an unacceptable response type. - afterError(Context, Response) - Method in class com.jsgalactic.axiom.jdbc.Jdbc
-
Releases a permit for a response produced from an exception.
- afterError(Context, Response) - Method in class com.jsgalactic.axiom.security.Cors
- afterError(Context, Response) - Method in class com.jsgalactic.axiom.security.SecurityHeaders
- aggregate() - Method in record class com.jsgalactic.axiom.execution.ExecutionBudget
-
Returns the value of the
aggregaterecord component. - algorithm(RateLimit.Algorithm) - Method in class com.jsgalactic.axiom.security.RateLimit.Builder
-
Selects the algorithm.
- all(String) - Method in class com.jsgalactic.axiom.security.Cookies
-
Returns every value sent for the name, in header order.
- allowCredentials() - Method in class com.jsgalactic.axiom.security.Cors.Builder
-
Lets browsers send credentials (cookies,
Authorization) with cross-origin requests; incompatible withCors.Builder.anyOrigin(). - allowed() - Method in record class com.jsgalactic.axiom.security.RateLimit.Decision
-
Returns the value of the
allowedrecord component. - allowedOrigins(String...) - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Sets the origins allowed to send unsafe requests, as exact
scheme://host[:port]values in lower case. - allowHeaders(String...) - Method in class com.jsgalactic.axiom.security.Cors.Builder
-
Sets the request headers a preflight may ask for (none by default).
- allowMethods(String...) - Method in class com.jsgalactic.axiom.security.Cors.Builder
-
Sets the methods a preflight may request, replacing the default of
GETandHEAD. - allowOrigin(String) - Method in class com.jsgalactic.axiom.security.Cors.Builder
-
Allows one origin.
- allowSameSite(boolean) - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Accepts
Sec-Fetch-Site: same-site(other origins of the same registrable domain); off by default. - allowWildcardBind() - Method in class com.jsgalactic.axiom.application.ManagementOptions
- allowWildcardBind(boolean) - Method in class com.jsgalactic.axiom.application.ManagementOptions.Builder
-
Explicitly permits a wildcard management bind.
- and(Validator<? super T>) - Method in interface com.jsgalactic.axiom.validation.Validator
-
Returns a validator that runs this validator and then
other, keeping the first occurrence of each violation and stopping onceValidation.MAX_VIOLATIONSare collected (later validators are then not run). - and(String...) - Method in class com.jsgalactic.axiom.security.HeaderRedaction
-
Returns a copy that also redacts the named headers.
- ANONYMOUS - Static variable in interface com.jsgalactic.axiom.security.RateLimitKey
-
The key of requests whose key function produced none.
- anyOrigin() - Method in class com.jsgalactic.axiom.security.Cors.Builder
-
Allows every origin with
Access-Control-Allow-Origin: *, for public APIs that never receive credentials. - apiKeyHeader(String) - Static method in class com.jsgalactic.axiom.openapi.SecurityScheme
-
An API key sent in a request header.
- apiKeyQuery(String) - Static method in class com.jsgalactic.axiom.openapi.SecurityScheme
-
An API key sent as a query parameter.
- append(String) - Method in class com.jsgalactic.axiom.validation.FieldPath
-
Appends a field reported by a nested validator; the empty
FieldPath.ROOTmaps to this path. - Application - Interface in com.jsgalactic.axiom.application
-
Registers routes before startup and owns their execution lifecycle.
- Application.State - Enum Class in com.jsgalactic.axiom.application
-
Application lifecycle; a closed application cannot be restarted.
- ApplicationProvider - Interface in com.jsgalactic.axiom.application.spi
-
Bootstrap contract implemented by the runtime and discovered through
ServiceLoader. - asReadOnlyBuffer() - Method in class com.jsgalactic.axiom.http.Body
-
Returns a read-only view of the content without copying it.
- attribute(String) - Method in record class com.jsgalactic.axiom.context.SecurityIdentity
-
Reads an attribute.
- attribute(String) - Method in class com.jsgalactic.axiom.security.Session
-
Returns an attribute, including changes made earlier in this request.
- attribute(String, String) - Method in class com.jsgalactic.axiom.security.Session
-
Sets an attribute; applied when the request completes.
- attributes() - Method in record class com.jsgalactic.axiom.context.SecurityIdentity
-
Returns the value of the
attributesrecord component. - attributes() - Method in class com.jsgalactic.axiom.security.Session
-
Returns a snapshot of the attributes without the reserved ones.
- attributes() - Method in record class com.jsgalactic.axiom.security.SessionState
-
Returns the value of the
attributesrecord component. - attributes(Function<JwtClaims, Map<String, String>>) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Maps verified claims to identity attributes with application code, for example to flatten a nested or array claim.
- audience(String) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Accepts tokens whose
audcontains this value. - authenticate() - Method in class com.jsgalactic.axiom.security.Security
-
Returns middleware that attaches the identity when the request carries valid credentials and continues anonymously when it carries none.
- authenticate(SecurityIdentity) - Method in class com.jsgalactic.axiom.security.Session
-
Signs the identity in and rotates the identifier when the request completes.
- authenticate(Request) - Method in interface com.jsgalactic.axiom.security.Authenticator
-
Verifies the request's credentials.
- authenticate(Request) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator
- authenticate(Request) - Method in class com.jsgalactic.axiom.security.SessionAuthenticator
- authenticated() - Method in class com.jsgalactic.axiom.security.Security
-
Returns middleware that requires an identity (401 otherwise).
- authenticator() - Method in class com.jsgalactic.axiom.security.Sessions
-
Returns an authenticator that yields the identity stored in the session, for
Security.of(com.jsgalactic.axiom.security.Authenticator). - authenticator(String) - Method in class com.jsgalactic.axiom.security.Sessions
-
Returns an authenticator with another
WWW-Authenticatechallenge for 401 answers. - Authenticator - Interface in com.jsgalactic.axiom.security
-
Turns the credentials a request carries into a verified
SecurityIdentity. - AUTO - Enum constant in enum class com.jsgalactic.axiom.lifecycle.TransportKind
-
Uses a native transport when one is usable on this machine (
TransportKind.EPOLLfirst, thenTransportKind.IO_URINGon Linux, thenTransportKind.KQUEUEon macOS and the BSDs) andTransportKind.NIOotherwise. - automaticOptions() - Method in interface com.jsgalactic.axiom.context.Context
-
Returns the answer the application gives an OPTIONS request that no route serves: 204 with no body and an
Allowheader listing every method registered on any template that matches the request path,HEADwhereverGETis, andOPTIONS, sorted alphabetically (forOPTIONS *, every registered method). - awaitTermination(Duration) - Method in class com.jsgalactic.axiom.grpc.Grpc
-
Waits for the drain to finish without starting one.
- Axiom - Class in com.jsgalactic.axiom
-
Creates applications using the runtime available on the application classpath.
- AxiomException - Exception Class in com.jsgalactic.axiom.error
-
Base type for failures that the framework maps to a client-visible error response.
- AxiomException(int) - Constructor for exception class com.jsgalactic.axiom.error.AxiomException
-
Creates the exception with the status's default code, for example
not_found. - AxiomException(int, String) - Constructor for exception class com.jsgalactic.axiom.error.AxiomException
-
Creates the exception.
- AxiomException(int, String, Map<String, String>) - Constructor for exception class com.jsgalactic.axiom.error.AxiomException
-
Creates the exception with response headers.
B
- BAD_GATEWAY - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
502 Bad Gateway.
- BAD_REQUEST - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
400 Bad Request.
- BadGatewayException - Exception Class in com.jsgalactic.axiom.error
-
An invalid response from an upstream server (502).
- BadGatewayException() - Constructor for exception class com.jsgalactic.axiom.error.BadGatewayException
-
Creates the exception with code
bad_gateway. - BadGatewayException(String) - Constructor for exception class com.jsgalactic.axiom.error.BadGatewayException
-
Creates the exception with a specific safe code.
- BadRequestException - Exception Class in com.jsgalactic.axiom.error
-
A request the server cannot process because it is malformed (400).
- BadRequestException() - Constructor for exception class com.jsgalactic.axiom.error.BadRequestException
-
Creates the exception with code
bad_request. - BadRequestException(String) - Constructor for exception class com.jsgalactic.axiom.error.BadRequestException
-
Creates the exception with a specific safe code.
- basic() - Static method in class com.jsgalactic.axiom.openapi.SecurityScheme
-
HTTP basic authentication.
- bearer() - Static method in class com.jsgalactic.axiom.openapi.SecurityScheme
-
An HTTP bearer token.
- bearer(String) - Static method in class com.jsgalactic.axiom.openapi.SecurityScheme
-
An HTTP bearer token with a documented format, for example
JWT. - BEGIN - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionFailure
-
Setting the transaction timeout or beginning the transaction failed.
- beginDrain() - Method in class com.jsgalactic.axiom.observability.Health
-
Makes readiness report DOWN from now on, without running readiness checks.
- beginShutdown() - Method in class com.jsgalactic.axiom.test.StreamedResponse
-
Plays the listener closing: the handler's writer reports
shutdownRequested()and runs the actions registered withonShutdown, once. - binary(byte[]) - Static method in class com.jsgalactic.axiom.websocket.WebSocketMessage
-
Creates a binary message from a copy of the supplied bytes.
- binary(ByteBuffer) - Static method in class com.jsgalactic.axiom.websocket.WebSocketMessage
-
Creates a binary message from the remaining bytes of a buffer, without changing its position.
- bind(Application, InetSocketAddress) - Method in interface com.jsgalactic.axiom.http.spi.HttpTransportProvider
-
Binds a running application with the default options.
- bind(Application, InetSocketAddress, ListenerOptions) - Method in interface com.jsgalactic.axiom.http.spi.HttpTransportProvider
-
Binds a running application.
- binding(Function<Context, String>) - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Sets what a double-submit token is bound to (default: the principal, or empty when anonymous).
- body() - Method in class com.jsgalactic.axiom.http.Request
-
Returns the request body.
- body() - Method in class com.jsgalactic.axiom.http.Response
-
Returns body value, with a defensive copy for byte arrays.
- body(Class<T>) - Method in interface com.jsgalactic.axiom.context.Context
-
Decodes the request body with the installed codec for its Content-Type.
- Body - Class in com.jsgalactic.axiom.http
-
Immutable request content and its declared content type.
- Body(Type, List<String>) - Constructor for record class com.jsgalactic.axiom.routing.RouteDoc.Body
-
Validates and copies the body description.
- Body.Builder - Class in com.jsgalactic.axiom.http
-
Collects bytes into a private array and turns it into a
Bodywithout copying it again. - BodyCodec - Interface in com.jsgalactic.axiom.codec.spi
-
Converts request and response bodies for a fixed set of media types.
- bodyReader() - Method in interface com.jsgalactic.axiom.context.Context
-
Returns the incremental reader for this request's body, when the runtime supplied one.
- BodyReader - Interface in com.jsgalactic.axiom.http
-
A source of request body bytes that a handler reads incrementally.
- BodyReadException - Exception Class in com.jsgalactic.axiom.http
-
A read from a
BodyReaderthat could not complete because its request ended early. - BodyReadException(BodyReadException.Reason) - Constructor for exception class com.jsgalactic.axiom.http.BodyReadException
-
Creates a failure with the given reason.
- BodyReadException.Reason - Enum Class in com.jsgalactic.axiom.http
-
Why a read stopped.
- BodyValidator<T> - Interface in com.jsgalactic.axiom.context
-
Checks a decoded request body for
Context.validatedBody(Class, BodyValidator). - BodyWriter - Interface in com.jsgalactic.axiom.http
-
The destination of a streamed response body (see
Response.stream(int, java.lang.String, com.jsgalactic.axiom.http.StreamBody)). - bool(String) - Method in class com.jsgalactic.axiom.security.jwt.JwtClaims
-
Reads a boolean claim.
- BOUNDARY - Static variable in class com.jsgalactic.axiom.http.HttpPreconditions
-
Boundary of every multipart range body, chosen so responses are reproducible.
- build() - Method in class com.jsgalactic.axiom.application.ManagementOptions.Builder
-
Builds immutable options.
- build() - Method in class com.jsgalactic.axiom.graphql.GraphQl.Builder
-
Parses the schema, composes the instrumentation and builds the handler.
- build() - Method in class com.jsgalactic.axiom.grpc.Grpc.Builder
-
Builds the server without starting it.
- build() - Method in class com.jsgalactic.axiom.http.Body.Builder
-
Finishes the body.
- build() - Method in class com.jsgalactic.axiom.http.StaticFiles.Builder
-
Builds the handler.
- build() - Method in class com.jsgalactic.axiom.jdbc.Jdbc.Builder
-
Builds the gate and registers its lifecycle actions with the application.
- build() - Method in class com.jsgalactic.axiom.jpa.Jpa.Builder
-
Creates an immutable adapter and its request-scoped accessor.
- build() - Method in class com.jsgalactic.axiom.jta.Jta.Builder
-
Builds the immutable adapter.
- build() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Builds immutable options.
- build() - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions.Builder
-
Builds immutable options.
- build() - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry.Builder
-
Creates the registry.
- build() - Method in class com.jsgalactic.axiom.observability.Health.Builder
-
Builds the health service.
- build() - Method in class com.jsgalactic.axiom.openapi.OpenApi.Builder
-
Builds the configuration.
- build() - Method in class com.jsgalactic.axiom.openapi.ui.SwaggerUi.Builder
-
Builds the configuration.
- build() - Method in class com.jsgalactic.axiom.security.Cors.Builder
-
Builds the middleware.
- build() - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Builds the middleware.
- build() - Method in class com.jsgalactic.axiom.security.InMemorySessionStore.Builder
-
Builds the store.
- build() - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Builds the immutable authenticator.
- build() - Method in class com.jsgalactic.axiom.security.RateLimit.Builder
-
Builds the limiter.
- build() - Method in class com.jsgalactic.axiom.security.Sessions.Builder
-
Builds the sessions.
- builder() - Static method in class com.jsgalactic.axiom.application.ManagementOptions
-
Starts a builder with the default host, an ephemeral port and bounded diagnostics.
- builder() - Static method in class com.jsgalactic.axiom.graphql.GraphQl
-
Starts a configuration.
- builder() - Static method in class com.jsgalactic.axiom.jpa.Jpa
-
Starts a configuration that will use the supplied factory.
- builder() - Static method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
-
Starts a builder with every setting at its default.
- builder() - Static method in class com.jsgalactic.axiom.lifecycle.TlsOptions
-
Starts a builder with every setting at its default and no key material.
- builder() - Static method in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Starts a registry with explicit settings: the series limit, the histogram buckets of all timers or of one timer, and help text.
- builder() - Static method in class com.jsgalactic.axiom.openapi.ui.SwaggerUi
-
Starts a configuration.
- builder() - Static method in class com.jsgalactic.axiom.security.Cors
-
Starts a configuration.
- builder() - Static method in class com.jsgalactic.axiom.security.InMemorySessionStore
-
Starts a builder with 30 minutes idle, 8 hours absolute and 10,000 sessions.
- builder() - Static method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator
-
Starts a configuration.
- builder(long, Duration) - Static method in class com.jsgalactic.axiom.security.RateLimit
-
Starts a limiter allowing a number of requests per window for each key.
- builder(Application) - Static method in class com.jsgalactic.axiom.grpc.Grpc
-
Starts a builder for one gRPC server.
- builder(Application) - Static method in class com.jsgalactic.axiom.observability.Health
-
Starts building health for an application.
- builder(Application, DataSource) - Static method in class com.jsgalactic.axiom.jdbc.Jdbc
-
Starts a builder for one application-owned source.
- builder(SessionStore) - Static method in class com.jsgalactic.axiom.security.Sessions
-
Starts a configuration with the secure defaults.
- builder(Object) - Static method in class com.jsgalactic.axiom.jta.Jta
-
Starts a configuration around the application's transaction manager.
- builder(String, int) - Static method in class com.jsgalactic.axiom.http.Body
-
Starts a body whose array is filled incrementally and then handed to the body without another copy.
- builder(String, String) - Static method in class com.jsgalactic.axiom.openapi.OpenApi
-
Starts a configuration.
- burst(long) - Method in class com.jsgalactic.axiom.security.RateLimit.Builder
-
Sets the token bucket capacity: the most requests a idle key may send at once.
- ByteRange - Record Class in com.jsgalactic.axiom.http
-
One inclusive byte range of a representation, with offsets measured from zero (RFC 9110 section 14.1.2).
- ByteRange(long, long) - Constructor for record class com.jsgalactic.axiom.http.ByteRange
-
Validates the bounds.
- ByteRanges - Record Class in com.jsgalactic.axiom.http
-
The satisfiable ranges of a
Range: bytes=...header field (RFC 9110 section 14.2), in the order the client sent them. - ByteRanges(List<ByteRange>) - Constructor for record class com.jsgalactic.axiom.http.ByteRanges
-
Validates the bound and takes an immutable copy.
- bytes() - Method in class com.jsgalactic.axiom.http.Body
-
Returns a copy of the content.
- bytes() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Part
-
Returns the value of the
bytesrecord component. - bytes() - Method in class com.jsgalactic.axiom.websocket.WebSocketMessage
-
Returns a copy of the binary payload.
- bytesRead() - Method in interface com.jsgalactic.axiom.http.BodyReader
-
Returns the number of bytes this reader has handed to the handler.
- bytesWritten() - Method in interface com.jsgalactic.axiom.http.BodyWriter
-
Returns the number of body bytes accepted so far, counted against the stream's byte cap.
- bytesWritten() - Method in interface com.jsgalactic.axiom.http.EventSink
-
Returns the number of bytes sent so far, counted against the stream's byte cap.
- bytesWritten() - Method in record class com.jsgalactic.axiom.http.StreamOutcome
-
Returns the value of the
bytesWrittenrecord component.
C
- cacheControl(String) - Method in class com.jsgalactic.axiom.http.StaticFiles.Builder
-
Sets the
Cache-Controlfield sent with every file. - cacheFor(Duration) - Method in class com.jsgalactic.axiom.observability.Health.Builder
-
Keeps the result of each check for a while, so that a check polled by several probers, or often, runs at most once per interval.
- cancelled() - Method in class com.jsgalactic.axiom.grpc.GrpcCall
-
Reports whether the client cancelled the call or its deadline elapsed.
- CANCELLED - Enum constant in enum class com.jsgalactic.axiom.http.BodyReadException.Reason
-
The request or the reader was cancelled; its bytes were released.
- capacity() - Method in class com.jsgalactic.axiom.http.Body.Builder
-
Returns the number of bytes that can be written before the capacity must grow.
- capacity(int) - Method in class com.jsgalactic.axiom.http.Body.Builder
-
Grows the capacity to exactly
capacitybytes, keeping the content. - capture(String) - Method in class com.jsgalactic.axiom.http.StaticFiles.Builder
-
Sets the wildcard capture that holds the file path,
pathby default. - certificateChain() - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions
- certificateChain(Path) - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions.Builder
-
Sets the PEM file holding the server certificate followed by its intermediate issuers.
- challenge() - Method in interface com.jsgalactic.axiom.security.Authenticator
-
Returns the
WWW-Authenticatechallenge sent when a policy requires an identity and the request carries no credentials, for exampleBearer realm="api". - challenge() - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator
- challenge() - Method in class com.jsgalactic.axiom.security.SessionAuthenticator
- charset() - Method in class com.jsgalactic.axiom.http.Body
-
Returns the lowercase value of the content type's
charsetparameter, unquoted. - check(String, Predicate<? super T>, String) - Method in class com.jsgalactic.axiom.validation.Rules
-
Adds a check of the whole value, such as a cross-field rule, reported at
field. - check(Predicate<? super T>, String) - Static method in class com.jsgalactic.axiom.validation.Rule
-
Creates a custom rule;
nullvalues pass without calling the predicate. - check(Predicate<? super T>, String) - Method in class com.jsgalactic.axiom.validation.Rules
-
Adds a check of the whole value, reported at the whole value (
FieldPath.ROOT). - checkNullable(Predicate<? super T>, String) - Static method in class com.jsgalactic.axiom.validation.Rule
-
Creates a custom rule whose predicate also decides whether
nullis valid. - checks() - Method in record class com.jsgalactic.axiom.observability.Health.Report
-
Returns the value of the
checksrecord component. - child() - Method in record class com.jsgalactic.axiom.observability.TraceContext
-
Continues the trace for a downstream call: the same trace id, flags and trace state with a new random parent id standing for this service's span.
- cipherSuites() - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions
- cipherSuites(List<String>) - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions.Builder
-
Replaces the enabled cipher suites, in preference order.
- classpath(String) - Static method in class com.jsgalactic.axiom.http.StaticFiles
-
Configures serving from a classpath location, using the class loader of this class.
- classpath(String, ClassLoader) - Static method in class com.jsgalactic.axiom.http.StaticFiles
-
Configures serving from a classpath location.
- CLIENT_DISCONNECTED - Enum constant in enum class com.jsgalactic.axiom.http.StreamAbortedException.Reason
-
The client closed the connection or stopped reading for too long.
- CLIENT_DISCONNECTED - Enum constant in enum class com.jsgalactic.axiom.http.StreamOutcome.Kind
-
The client left or stopped reading.
- clientAddress(TrustedProxies) - Static method in interface com.jsgalactic.axiom.security.RateLimitKey
-
Keys by the client address resolved through trusted proxies: forwarding headers are believed only from configured proxies, as in
TrustedProxies.resolve(com.jsgalactic.axiom.http.Request). - clientAuth() - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions
- ClientOrigin - Record Class in com.jsgalactic.axiom.security
-
Where a request came from, as decided by
TrustedProxies: the client's IP address, the scheme it used and, when a trusted proxy reported them, the host and port it addressed. - ClientOrigin(InetAddress, String, boolean) - Constructor for record class com.jsgalactic.axiom.security.ClientOrigin
-
Creates an origin without a reported host or port.
- ClientOrigin(InetAddress, String, boolean, Optional<String>, OptionalInt) - Constructor for record class com.jsgalactic.axiom.security.ClientOrigin
-
Validates the origin.
- clientTrust() - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions
- clock() - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions
- clock(Clock) - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions.Builder
-
Sets the clock that decides whether certificates are expired or not yet valid.
- clock(Clock) - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Sets the time source of double-submit tokens, for deterministic tests.
- clock(Clock) - Method in class com.jsgalactic.axiom.security.InMemorySessionStore.Builder
-
Sets the time source, for deterministic tests.
- clock(Clock) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Sets the clock for time-based claims, for tests; the system UTC clock by default.
- clock(Clock) - Method in class com.jsgalactic.axiom.security.RateLimit.Builder
-
Sets the time source, for deterministic tests.
- clockSkew(Duration) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Sets the tolerated clock difference for
exp,nbfandiat. - close() - Method in interface com.jsgalactic.axiom.application.Application
-
Permanently rejects new requests.
- close() - Method in class com.jsgalactic.axiom.grpc.Grpc
-
Begins a graceful drain without waiting;
Grpc.stop()is the waiting variant. - close() - Method in interface com.jsgalactic.axiom.http.BodyReader
-
Cancels the reader: any buffered bytes are dropped, reads blocked on it fail, and any temporary storage it owns is released.
- close() - Method in class com.jsgalactic.axiom.http.MultipartParser
-
Deletes all temporary part files.
- close() - Method in class com.jsgalactic.axiom.jdbc.Jdbc
-
Stops new permits and closes the connections this gate tracks, if the application opted into owning them.
- close() - Method in class com.jsgalactic.axiom.jdbc.JdbcDataSource
-
Closes the wrapped connections this wrapper still tracks, if
JdbcOptions.closeConnectionsOnShutdown()is true. - close() - Method in interface com.jsgalactic.axiom.lifecycle.Server
-
Starts a graceful drain and returns without waiting; idempotent and nonblocking, including from a handler.
- close() - Method in class com.jsgalactic.axiom.test.StreamedResponse
-
Disconnects: the handler can no longer write, and is interrupted if it is not writing.
- close() - Method in class com.jsgalactic.axiom.test.TestClient
-
Cancels this client's requests, closes its WebSocket sessions and closes the application.
- close() - Method in class com.jsgalactic.axiom.validation.jakarta.JakartaValidation
-
Releases the provider's resources; later calls to
JakartaValidation.validate(Object)fail. - close() - Method in interface com.jsgalactic.axiom.websocket.WebSocketSession
-
Closes the session normally, with code 1000 and an empty reason.
- close(int, String) - Method in interface com.jsgalactic.axiom.websocket.WebSocketSession
-
Closes the session with a protocol status code and a reason.
- closeConnectionsOnShutdown() - Method in class com.jsgalactic.axiom.jdbc.Jdbc.Builder
-
Opts the application into owning the wrapped connections it leaves open: closing the gate or the application then closes those connections.
- closeConnectionsOnShutdown() - Method in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Returns the value of the
closeConnectionsOnShutdownrecord component. - CLOSED - Enum constant in enum class com.jsgalactic.axiom.application.Application.State
-
New requests and configuration changes are rejected.
- closeOnJvmShutdown() - Method in interface com.jsgalactic.axiom.application.Application
-
Opts in to closing this application when the JVM begins to shut down, for example on
SIGTERMfrom a container runtime orSIGINT, or when the last non-daemon thread ends orSystem.exitis called. - closeOnJvmShutdown(Duration) - Method in interface com.jsgalactic.axiom.application.Application
-
Like
Application.closeOnJvmShutdown(), but the hook first runs the actions registered withApplication.onDrain(java.lang.Runnable), which tell the outside world that this instance is going away (aHealthreadiness probe turns DOWN), then waitsdrainDelayso that a load balancer can notice and stop sending traffic, and only then closes the application and its listeners as described above. - code() - Method in exception class com.jsgalactic.axiom.error.AxiomException
-
Returns the safe machine-readable code sent to clients.
- code() - Method in record class com.jsgalactic.axiom.error.Violation
-
Returns the value of the
coderecord component. - code() - Method in class com.jsgalactic.axiom.validation.Rule
-
Returns the code reported when the check fails.
- com.jsgalactic.axiom - package com.jsgalactic.axiom
- com.jsgalactic.axiom.application - package com.jsgalactic.axiom.application
- com.jsgalactic.axiom.application.spi - package com.jsgalactic.axiom.application.spi
- com.jsgalactic.axiom.codec.spi - package com.jsgalactic.axiom.codec.spi
- com.jsgalactic.axiom.context - package com.jsgalactic.axiom.context
- com.jsgalactic.axiom.error - package com.jsgalactic.axiom.error
- com.jsgalactic.axiom.execution - package com.jsgalactic.axiom.execution
- com.jsgalactic.axiom.graphql - package com.jsgalactic.axiom.graphql
- com.jsgalactic.axiom.grpc - package com.jsgalactic.axiom.grpc
- com.jsgalactic.axiom.http - package com.jsgalactic.axiom.http
- com.jsgalactic.axiom.http.spi - package com.jsgalactic.axiom.http.spi
- com.jsgalactic.axiom.jdbc - package com.jsgalactic.axiom.jdbc
- com.jsgalactic.axiom.jpa - package com.jsgalactic.axiom.jpa
- com.jsgalactic.axiom.jta - package com.jsgalactic.axiom.jta
- com.jsgalactic.axiom.jta.spi - package com.jsgalactic.axiom.jta.spi
- com.jsgalactic.axiom.lifecycle - package com.jsgalactic.axiom.lifecycle
- com.jsgalactic.axiom.metrics - package com.jsgalactic.axiom.metrics
- com.jsgalactic.axiom.micrometer - package com.jsgalactic.axiom.micrometer
- com.jsgalactic.axiom.observability - package com.jsgalactic.axiom.observability
- com.jsgalactic.axiom.openapi - package com.jsgalactic.axiom.openapi
- com.jsgalactic.axiom.openapi.ui - package com.jsgalactic.axiom.openapi.ui
- com.jsgalactic.axiom.otel - package com.jsgalactic.axiom.otel
- com.jsgalactic.axiom.routing - package com.jsgalactic.axiom.routing
- com.jsgalactic.axiom.security - package com.jsgalactic.axiom.security
- com.jsgalactic.axiom.security.jwt - package com.jsgalactic.axiom.security.jwt
- com.jsgalactic.axiom.test - package com.jsgalactic.axiom.test
- com.jsgalactic.axiom.validation - package com.jsgalactic.axiom.validation
- com.jsgalactic.axiom.validation.jakarta - package com.jsgalactic.axiom.validation.jakarta
- com.jsgalactic.axiom.websocket - package com.jsgalactic.axiom.websocket
- comment(String) - Method in interface com.jsgalactic.axiom.http.EventSink
-
Sends a comment, which clients ignore.
- COMMIT - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionFailure
-
Committing the transaction failed.
- commitOn(Class<? extends Throwable>...) - Method in class com.jsgalactic.axiom.jpa.Jpa.Builder
-
Adds exception types that must commit.
- COMMITTED - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionOutcome
-
The scope's transaction was committed.
- COMMITTED - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionStatus
-
The associated transaction completed with a commit.
- commitWhen(Predicate<Throwable>) - Method in class com.jsgalactic.axiom.jta.Jta.Builder
-
Adds a predicate-based commit rule; a later matching rule wins, as with
Jta.Builder.noRollbackOn(Class). - complete() - Method in interface com.jsgalactic.axiom.http.MultipartParser.Listener
-
Called once after the closing boundary, before any temporary file is deleted.
- completed() - Method in record class com.jsgalactic.axiom.http.StreamOutcome
-
Reports whether the body ended normally and the client received a final chunk.
- COMPLETED - Enum constant in enum class com.jsgalactic.axiom.http.StreamOutcome.Kind
-
The body returned and the stream was not aborted; the client receives a final chunk.
- completion() - Method in class com.jsgalactic.axiom.test.StreamedResponse
-
Returns the outcome of the request.
- compression(boolean) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Decodes gzip and deflate request bodies and compresses eligible response bodies on this listener.
- compressionEnabled() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- compressionLevel() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
-
Returns the deflater level used for compressed responses.
- compressionLevel(int) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets the deflater level for compressed responses.
- conditional() - Static method in class com.jsgalactic.axiom.http.HttpPreconditions
-
Returns the opt-in middleware that evaluates preconditions and ranges.
- CONFIGURING - Enum constant in enum class com.jsgalactic.axiom.application.Application.State
-
Routes may be registered.
- CONFLICT - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
409 Conflict.
- ConflictException - Exception Class in com.jsgalactic.axiom.error
-
A request that conflicts with the current resource state (409).
- ConflictException() - Constructor for exception class com.jsgalactic.axiom.error.ConflictException
-
Creates the exception with code
conflict. - ConflictException(String) - Constructor for exception class com.jsgalactic.axiom.error.ConflictException
-
Creates the exception with a specific safe code.
- constraint() - Method in class com.jsgalactic.axiom.validation.Rule
-
Describes what this rule checks, for tools such as documentation generators.
- Constraint - Record Class in com.jsgalactic.axiom.validation
-
What a built-in
Rulechecks, as plain data for tools that document or mirror a rule set, such as an OpenAPI generator. - Constraint(Constraint.Kind, long, long, String, List<String>) - Constructor for record class com.jsgalactic.axiom.validation.Constraint
-
Creates a constraint.
- Constraint.Kind - Enum Class in com.jsgalactic.axiom.validation
-
Kinds of built-in checks.
- constraints() - Method in class com.jsgalactic.axiom.validation.Rules
-
Describes the built-in rules declared with
Rules.field(java.lang.String, java.util.function.Function<? super T, ? extends V>, com.jsgalactic.axiom.validation.Rule<? super V>...)andRules.each(java.lang.String, java.util.function.Function<? super T, ? extends java.util.List<? extends E>>, com.jsgalactic.axiom.validation.Rule<? super E>...), for tools that document the rule set, such as an OpenAPI generator. - CONTENT_TOO_LARGE - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
413 Content Too Large.
- CONTENT_TYPE - Static variable in class com.jsgalactic.axiom.metrics.PrometheusText
-
The media type of the exposition format.
- contentRange(long) - Method in record class com.jsgalactic.axiom.http.ByteRange
-
Formats the range as the value of a
Content-Rangefield for a representation of the given length. - contentType() - Method in class com.jsgalactic.axiom.http.Body
-
Returns the Content-Type header value as received.
- contentType() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Part
-
Returns the value of the
contentTyperecord component. - contentType(String, String) - Method in class com.jsgalactic.axiom.http.StaticFiles.Builder
-
Adds or replaces the content type of one lowercase extension.
- context(Context) - Static method in class com.jsgalactic.axiom.jta.Jta
-
Finds the request's transaction context, available to a handler while a boundary runs and to an error handler just after it ends.
- Context - Interface in com.jsgalactic.axiom.context
-
Request-scoped view and response settings for one handler invocation.
- cookieName(String) - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Sets the double-submit cookie name (default
__Host-csrf, orcsrfwithoutSecure). - cookieName(String) - Method in class com.jsgalactic.axiom.security.Sessions.Builder
-
Sets the cookie name.
- Cookies - Class in com.jsgalactic.axiom.security
-
The cookies of a request, parsed strictly from the
Cookieheader (RFC 6265bis section 4.2). - correlation() - Method in interface com.jsgalactic.axiom.context.Context
-
Describes this request for a log message without a thread-local map: the framework's request ID, followed by
trace=<trace id>when the caller sent a validtraceparent. - correlation(String, Request) - Static method in record class com.jsgalactic.axiom.observability.TraceContext
-
Like
TraceContext.correlation(String, Optional), reading the trace headers of a request. - correlation(String, Optional<TraceContext>) - Static method in record class com.jsgalactic.axiom.observability.TraceContext
-
Describes a request for a log line: its framework ID, followed by
trace=<id>when the caller sent a validtraceparent. - Cors - Class in com.jsgalactic.axiom.security
-
Cross-origin resource sharing (the Fetch standard's CORS protocol) as global middleware, with a strict allow-list of origins.
- Cors.Builder - Class in com.jsgalactic.axiom.security
-
Configures
Cors. - count() - Method in record class com.jsgalactic.axiom.metrics.MetricsRegistry.TimerSnapshot
-
Returns the value of the
countrecord component. - counter(String, String...) - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry
- counter(String, String...) - Method in class com.jsgalactic.axiom.micrometer.MicrometerMetrics
- counter(String, String...) - Method in interface com.jsgalactic.axiom.observability.Metrics
-
Returns the monotonically increasing counter for a series, creating it if needed.
- counter(String, String...) - Method in class com.jsgalactic.axiom.otel.OtelMetrics
- counterValue(String, String...) - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Reads a counter.
- create() - Method in interface com.jsgalactic.axiom.application.spi.ApplicationProvider
-
Returns a new, independent application.
- create() - Static method in class com.jsgalactic.axiom.Axiom
-
Creates an independent application in the configuring state.
- create() - Static method in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Creates a registry that keeps up to
MetricsRegistry.DEFAULT_MAX_SERIESseries. - create(int) - Static method in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Creates a registry with an explicit series limit.
- create(MeterRegistry) - Static method in class com.jsgalactic.axiom.micrometer.MicrometerMetrics
-
Creates an adapter that registers instruments in the supplied registry.
- create(MeterProvider) - Static method in class com.jsgalactic.axiom.otel.OtelMetrics
-
Creates an adapter using the meter of
Tracing.SCOPE_NAMEfrom the supplied provider. - create(OpenTelemetry) - Static method in class com.jsgalactic.axiom.otel.OtelMetrics
-
Creates an adapter using the meter of
Tracing.SCOPE_NAMEfrom the supplied instance. - create(OpenTelemetry) - Static method in class com.jsgalactic.axiom.otel.Tracing
-
Creates middleware using the tracer of
Tracing.SCOPE_NAMEfrom the supplied instance. - create(Tracer) - Static method in class com.jsgalactic.axiom.otel.Tracing
-
Creates middleware around a caller-supplied tracer.
- create(Class<?>...) - Static method in class com.jsgalactic.axiom.validation.jakarta.JakartaValidation
-
Bootstraps a validator for the given groups.
- create(String, SessionState) - Method in class com.jsgalactic.axiom.security.InMemorySessionStore
- create(String, SessionState) - Method in interface com.jsgalactic.axiom.security.SessionStore
-
Stores a new session.
- create(Duration) - Static method in class com.jsgalactic.axiom.execution.ExecutionContext
-
Creates a fresh identity and starts a deadline using the monotonic system clock.
- CREATED - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
201 Created; pair with a Location header.
- createdAt() - Method in class com.jsgalactic.axiom.security.Session
-
Returns when the stored session was created.
- createdAt() - Method in record class com.jsgalactic.axiom.security.SessionState
-
Returns the value of the
createdAtrecord component. - Csrf - Class in com.jsgalactic.axiom.security
-
Cross-site request forgery protection for browser clients that authenticate with cookies.
- Csrf.Builder - Class in com.jsgalactic.axiom.security
-
Builds
Csrf; used during configuration, not thread-safe. - current() - Static method in class com.jsgalactic.axiom.grpc.GrpcCall
-
Returns the call bound to the current thread.
D
- data() - Method in class com.jsgalactic.axiom.http.ServerSentEvent
-
Returns the data as given.
- data(String) - Static method in class com.jsgalactic.axiom.http.ServerSentEvent
-
Creates an event with data and the default event name
message. - dataLoaders(Supplier<Object>) - Method in class com.jsgalactic.axiom.graphql.GraphQl.Builder
-
Sets a factory for the per-request DataLoader registry.
- dataSource() - Method in class com.jsgalactic.axiom.jdbc.Jdbc
-
Returns the counted wrapper applications use for ordinary JDBC work.
- Decision(boolean, long, long, Duration, Duration) - Constructor for record class com.jsgalactic.axiom.security.RateLimit.Decision
-
Creates an instance of a
Decisionrecord class. - decode(byte[], Class<T>) - Method in interface com.jsgalactic.axiom.codec.spi.BodyCodec
-
Decodes a complete request body.
- decode(ByteBuffer, Class<T>) - Method in interface com.jsgalactic.axiom.codec.spi.BodyCodec
-
Decodes a complete request body from a read-only view of its content.
- DecodeException - Exception Class in com.jsgalactic.axiom.error
-
A request body that is missing, malformed or does not match the requested type (400).
- DecodeException(String) - Constructor for exception class com.jsgalactic.axiom.error.DecodeException
-
Creates the exception without a field.
- DecodeException(String, String) - Constructor for exception class com.jsgalactic.axiom.error.DecodeException
-
Creates the exception for a property path.
- DEFAULT - Static variable in record class com.jsgalactic.axiom.graphql.GraphQlOptions
-
Bounded defaults: 64 KiB body, depth 10, complexity 100, no introspection, POST only.
- DEFAULT - Static variable in record class com.jsgalactic.axiom.http.MultipartParser.Limits
-
Sixteen parts of at most 1 MiB, 8 KiB of headers per part and 16 MiB in total.
- DEFAULT - Static variable in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Bounds used when none are supplied.
- DEFAULT_BUCKETS - Static variable in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Timer bucket upper bounds used unless a timer is configured otherwise: 1 ms, 5 ms, 10 ms, 25 ms, 50 ms, 100 ms, 250 ms, 500 ms, 1 s, 2.5 s, 5 s and 10 s.
- DEFAULT_BUCKETS - Static variable in class com.jsgalactic.axiom.micrometer.MicrometerMetrics
-
Timer service-level objectives: 1 ms, 5 ms, 10 ms, 25 ms, 50 ms, 100 ms, 250 ms, 500 ms, 1 s, 2.5 s, 5 s and 10 s.
- DEFAULT_BUCKETS - Static variable in class com.jsgalactic.axiom.otel.OtelMetrics
-
Histogram bounds in seconds: 1 ms, 5 ms, 10 ms, 25 ms, 50 ms, 100 ms, 250 ms, 500 ms, 1 s, 2.5 s, 5 s and 10 s.
- DEFAULT_CACHE_CONTROL - Static variable in class com.jsgalactic.axiom.http.StaticFiles
-
Default cache policy for served files: publicly cacheable for one hour.
- DEFAULT_CIPHER_SUITES - Static variable in class com.jsgalactic.axiom.lifecycle.TlsOptions
-
The cipher suites enabled by default: TLS 1.3 suites and, for TLS 1.2, ECDHE key exchange with AES-GCM or ChaCha20-Poly1305.
- DEFAULT_CONTENT_TYPE - Static variable in class com.jsgalactic.axiom.http.StaticFiles
-
Header used when an extension is not in the built-in table.
- DEFAULT_HOST - Static variable in class com.jsgalactic.axiom.application.ManagementOptions
-
Loopback host used when none is set.
- DEFAULT_MAX_FILE_SIZE - Static variable in class com.jsgalactic.axiom.http.StaticFiles
-
Default largest served file: 64 MiB, the same bound as a default response stream.
- DEFAULT_MAX_LENGTH - Static variable in class com.jsgalactic.axiom.security.Cookies
-
Default longest
Cookieheader accepted, in characters. - DEFAULT_MAX_SERIES - Static variable in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Series limit of
MetricsRegistry.create(). - DEFAULT_PATTERN_INPUT_LIMIT - Static variable in class com.jsgalactic.axiom.validation.Rule
-
Longest input
Rule.pattern(String)hands to the regular expression engine. - DEFAULT_STREAM_LIMIT - Static variable in class com.jsgalactic.axiom.http.Response
-
Default cap on the bytes of a streamed response body: 64 MiB.
- DEFAULT_TIMEOUT - Static variable in class com.jsgalactic.axiom.observability.Health
-
Probe timeout when none is configured.
- defaultAlgorithm(JwsAlgorithm) - Method in class com.jsgalactic.axiom.security.jwt.JwksOptions
-
Sets the algorithm for keys of the set that declare no
alg(some issuers omit it). - defaultCode(int) - Static method in class com.jsgalactic.axiom.http.HttpStatus
-
Returns the default machine-readable error code for a status: its reason phrase in lowercase with spaces replaced by underscores, for example
not_found. - defaults() - Static method in record class com.jsgalactic.axiom.execution.ExecutionBudget
-
Creates the default budget: no queue, 36 active executions and no route overrides.
- defaults() - Static method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
-
Returns the default options.
- defaults() - Static method in class com.jsgalactic.axiom.security.HeaderRedaction
-
Returns the default set of sensitive header names described above.
- defaults() - Static method in class com.jsgalactic.axiom.security.jwt.JwksOptions
-
Returns the default settings.
- defaults() - Static method in class com.jsgalactic.axiom.security.SecurityHeaders
-
Returns the default header set described above.
- defaults(String, RouteDoc) - Method in class com.jsgalactic.axiom.openapi.OpenApi.Builder
-
Adds defaults for every route whose path equals
pathPrefixor lies below it, for example the tags, the security requirement or a 401 response of a whole group. - delete(String, Handler, Middleware...) - Method in interface com.jsgalactic.axiom.routing.RouteGroup
- deprecated() - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy marked deprecated.
- describe(Route, RouteDoc) - Method in interface com.jsgalactic.axiom.application.Application
-
Attaches documentation to a registered route before startup, replacing an earlier one.
- description() - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns the description.
- description() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Param
-
Returns the value of the
descriptionrecord component. - description() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Reply
-
Returns the value of the
descriptionrecord component. - description(String) - Method in class com.jsgalactic.axiom.openapi.OpenApi.Builder
-
Sets the API description.
- description(String) - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy with a longer description.
- developmentErrors() - Method in interface com.jsgalactic.axiom.application.Application
-
Turns on development errors, before startup.
- directory(Path) - Static method in class com.jsgalactic.axiom.http.StaticFiles
-
Configures serving from a directory.
- doc(Route) - Method in interface com.jsgalactic.axiom.application.Application
-
Returns the documentation attached to a route with
Application.describe(com.jsgalactic.axiom.routing.Route, com.jsgalactic.axiom.routing.RouteDoc). - domain(String) - Method in class com.jsgalactic.axiom.security.Sessions.Builder
-
Sets a cookie domain, which sends the cookie to every sub-domain; the default is host-only.
- domain(String) - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns a copy with a
Domain, which also sends the cookie to every sub-domain. - doubleSubmit(byte[]) - Static method in class com.jsgalactic.axiom.security.Csrf
-
Starts a configuration with HMAC-signed double-submit cookies.
- DOWN - Enum constant in enum class com.jsgalactic.axiom.observability.Health.Status
- drainGrace(Duration) - Method in class com.jsgalactic.axiom.grpc.Grpc.Builder
-
Sets how long a graceful drain waits for running calls before cancelling them.
- droppedSeries() - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Returns how many lookups asked for a new series after the limit was reached.
E
- each(String, Function<? super T, ? extends List<? extends E>>, Rule<? super E>...) - Method in class com.jsgalactic.axiom.validation.Rules
-
Applies rules to every element of a list, reporting at
name[index]; skips anulllist but checksnullelements. - eachNested(String, Function<? super T, ? extends List<? extends E>>, Validator<? super E>) - Method in class com.jsgalactic.axiom.validation.Rules
-
Validates every non-null element of a list, prefixing violations with
name[index]; skips anulllist andnullelements. - EdDSA - Enum constant in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
EdDSA (RFC 8037) on Ed25519 only; Ed448 keys and signatures are refused.
- elapsed() - Method in record class com.jsgalactic.axiom.http.StreamOutcome
-
Returns the value of the
elapsedrecord component. - email() - Static method in class com.jsgalactic.axiom.validation.Rule
-
Checks e-mail address syntax only, without a regular expression: one
@, a local part of 1 to 64 printable ASCII characters other than spaces and"(),:;<>@[\], and a domain of at least two dot-separated labels of ASCII letters, digits and inner hyphens; at most 254 characters. - EMAIL - Enum constant in enum class com.jsgalactic.axiom.validation.Constraint.Kind
-
The text is an e-mail address.
- empty() - Static method in class com.jsgalactic.axiom.http.Body
-
Returns the shared empty body without a content type.
- empty() - Static method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns the empty description: no metadata at all.
- empty() - Static method in record class com.jsgalactic.axiom.security.SessionState
-
Returns an anonymous state without attributes; the store stamps the times.
- EMPTY - Static variable in record class com.jsgalactic.axiom.observability.TraceState
-
A trace state without members.
- encode(Object) - Method in interface com.jsgalactic.axiom.codec.spi.BodyCodec
-
Encodes a response value synchronously during Context.json or Context.encode.
- encode(String, Object) - Method in interface com.jsgalactic.axiom.context.Context
-
Encodes an object with the installed codec for the supplied Content-Type during this call.
- entityManager(Context) - Method in class com.jsgalactic.axiom.jpa.Jpa
-
Returns the EntityManager bound to this request by this instance's middleware.
- entityManagerFactory(Object) - Method in class com.jsgalactic.axiom.jpa.Jpa.Builder
-
Sets the application-owned factory.
- entityManagers() - Method in class com.jsgalactic.axiom.jpa.Jpa
-
Returns this instance's request-scoped EntityManager accessor.
- EntityManagers - Class in com.jsgalactic.axiom.jpa
-
Request-scoped accessor for the EntityManager bound by
Jpa.transaction(). - EntityTag - Record Class in com.jsgalactic.axiom.http
-
An HTTP entity tag, the validator carried by
ETag,If-Match,If-None-MatchandIf-Range(RFC 9110 section 8.8.3). - EntityTag(boolean, String) - Constructor for record class com.jsgalactic.axiom.http.EntityTag
-
Validates the opaque value.
- EPOLL - Enum constant in enum class com.jsgalactic.axiom.lifecycle.TransportKind
-
Linux epoll through the transport's native library; requires Linux and that library.
- equals(Object) - Method in record class com.jsgalactic.axiom.context.SecurityIdentity
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.error.Violation
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.execution.AdmissionPolicy
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.execution.AdmissionSnapshot
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.execution.ExecutionBudget
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.execution.StreamPolicy
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.graphql.GraphQlOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class com.jsgalactic.axiom.http.Body
- equals(Object) - Method in record class com.jsgalactic.axiom.http.ByteRange
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.http.ByteRanges
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.http.EntityTag
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.http.MultipartParser.Limits
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.http.MultipartParser.Part
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class com.jsgalactic.axiom.http.Request
- equals(Object) - Method in class com.jsgalactic.axiom.http.Response
- equals(Object) - Method in class com.jsgalactic.axiom.http.ServerSentEvent
- equals(Object) - Method in record class com.jsgalactic.axiom.http.StreamOutcome
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.metrics.MetricsRegistry.TimerSnapshot
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.observability.Health.Report
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.observability.TraceContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.observability.TraceState
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.observability.TraceState.Member
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.routing.Route
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Body
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Param
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Reply
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.security.ClientOrigin
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.security.RateLimit.Decision
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.security.SessionState
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.test.StreamBuffering
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jsgalactic.axiom.validation.Constraint
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class com.jsgalactic.axiom.validation.FieldPath
- equals(Object) - Method in class com.jsgalactic.axiom.websocket.WebSocketMessage
-
Compares payloads by kind and content; copies are equal to their originals.
- error(Class<E>, ErrorHandler<? super E>) - Method in interface com.jsgalactic.axiom.application.Application
-
Maps exceptions of a class and its subclasses to responses before startup.
- error(Class<E>, ErrorHandler<? super E>) - Method in interface com.jsgalactic.axiom.routing.RouteGroup
-
Maps exceptions of a class and its subclasses to responses for the routes of this scope and its nested groups, with the same rules as
Application.error(java.lang.Class<E>, com.jsgalactic.axiom.context.ErrorHandler<? super E>). - ErrorHandler<E> - Interface in com.jsgalactic.axiom.context
-
Maps an exception thrown by a handler or middleware to a response.
- ES256 - Enum constant in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
ECDSA on P-256 with SHA-256.
- ES384 - Enum constant in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
ECDSA on P-384 with SHA-384.
- ES512 - Enum constant in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
ECDSA on P-521 with SHA-512.
- evaluate(Request, Response) - Static method in class com.jsgalactic.axiom.http.HttpPreconditions
-
Evaluates the request's preconditions and ranges against a response.
- EventSink - Interface in com.jsgalactic.axiom.http
-
The destination of a server-sent event stream (see
Response.sse(com.jsgalactic.axiom.http.EventStreamBody)). - EventStreamBody - Interface in com.jsgalactic.axiom.http
-
Produces a server-sent event stream (see
Response.sse(com.jsgalactic.axiom.http.EventStreamBody)). - execute(Request) - Method in class com.jsgalactic.axiom.test.TestClient
-
Executes a request through admission and waits for its outcome.
- execute(Request, BodyReader) - Method in class com.jsgalactic.axiom.test.TestClient
-
Executes a request whose body is handed to the handler incrementally through the supplied reader, with the same aggregate cap as a listener: a read past
maxRequestBodyfails the request with 413. - execution() - Method in interface com.jsgalactic.axiom.context.Context
-
Returns immutable identity and deadline metadata for this invocation.
- execution() - Method in class com.jsgalactic.axiom.grpc.GrpcCall
-
Returns the call's identity and original deadline budget as an Axiom execution context.
- execution() - Method in interface com.jsgalactic.axiom.websocket.WebSocketSession
-
Returns the immutable identity metadata of the handshake execution.
- executionBudget() - Method in interface com.jsgalactic.axiom.application.Application
-
Returns the application-wide execution budget, including its route overrides.
- executionBudget(ExecutionBudget) - Method in interface com.jsgalactic.axiom.application.Application
-
Installs the application-wide execution budget before startup.
- executionBudget(Route) - Method in interface com.jsgalactic.axiom.application.Application
-
Returns a registered route's bound in the application-wide budget, or the aggregate policy.
- executionBudget(Route, AdmissionPolicy) - Method in interface com.jsgalactic.axiom.application.Application
-
Sets the bound of one registered route in the application-wide budget before startup.
- ExecutionBudget - Record Class in com.jsgalactic.axiom.execution
-
Immutable application-wide execution budget.
- ExecutionBudget(AdmissionPolicy, Map<Route, AdmissionPolicy>) - Constructor for record class com.jsgalactic.axiom.execution.ExecutionBudget
-
Validates the aggregate and copies the overrides into an immutable map, so later changes to a caller's map cannot change this budget.
- ExecutionContext - Class in com.jsgalactic.axiom.execution
-
Immutable request identity and monotonic deadline; safe to share with application tasks.
- exemptWhen(Predicate<Request>) - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Skips all checks for requests the predicate accepts, for example those with an
Authorizationheader, which a browser never adds by itself. - EXPECTATION_FAILED - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
417 Expectation Failed.
- expire() - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns a copy that tells the browser to delete the cookie (empty value,
Max-Age=0); name, path and domain must match the cookie being deleted. - expiresAt() - Method in class com.jsgalactic.axiom.security.jwt.JwtClaims
-
Returns the
expclaim, which is always present in a verified token. - exposeClaims(String...) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Exposes verified claims as identity attributes under the same names.
- exposeHeaders(String...) - Method in class com.jsgalactic.axiom.security.Cors.Builder
-
Makes response headers readable by the page's script.
- extendDeadline(Duration) - Method in class com.jsgalactic.axiom.execution.ExecutionContext
-
Gives the request more time: the deadline becomes
remainingfrom now if that is later than the current one, and is left alone otherwise, so it can never shorten a deadline.
F
- FAILED - Enum constant in enum class com.jsgalactic.axiom.http.StreamOutcome.Kind
-
The body threw an exception that was not an abort.
- FAILED - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionOutcome
-
Completion failed; the underlying failure is attached to the request's exception for logs.
- failure() - Method in record class com.jsgalactic.axiom.http.StreamOutcome
-
Returns the value of the
failurerecord component. - failureLog(System.Logger, System.Logger.Level) - Method in interface com.jsgalactic.axiom.application.Application
-
Chooses where and at which level the runtime logs failures it answered, before startup.
- fetch(int) - Method in interface com.jsgalactic.axiom.security.jwt.JwksSource
-
Reads the key set document.
- fetchMetadata(boolean) - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Turns the
Sec-Fetch-Sitecheck on (default) or off. - field() - Method in exception class com.jsgalactic.axiom.error.DecodeException
-
Returns the property path that failed, when known.
- field() - Method in record class com.jsgalactic.axiom.error.Violation
-
Returns the value of the
fieldrecord component. - field(String, Function<? super T, ? extends V>, Rule<? super V>...) - Method in class com.jsgalactic.axiom.validation.Rules
-
Adds rules for one field, reporting the first rule it fails at
name. - FieldPath - Class in com.jsgalactic.axiom.validation
-
Immutable builder for violation field paths such as
items[2].name. - file(Path) - Static method in interface com.jsgalactic.axiom.security.jwt.JwksSource
-
Reads the key set from a file, for example one a deployment tool refreshes.
- filename() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Part
-
Returns the value of the
filenamerecord component. - find(String) - Method in class com.jsgalactic.axiom.security.InMemorySessionStore
- find(String) - Method in interface com.jsgalactic.axiom.security.SessionStore
-
Returns a live session and counts the call as an access (the idle timeout restarts).
- first() - Method in record class com.jsgalactic.axiom.http.ByteRange
-
Returns the value of the
firstrecord component. - flags() - Method in record class com.jsgalactic.axiom.observability.TraceContext
-
Returns the value of the
flagsrecord component. - FORBIDDEN - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
403 Forbidden.
- ForbiddenException - Exception Class in com.jsgalactic.axiom.error
-
An authenticated caller lacks permission (403).
- ForbiddenException() - Constructor for exception class com.jsgalactic.axiom.error.ForbiddenException
-
Creates the exception with code
forbidden. - ForbiddenException(String) - Constructor for exception class com.jsgalactic.axiom.error.ForbiddenException
-
Creates the exception with a specific safe code.
- forwarded() - Method in record class com.jsgalactic.axiom.security.ClientOrigin
-
Returns the value of the
forwardedrecord component. - FORWARDED - Enum constant in enum class com.jsgalactic.axiom.security.ForwardedHeaders
-
The standard RFC 7239
Forwardedheader (for,proto,host). - ForwardedHeaders - Enum Class in com.jsgalactic.axiom.security
-
The family of proxy headers
TrustedProxiesbelieves. - FOUND - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
302 Found.
- from(Context) - Static method in class com.jsgalactic.axiom.jta.TransactionContext
-
Finds the transaction context attached to a request's context, if a boundary is running or has just finished for that request.
- fromTarget(String, String) - Static method in class com.jsgalactic.axiom.http.Request
-
Creates a request from an HTTP origin-form request target (
path[?query]), or from the asterisk-form*of an OPTIONS request.
G
- GATEWAY_TIMEOUT - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
504 Gateway Timeout.
- GatewayTimeoutException - Exception Class in com.jsgalactic.axiom.error
-
An upstream server that did not answer in time (504).
- GatewayTimeoutException() - Constructor for exception class com.jsgalactic.axiom.error.GatewayTimeoutException
-
Creates the exception with code
gateway_timeout. - GatewayTimeoutException(String) - Constructor for exception class com.jsgalactic.axiom.error.GatewayTimeoutException
-
Creates the exception with a specific safe code.
- gauge(String, String...) - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry
- gauge(String, String...) - Method in class com.jsgalactic.axiom.micrometer.MicrometerMetrics
- gauge(String, String...) - Method in interface com.jsgalactic.axiom.observability.Metrics
-
Returns the gauge for a series, creating it if needed.
- gauge(String, String...) - Method in class com.jsgalactic.axiom.otel.OtelMetrics
- gaugeValue(String, String...) - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Reads a gauge.
- get(Context) - Method in class com.jsgalactic.axiom.jpa.EntityManagers
-
Returns the EntityManager bound to this request.
- get(String) - Static method in class com.jsgalactic.axiom.http.Request
-
Creates a GET request for the supplied path.
- get(String) - Method in record class com.jsgalactic.axiom.observability.TraceState
-
Returns the value of a member.
- get(String) - Method in class com.jsgalactic.axiom.security.Cookies
-
Returns the value of the cookie, if it was sent exactly once.
- get(String) - Method in class com.jsgalactic.axiom.test.TestClient
-
Executes a GET request for the supplied target.
- get(String, Handler, Middleware...) - Method in interface com.jsgalactic.axiom.routing.RouteGroup
- getConnection() - Method in class com.jsgalactic.axiom.jdbc.JdbcDataSource
-
Checks out a connection from the delegate and returns a wrapper whose first
close()counts one release. - getConnection(String, String) - Method in class com.jsgalactic.axiom.jdbc.JdbcDataSource
-
Checks out a connection with the supplied credentials, recording the same series as
JdbcDataSource.getConnection(). - getLoginTimeout() - Method in class com.jsgalactic.axiom.jdbc.JdbcDataSource
-
Returns the delegate's login timeout.
- getLogWriter() - Method in class com.jsgalactic.axiom.jdbc.JdbcDataSource
-
Returns the delegate's log writer.
- getParentLogger() - Method in class com.jsgalactic.axiom.jdbc.JdbcDataSource
-
Returns the delegate's parent logger.
- getQueries() - Method in record class com.jsgalactic.axiom.graphql.GraphQlOptions
-
Returns the value of the
getQueriesrecord component. - GONE - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
410 Gone.
- GoneException - Exception Class in com.jsgalactic.axiom.error
-
A resource that existed but was permanently removed (410).
- GoneException() - Constructor for exception class com.jsgalactic.axiom.error.GoneException
-
Creates the exception with code
gone. - GoneException(String) - Constructor for exception class com.jsgalactic.axiom.error.GoneException
-
Creates the exception with a specific safe code.
- graphQL(Object) - Method in class com.jsgalactic.axiom.graphql.GraphQl.Builder
-
Supplies the application-owned runtime.
- GraphQl - Class in com.jsgalactic.axiom.graphql
-
A GraphQL HTTP adapter: an Axiom
Handleraround a graphql-java runtime. - GraphQl.Builder - Class in com.jsgalactic.axiom.graphql
-
Builds a
GraphQl; not thread-safe, build once at startup. - GraphQlOptions - Record Class in com.jsgalactic.axiom.graphql
-
Bounds and switches of a
GraphQlhandler, supplied as plain data. - GraphQlOptions(int, int, int, boolean, boolean) - Constructor for record class com.jsgalactic.axiom.graphql.GraphQlOptions
-
Validates the bounds so a handler can never be built with unbounded work.
- group(String, Consumer<RouteGroup>) - Method in interface com.jsgalactic.axiom.application.Application
-
Creates a top-level route group; see
RouteGroup.group(String, Consumer). - group(String, Consumer<RouteGroup>) - Method in interface com.jsgalactic.axiom.routing.RouteGroup
-
Creates a nested group and configures it immediately on the calling thread.
- Grpc - Class in com.jsgalactic.axiom.grpc
-
Runs generated gRPC services beside an Axiom application.
- Grpc.Builder - Class in com.jsgalactic.axiom.grpc
-
Collects services and settings before
Grpc.Builder.build(). - GrpcCall - Class in com.jsgalactic.axiom.grpc
-
The deadline and cancellation of the gRPC call on the current thread.
H
- HAND_OFF - Static variable in record class com.jsgalactic.axiom.test.StreamBuffering
-
One chunk in flight, no splitting and no stall bound.
- handle(Context) - Method in interface com.jsgalactic.axiom.context.Handler
-
Handles one matched request.
- handle(Context, Middleware.Next) - Method in interface com.jsgalactic.axiom.context.Middleware
-
Handles one request, usually by calling
next.run(). - handle(Context, Middleware.Next) - Method in class com.jsgalactic.axiom.jdbc.Jdbc
-
Acquires a permit before the rest of the chain and releases it once a response is available.
- handle(Context, Middleware.Next) - Method in class com.jsgalactic.axiom.security.Cors
- handle(Context, Middleware.Next) - Method in class com.jsgalactic.axiom.security.Csrf
- handle(Context, Middleware.Next) - Method in class com.jsgalactic.axiom.security.RateLimit
- handle(Context, Middleware.Next) - Method in class com.jsgalactic.axiom.security.SecurityHeaders
- handle(Context, Middleware.Next) - Method in class com.jsgalactic.axiom.security.Sessions
- handle(Context, E) - Method in interface com.jsgalactic.axiom.context.ErrorHandler
-
Maps one failure to a response.
- handle(Request) - Method in interface com.jsgalactic.axiom.application.Application
-
Executes a request synchronously on the calling thread with a fresh context.
- handle(Request, ExecutionContext) - Method in interface com.jsgalactic.axiom.application.Application
-
Executes on the calling thread with explicit request identity and deadline metadata.
- handle(Request, ExecutionContext, BodyReader) - Method in interface com.jsgalactic.axiom.application.Application
-
Executes with an incremental body reader supplied by the caller.
- handler() - Method in class com.jsgalactic.axiom.graphql.GraphQl
-
Returns the handler to register on an Axiom route.
- handler(MetricsRegistry) - Static method in class com.jsgalactic.axiom.metrics.PrometheusText
-
Returns a handler that answers with the registry's current exposition, for example
app.get("/metrics", PrometheusText.handler(registry), security.hasRole("ops")). - Handler - Interface in com.jsgalactic.axiom.context
-
An ordinary Java callback, invoked once per matched request.
- handshakeTimeout() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- handshakeTimeout(Duration) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets how long a new connection may take to finish its TLS handshake.
- has(Context) - Method in class com.jsgalactic.axiom.jpa.EntityManagers
-
Reports whether an EntityManager is bound to this request.
- has(String) - Method in class com.jsgalactic.axiom.security.jwt.JwtClaims
-
Reports whether a claim is present, with any value (including JSON
null). - hasAnyRole(String...) - Method in class com.jsgalactic.axiom.security.Security
-
Returns middleware that requires an identity with at least one of the roles (401 without an identity, 403 with none of them).
- hashCode() - Method in record class com.jsgalactic.axiom.context.SecurityIdentity
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.error.Violation
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.execution.AdmissionPolicy
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.execution.AdmissionSnapshot
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.execution.ExecutionBudget
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.execution.StreamPolicy
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.graphql.GraphQlOptions
-
Returns a hash code value for this object.
- hashCode() - Method in class com.jsgalactic.axiom.http.Body
- hashCode() - Method in record class com.jsgalactic.axiom.http.ByteRange
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.http.ByteRanges
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.http.EntityTag
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Limits
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Part
-
Returns a hash code value for this object.
- hashCode() - Method in class com.jsgalactic.axiom.http.Request
- hashCode() - Method in class com.jsgalactic.axiom.http.Response
- hashCode() - Method in class com.jsgalactic.axiom.http.ServerSentEvent
- hashCode() - Method in record class com.jsgalactic.axiom.http.StreamOutcome
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.metrics.MetricsRegistry.TimerSnapshot
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.observability.Health.Report
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.observability.TraceContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.observability.TraceState
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.observability.TraceState.Member
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.routing.Route
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Body
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Param
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Reply
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.security.ClientOrigin
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.security.RateLimit.Decision
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.security.SessionState
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.test.StreamBuffering
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jsgalactic.axiom.validation.Constraint
-
Returns a hash code value for this object.
- hashCode() - Method in class com.jsgalactic.axiom.validation.FieldPath
- hashCode() - Method in class com.jsgalactic.axiom.websocket.WebSocketMessage
-
Hashes the payload by kind and content.
- hasPermission(String) - Method in record class com.jsgalactic.axiom.context.SecurityIdentity
-
Reports whether the identity was granted a permission.
- hasPermission(String) - Method in class com.jsgalactic.axiom.security.Security
-
Returns middleware that requires an identity with the permission (401 without an identity, 403 without the permission).
- hasRole(String) - Method in record class com.jsgalactic.axiom.context.SecurityIdentity
-
Reports whether the identity was granted a role.
- hasRole(String) - Method in class com.jsgalactic.axiom.security.Security
-
Returns middleware that requires an identity with the role (401 without an identity, 403 without the role).
- head(String, Handler, Middleware...) - Method in interface com.jsgalactic.axiom.routing.RouteGroup
- header() - Method in record class com.jsgalactic.axiom.observability.TraceState
-
Formats the state as a
tracestateheader value. - header() - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns the header value, for example
sid=abc; Path=/; Secure; HttpOnly; SameSite=Lax. - header(String) - Method in interface com.jsgalactic.axiom.context.Context
-
Returns a request header value, matching the name case-insensitively.
- header(String) - Method in class com.jsgalactic.axiom.http.Request
-
Returns a header value, matching the name case-insensitively.
- HEADER - Enum constant in enum class com.jsgalactic.axiom.routing.RouteDoc.In
-
A request header.
- HEADER - Static variable in record class com.jsgalactic.axiom.observability.TraceContext
-
The request header that carries the trace context.
- HEADER - Static variable in record class com.jsgalactic.axiom.observability.TraceState
-
The request header that carries the trace state.
- headerName(String) - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Sets the request header carrying the token (default
X-CSRF-Token). - headerParam(String, Type, String, boolean) - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy documenting a request header.
- HeaderRedaction - Class in com.jsgalactic.axiom.security
-
Replaces the values of credential-bearing headers before headers are logged.
- headers() - Method in exception class com.jsgalactic.axiom.error.AxiomException
-
Returns the headers this exception adds to its error response.
- headers() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Part
-
Returns the value of the
headersrecord component. - headers() - Method in class com.jsgalactic.axiom.http.Request
-
Returns the request headers.
- headers() - Method in class com.jsgalactic.axiom.http.Response
-
Returns immutable, case-insensitive header map.
- headers() - Method in record class com.jsgalactic.axiom.observability.TraceContext
-
The headers that continue this trace on an outgoing call:
traceparent, andtracestatewhen there are members. - headers() - Method in class com.jsgalactic.axiom.security.SecurityHeaders
-
Returns the headers this middleware sets.
- headers() - Method in class com.jsgalactic.axiom.test.StreamedResponse
-
Returns the headers of the response head.
- headers(boolean) - Method in class com.jsgalactic.axiom.security.RateLimit.Builder
-
Adds the
RateLimit-*headers to allowed responses (off by default). - headTimeout() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- headTimeout(Duration) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets how long a request head may take from its first byte; a slower client receives 408.
- Health - Class in com.jsgalactic.axiom.observability
-
Liveness and readiness for orchestrators and load balancers.
- HEALTH_NAME - Static variable in class com.jsgalactic.axiom.jdbc.Jdbc
-
Name of the readiness check added by
Jdbc.Builder.readiness(Health.Builder). - Health.Builder - Class in com.jsgalactic.axiom.observability
-
Collects checks before
Health.Builder.build(). - Health.Report - Record Class in com.jsgalactic.axiom.observability
-
The outcome of one probe.
- Health.Status - Enum Class in com.jsgalactic.axiom.observability
-
Outcome of a check or probe.
- healthCheck() - Method in class com.jsgalactic.axiom.jdbc.Jdbc
-
Returns a readiness check that runs the bounded query from
JdbcOptions.probeQuery()on the unwrapped source. - HealthCheck - Interface in com.jsgalactic.axiom.observability
-
One dependency or condition a probe reports on, such as a database connection or a warm cache.
- help(String) - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Returns the help text of a metric.
- help(String, String) - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry.Builder
-
Sets the text of the
# HELPline of a metric. - hidden() - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy that tools leave out of generated documentation, for example an internal route.
- highWaterBytes() - Method in record class com.jsgalactic.axiom.test.StreamBuffering
-
Returns the value of the
highWaterBytesrecord component. - hmacKey(JwsAlgorithm, byte[]) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Registers an HMAC secret used for tokens without a
kid. - hmacKey(String, JwsAlgorithm, byte[]) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Registers an HMAC secret for tokens whose
kidis the key ID. - host() - Method in class com.jsgalactic.axiom.application.ManagementOptions
- host() - Method in record class com.jsgalactic.axiom.security.ClientOrigin
-
Returns the value of the
hostrecord component. - host(String) - Method in class com.jsgalactic.axiom.application.ManagementOptions.Builder
-
Sets the bind host.
- HS256 - Enum constant in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
HMAC with SHA-256; a secret of at least 32 bytes.
- HS384 - Enum constant in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
HMAC with SHA-384; a secret of at least 48 bytes.
- HS512 - Enum constant in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
HMAC with SHA-512; a secret of at least 64 bytes.
- HTTP_VERSION_NOT_SUPPORTED - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
505 HTTP Version Not Supported.
- http2(boolean) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Accepts HTTP/2 on this listener in addition to HTTP/1.1.
- http2Enabled() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- httpOnly(boolean) - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Makes the double-submit cookie invisible to scripts (default off).
- httpOnly(boolean) - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns a copy with
HttpOnlyset or cleared. - HttpPreconditions - Class in com.jsgalactic.axiom.http
-
Opt-in HTTP conditional and range request support (RFC 9110 sections 13 and 14), built on the immutable response values Axiom already produces.
- HttpStatus - Class in com.jsgalactic.axiom.http
-
Status codes used by Axiom applications and runtimes, with their RFC 9110 reason phrases.
- HttpTransportProvider - Interface in com.jsgalactic.axiom.http.spi
-
Service-provider boundary for HTTP transports.
I
- id() - Method in class com.jsgalactic.axiom.http.ServerSentEvent
-
Returns the event ID.
- id() - Method in class com.jsgalactic.axiom.security.jwt.JwtClaims
-
Returns the
jticlaim, the token's unique identifier, for replay and revocation checks. - identity() - Method in interface com.jsgalactic.axiom.context.Context
-
Returns the authenticated caller of this request, if authentication middleware attached one.
- identity() - Method in class com.jsgalactic.axiom.security.Session
-
Returns the signed-in identity, including a change made earlier in this request.
- identity() - Method in record class com.jsgalactic.axiom.security.SessionState
-
Returns the value of the
identityrecord component. - identity(SecurityIdentity) - Method in interface com.jsgalactic.axiom.context.Context
-
Attaches the authenticated caller to this request.
- idleTimeout() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- idleTimeout(Duration) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets the network inactivity (no read and no write progress) after which a connection closes.
- idleTimeout(Duration) - Method in class com.jsgalactic.axiom.security.InMemorySessionStore.Builder
-
Sets the idle timeout.
- in() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Param
-
Returns the value of the
inrecord component. - INACTIVE - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionFailure
-
No transaction was active where the boundary needed one.
- INACTIVE - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionStatus
-
No transaction is associated with the request.
- include(Validator<? super T>) - Method in class com.jsgalactic.axiom.validation.Rules
-
Runs another validator on the whole value, keeping its violation fields.
- increment() - Method in interface com.jsgalactic.axiom.observability.Metrics.Counter
-
Adds one.
- index(int) - Method in class com.jsgalactic.axiom.validation.FieldPath
-
Appends an element index to the last property.
- InMemorySessionStore - Class in com.jsgalactic.axiom.security
-
A
SessionStorein process memory with idle and absolute timeouts and a hard bound on the number of sessions. - InMemorySessionStore.Builder - Class in com.jsgalactic.axiom.security
-
Builds
InMemorySessionStores; used during configuration, not thread-safe. - INTERNAL_SERVER_ERROR - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
500 Internal Server Error.
- InternalServerErrorException - Exception Class in com.jsgalactic.axiom.error
-
An unexpected server failure reported deliberately (500).
- InternalServerErrorException() - Constructor for exception class com.jsgalactic.axiom.error.InternalServerErrorException
-
Creates the exception with code
internal_server_error. - InternalServerErrorException(String) - Constructor for exception class com.jsgalactic.axiom.error.InternalServerErrorException
-
Creates the exception with a specific safe code.
- INTERRUPTED - Enum constant in enum class com.jsgalactic.axiom.http.BodyReadException.Reason
-
The request's deadline expired or its thread was interrupted.
- introspection() - Method in record class com.jsgalactic.axiom.graphql.GraphQlOptions
-
Returns the value of the
introspectionrecord component. - invalidate() - Method in class com.jsgalactic.axiom.security.Session
-
Deletes the session when the request completes and expires the cookie (logout).
- InvalidRequestPathException - Exception Class in com.jsgalactic.axiom.http
-
Reports a request path that
Requestrefuses to represent. - InvalidRequestPathException(String) - Constructor for exception class com.jsgalactic.axiom.http.InvalidRequestPathException
-
Creates the exception.
- IO_URING - Enum constant in enum class com.jsgalactic.axiom.lifecycle.TransportKind
-
Linux io_uring through the transport's native library.
- ioThreads() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- ioThreads(int) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets the I/O threads of the listener.
- isDeadlineExtended() - Method in class com.jsgalactic.axiom.execution.ExecutionContext
-
Reports whether
ExecutionContext.extendDeadline(java.time.Duration)replaced the original budget, so that a timer armed for the original deadline knows to wait for the new one. - isDeprecated() - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Tells whether the route is deprecated.
- isDraining() - Method in class com.jsgalactic.axiom.observability.Health
-
Reports whether
Health.beginDrain()was called. - isEmpty() - Method in class com.jsgalactic.axiom.http.Body
-
Reports whether there is no content.
- isEmpty() - Method in record class com.jsgalactic.axiom.observability.TraceState
-
Reports whether there are no members.
- isExpired() - Method in class com.jsgalactic.axiom.execution.ExecutionContext
-
Reports whether the deadline has elapsed.
- isHealthy() - Method in interface com.jsgalactic.axiom.observability.HealthCheck
-
Evaluates the condition.
- isHidden() - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Tells whether tools should leave the route out.
- isHttpOnly() - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns whether the cookie is
HttpOnly. - isNew() - Method in class com.jsgalactic.axiom.security.Session
-
Tells whether this session is not stored yet (no valid cookie came with the request).
- isOpen() - Method in interface com.jsgalactic.axiom.lifecycle.Server
-
Reports listener availability.
- isOpen() - Method in interface com.jsgalactic.axiom.websocket.WebSocketSession
-
Returns whether the session can still send and receive.
- isPropertyName(String) - Static method in class com.jsgalactic.axiom.validation.FieldPath
-
Tells whether a name may be used as one property segment: an ASCII letter or
_followed by ASCII letters, digits,_or-. - isReady() - Method in class com.jsgalactic.axiom.grpc.Grpc
-
Reports whether this server should receive traffic.
- isRoot() - Method in class com.jsgalactic.axiom.validation.FieldPath
-
Tells whether this is the empty root path.
- isRunning() - Method in class com.jsgalactic.axiom.grpc.Grpc
-
Reports whether the server accepted calls and has not begun shutting down.
- isSecure() - Method in class com.jsgalactic.axiom.http.Request
-
Reports whether the request arrived over a TLS connection to this server.
- isSecure() - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns whether the cookie is
Secure. - isSensitive(String) - Method in class com.jsgalactic.axiom.security.HeaderRedaction
-
Reports whether a header's value is redacted.
- isStreaming() - Method in class com.jsgalactic.axiom.http.Response
-
Reports whether the body is produced by a
StreamBody. - issuer() - Method in class com.jsgalactic.axiom.security.jwt.JwtClaims
-
Returns the
issclaim, which is always present in a verified token. - issuer(String) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Accepts tokens whose
issequals this value. - isText() - Method in class com.jsgalactic.axiom.websocket.WebSocketMessage
-
Reports whether this is a text message.
- isTruncated() - Method in class com.jsgalactic.axiom.validation.FieldPath
-
Tells whether a segment was dropped because of the length or index limit.
- isTrusted(InetAddress) - Method in class com.jsgalactic.axiom.security.TrustedProxies
-
Reports whether an address is a trusted proxy.
- isWrapperFor(Class<?>) - Method in class com.jsgalactic.axiom.jdbc.JdbcDataSource
-
Reports whether this wrapper or its delegate implements a type.
J
- JakartaValidation - Class in com.jsgalactic.axiom.validation.jakarta
-
A
Validatorbacked by Jakarta Validation annotations, using Hibernate Validator. - Jdbc - Class in com.jsgalactic.axiom.jdbc
-
Bounds the database concurrency of an Axiom application around a source the application owns and configures.
- Jdbc.Builder - Class in com.jsgalactic.axiom.jdbc
-
Collects bounds and hooks before
Jdbc.Builder.build(). - JdbcDataSource - Class in com.jsgalactic.axiom.jdbc
-
A
DataSourcethat delegates every call to an application-owned source and records connection checkouts through the AxiomMetricsSPI. - JdbcDataSource(DataSource, JdbcOptions, Metrics) - Constructor for class com.jsgalactic.axiom.jdbc.JdbcDataSource
-
Wraps a source with checked-out connection counters.
- JdbcOptions - Record Class in com.jsgalactic.axiom.jdbc
-
Immutable bounds of a
Jdbcgate. - JdbcOptions(String, int, Duration, String, Duration, Map<Route, Integer>, boolean) - Constructor for record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Validates the bounds and copies the route limits.
- jdkName() - Method in enum class com.jsgalactic.axiom.lifecycle.TlsOptions.Protocol
- Jpa - Class in com.jsgalactic.axiom.jpa
-
Per-request JPA EntityManager and transaction boundaries for Axiom applications.
- Jpa.Builder - Class in com.jsgalactic.axiom.jpa
-
Configures a
Jpa; instances are not thread-safe and are used during configuration. - json(Object) - Method in interface com.jsgalactic.axiom.context.Context
-
Maps a value to a JSON response using the current status (200 by default).
- jta(JtaTransactionLookup) - Method in class com.jsgalactic.axiom.jpa.Jpa.Builder
-
Sets a callback that reports an active JTA transaction for the current request.
- Jta - Class in com.jsgalactic.axiom.jta
-
Opt-in JTA transaction boundaries around Axiom handlers.
- Jta.Builder - Class in com.jsgalactic.axiom.jta
-
Configures an immutable
Jta; not thread-safe, build once at startup. - JtaLookupService - Class in com.jsgalactic.axiom.jta
-
The service-loaded implementation of
JtaTransactionLookup. - JtaLookupService() - Constructor for class com.jsgalactic.axiom.jta.JtaLookupService
-
Creates the service instance used by
ServiceLoader. - JtaTransactionLookup - Interface in com.jsgalactic.axiom.jpa
-
Reports whether a request already carries an active JTA transaction.
- JtaTransactionLookup - Interface in com.jsgalactic.axiom.jta.spi
-
A read-only view of the JTA transaction bound to a request, with only JDK types in its signatures.
- jwks(JwksSource) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Takes further verification keys from the issuer's JSON Web Key Set, with default options.
- jwks(JwksSource, JwksOptions) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Takes further verification keys from the issuer's JSON Web Key Set, which the application configures and the token cannot influence.
- JwksOptions - Class in com.jsgalactic.axiom.security.jwt
-
Bounds and timings for a JSON Web Key Set used by
JwtAuthenticator, set withJwtAuthenticator.Builder.jwks(JwksSource, JwksOptions). - JwksSource - Interface in com.jsgalactic.axiom.security.jwt
-
Where
JwtAuthenticatorgets an issuer's JSON Web Key Set (RFC 7517) from. - JwsAlgorithm - Enum Class in com.jsgalactic.axiom.security.jwt
-
The JWS signature algorithms
JwtAuthenticatorcan verify, all implemented by the JDK. - JwtAuthenticator - Class in com.jsgalactic.axiom.security.jwt
-
Authenticates
Authorization: Bearerrequests carrying a signed JWT (RFC 7519, JWS compact serialization), using only the JDK. - JwtAuthenticator.Builder - Class in com.jsgalactic.axiom.security.jwt
-
Configures a
JwtAuthenticator. - JwtClaims - Class in com.jsgalactic.axiom.security.jwt
-
The claims of a token whose signature, expiry, issuer, audience and subject have been verified, read through typed accessors so that no JSON library type is exposed.
K
- keepAlive() - Method in interface com.jsgalactic.axiom.http.EventSink
-
Sends a comment that keeps the connection from looking idle to clients and intermediaries.
- key() - Method in record class com.jsgalactic.axiom.observability.TraceState.Member
-
Returns the value of the
keyrecord component. - key(Context) - Method in interface com.jsgalactic.axiom.security.RateLimitKey
-
Returns the key of the request.
- key(RateLimitKey) - Method in class com.jsgalactic.axiom.security.RateLimit.Builder
-
Sets the key function; the default is
RateLimitKey.peerAddress(). - kind() - Method in record class com.jsgalactic.axiom.http.StreamOutcome
-
Returns the value of the
kindrecord component. - kind() - Method in record class com.jsgalactic.axiom.validation.Constraint
-
Returns the value of the
kindrecord component. - KQUEUE - Enum constant in enum class com.jsgalactic.axiom.lifecycle.TransportKind
-
BSD and macOS kqueue through the transport's native library; requires such a system and that library.
L
- last() - Method in record class com.jsgalactic.axiom.http.ByteRange
-
Returns the value of the
lastrecord component. - lastAccessedAt() - Method in record class com.jsgalactic.axiom.security.SessionState
-
Returns the value of the
lastAccessedAtrecord component. - LAX - Enum constant in enum class com.jsgalactic.axiom.security.SetCookie.SameSite
-
Also sent on top-level cross-site navigations with a safe method.
- length() - Method in class com.jsgalactic.axiom.http.Body.Builder
-
Returns the number of bytes written so far.
- length() - Method in class com.jsgalactic.axiom.http.Body
-
Returns the content length in bytes.
- length() - Method in record class com.jsgalactic.axiom.http.ByteRange
-
Returns how many bytes the range covers, including both endpoints.
- length() - Method in class com.jsgalactic.axiom.websocket.WebSocketMessage
-
Returns the payload length: characters for text, bytes for binary.
- length(int, int) - Static method in class com.jsgalactic.axiom.validation.Rule
-
Bounds text length in Unicode code points, inclusive.
- LENGTH - Enum constant in enum class com.jsgalactic.axiom.validation.Constraint.Kind
-
Text length in code points is between
minandmax. - LENGTH_REQUIRED - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
411 Length Required.
- LengthRequiredException - Exception Class in com.jsgalactic.axiom.error
-
An endpoint's refusal of a request that does not declare its length (411).
- LengthRequiredException() - Constructor for exception class com.jsgalactic.axiom.error.LengthRequiredException
-
Creates the exception with code
length_required. - LengthRequiredException(String) - Constructor for exception class com.jsgalactic.axiom.error.LengthRequiredException
-
Creates the exception with a specific safe code.
- limit() - Method in record class com.jsgalactic.axiom.security.RateLimit.Decision
-
Returns the value of the
limitrecord component. - LIMIT_EXCEEDED - Enum constant in enum class com.jsgalactic.axiom.http.BodyReadException.Reason
-
More bytes were delivered than the body's configured limit.
- LIMIT_EXCEEDED - Enum constant in enum class com.jsgalactic.axiom.http.StreamAbortedException.Reason
-
The response would have exceeded its byte cap.
- LIMIT_EXCEEDED - Enum constant in enum class com.jsgalactic.axiom.http.StreamOutcome.Kind
-
The body tried to write more than its byte cap.
- LIMIT_EXCEEDED - Static variable in exception class com.jsgalactic.axiom.http.MultipartException
-
Code of a body that exceeds a part, header, count or total-byte limit.
- Limits(int, int, int, long) - Constructor for record class com.jsgalactic.axiom.http.MultipartParser.Limits
-
Validates and creates limits; every bound must be positive.
- lingerQuietTimeout() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- lingerQuietTimeout(Duration) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets the silence after which lingering ends because the client is taken to have finished.
- lingerTimeout() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- lingerTimeout(Duration) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets how long a connection may linger after its last response, reading and discarding input so a client that is still sending reads the whole response.
- listen(int) - Method in interface com.jsgalactic.axiom.application.Application
-
Starts this application and binds a loopback HTTP listener.
- listen(InetSocketAddress) - Method in interface com.jsgalactic.axiom.application.Application
-
Starts this application and binds an HTTP listener using the installed transport provider.
- listen(InetSocketAddress, ListenerOptions) - Method in interface com.jsgalactic.axiom.application.Application
-
Starts this application and binds an HTTP listener with explicit limits and timeouts, such as the shutdown grace period or the connection cap.
- listener() - Static method in record class com.jsgalactic.axiom.test.StreamBuffering
-
The numbers of the HTTP listener: 128 KiB high and 32 KiB low water marks, 16 KiB pieces and a 30 second stall bound.
- ListenerOptions - Class in com.jsgalactic.axiom.lifecycle
-
Transport limits and timeouts of one HTTP listener, passed to
Application.listen(java.net.InetSocketAddress, ListenerOptions). - ListenerOptions.Builder - Class in com.jsgalactic.axiom.lifecycle
-
Collects settings before
ListenerOptions.Builder.build(). - listOf(Type) - Static method in class com.jsgalactic.axiom.routing.RouteDoc
-
Creates the type
List<element>. - LIVE_PATH - Static variable in class com.jsgalactic.axiom.observability.Health
-
Path of the liveness route.
- liveness() - Method in class com.jsgalactic.axiom.observability.Health
-
Runs the liveness checks.
- liveness(String, HealthCheck) - Method in class com.jsgalactic.axiom.observability.Health.Builder
-
Adds a check that decides whether the process should be restarted.
- liveness(String, HealthCheck, Duration) - Method in class com.jsgalactic.axiom.observability.Health.Builder
-
Adds a liveness check with its own timeout.
- localAddress() - Method in interface com.jsgalactic.axiom.lifecycle.Server
-
Returns the bound address.
- lowWaterBytes() - Method in record class com.jsgalactic.axiom.test.StreamBuffering
-
Returns the value of the
lowWaterBytesrecord component.
M
- MALFORMED - Static variable in exception class com.jsgalactic.axiom.http.MultipartException
-
Code of a body whose framing, headers or boundaries are not well formed.
- management() - Method in interface com.jsgalactic.axiom.application.Application
- management(ManagementOptions) - Method in interface com.jsgalactic.axiom.application.Application
-
Opts in to a separate management listener, before startup.
- managementHealth(Health) - Method in interface com.jsgalactic.axiom.application.Application
-
Framework hook used by
Healthto make its probes available on the management listener. - ManagementOptions - Class in com.jsgalactic.axiom.application
-
Opt-in settings for a separate management listener, passed to
Application.management(ManagementOptions). - ManagementOptions.Builder - Class in com.jsgalactic.axiom.application
-
Collects settings before
ManagementOptions.Builder.build(). - managementServer() - Method in interface com.jsgalactic.axiom.application.Application
-
Returns the bound management listener, if one has started.
- mapError(Class<? extends Exception>, Status) - Method in class com.jsgalactic.axiom.grpc.Grpc.Builder
-
Maps an exception class and its subclasses to a gRPC status.
- mapStream(UnaryOperator<StreamBody>) - Method in class com.jsgalactic.axiom.http.Response
-
Returns a streamed response whose body is replaced by a wrapper of the current one, for example to time it, count bytes or transform what it writes.
- MARK - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionFailure
-
Marking the active transaction rollback-only failed.
- MARKED_ROLLBACK - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionStatus
-
A transaction is associated but has been marked for rollback.
- matchedRoute() - Method in interface com.jsgalactic.axiom.context.Context
-
Returns the matched route identity, or empty when the router answers the request itself (404, 405, automatic OPTIONS,
OPTIONS *, 501). - max() - Method in record class com.jsgalactic.axiom.validation.Constraint
-
Returns the value of the
maxrecord component. - max(long) - Static method in class com.jsgalactic.axiom.validation.Rule
-
Requires a number of at most
max, compared exactly; NaN fails. - MAX_ATTRIBUTES - Static variable in record class com.jsgalactic.axiom.security.SessionState
-
Most attributes one session holds.
- MAX_BODY_BYTES - Static variable in class com.jsgalactic.axiom.application.ManagementOptions
-
Largest request body the management listener accepts.
- MAX_BUCKETS - Static variable in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Most upper bounds one timer may have, not counting the implicit final bucket.
- MAX_CACHE - Static variable in class com.jsgalactic.axiom.observability.Health
-
Longest time a check result may be cached.
- MAX_CHECKS - Static variable in class com.jsgalactic.axiom.observability.Health
-
Most checks per probe.
- MAX_COMPRESSION_LEVEL - Static variable in class com.jsgalactic.axiom.lifecycle.ListenerOptions
-
Highest deflater compression level accepted by
ListenerOptions.Builder.compressionLevel(int). - MAX_DURATION_DAYS - Static variable in class com.jsgalactic.axiom.lifecycle.ListenerOptions
-
Longest accepted duration, in days.
- MAX_HEALTH - Static variable in class com.jsgalactic.axiom.application.ManagementOptions
-
Most
Healthinstances a management listener uses. - MAX_HELP_LENGTH - Static variable in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Longest help text.
- MAX_KEY_LENGTH - Static variable in class com.jsgalactic.axiom.security.RateLimit
-
Longest key tracked; longer keys are counted under
RateLimitKey.ANONYMOUS. - MAX_LENGTH - Static variable in record class com.jsgalactic.axiom.observability.TraceState
-
Longest header value that is accepted and produced.
- MAX_LENGTH - Static variable in class com.jsgalactic.axiom.validation.FieldPath
-
Longest field path, matching the limit of
Violation.field(). - MAX_MEMBERS - Static variable in record class com.jsgalactic.axiom.observability.TraceState
-
Most members in a trace state.
- MAX_NAME_LENGTH - Static variable in class com.jsgalactic.axiom.lifecycle.ListenerOptions
-
Longest listener name.
- MAX_NAME_LENGTH - Static variable in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Longest metric name.
- MAX_PAIRS - Static variable in class com.jsgalactic.axiom.security.Cookies
-
Most cookie pairs accepted in one header.
- MAX_PROBE_QUERY_LENGTH - Static variable in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Longest permitted health statement.
- MAX_PROBE_TIMEOUT - Static variable in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Longest permitted health statement timeout.
- MAX_QUERY_LENGTH - Static variable in class com.jsgalactic.axiom.http.Request
-
Longest accepted raw query, in characters.
- MAX_QUERY_PARAMETERS - Static variable in class com.jsgalactic.axiom.http.Request
-
Most parameters an accepted query may contain; empty
&-separated pairs do not count. - MAX_QUEUED_LIMIT - Static variable in record class com.jsgalactic.axiom.execution.AdmissionPolicy
-
Largest accepted
maxQueued; bounds memory held by waiting requests. - MAX_RANGES - Static variable in record class com.jsgalactic.axiom.http.ByteRanges
-
Most specifications a parsed
Rangefield may contain: eight. - MAX_RESPONSE_BYTES - Static variable in class com.jsgalactic.axiom.application.ManagementOptions
-
Largest response body the management listener produces.
- MAX_ROUTE_LIMITS - Static variable in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Most routes with their own cap.
- MAX_STREAM_LIFETIME - Static variable in class com.jsgalactic.axiom.http.Response
-
Longest lifetime of a stream (see
Response.withStreamLifetime(java.time.Duration)): one day. - MAX_TIMEOUT - Static variable in class com.jsgalactic.axiom.observability.Health
-
Longest probe timeout.
- MAX_VALUE_LENGTH - Static variable in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Longest stored tag value; longer values are truncated.
- MAX_VALUE_LENGTH - Static variable in record class com.jsgalactic.axiom.security.SessionState
-
Longest attribute value, in characters.
- MAX_VIOLATIONS - Static variable in class com.jsgalactic.axiom.validation.Validation
-
Most violations reported for one value; the same limit
ValidationExceptionenforces. - MAX_WAIT - Static variable in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Longest permitted wait for a permit.
- maxActive() - Method in record class com.jsgalactic.axiom.execution.AdmissionPolicy
-
Returns the value of the
maxActiverecord component. - maxActive() - Method in record class com.jsgalactic.axiom.execution.StreamPolicy
-
Returns the value of the
maxActiverecord component. - maxAge(Duration) - Method in class com.jsgalactic.axiom.security.Cors.Builder
-
Sets how long a browser may cache a preflight answer.
- maxAge(Duration) - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Sets how long a double-submit token is accepted (default 12 hours).
- maxAge(Duration) - Method in class com.jsgalactic.axiom.security.Sessions.Builder
-
Makes the cookie persistent for this long (default: a browser-session cookie).
- maxAge(Duration) - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns a copy with a
Max-Age, in whole seconds (rounded down). - maxBodyBytes() - Method in record class com.jsgalactic.axiom.graphql.GraphQlOptions
-
Returns the value of the
maxBodyBytesrecord component. - maxBytes(int) - Method in class com.jsgalactic.axiom.security.jwt.JwksOptions
-
Sets the longest accepted key set document.
- maxComplexity() - Method in record class com.jsgalactic.axiom.graphql.GraphQlOptions
-
Returns the value of the
maxComplexityrecord component. - maxConnections() - Method in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Returns the value of the
maxConnectionsrecord component. - maxConnections() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- maxConnections(int) - Method in class com.jsgalactic.axiom.jdbc.Jdbc.Builder
-
Sets the largest number of concurrent permits.
- maxConnections(int) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets the open connections per listener.
- maxCookieHeader(int) - Method in class com.jsgalactic.axiom.security.Sessions.Builder
-
Sets the longest
Cookieheader read (default 8,192 characters). - maxDepth() - Method in record class com.jsgalactic.axiom.graphql.GraphQlOptions
-
Returns the value of the
maxDepthrecord component. - maxDepth(int) - Method in class com.jsgalactic.axiom.openapi.OpenApi.Builder
-
Limits how deeply described types may nest before generation fails; cycles never count because a type that refers to itself becomes a reference.
- maxDiscardedInput() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- maxDiscardedInput(int) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets how many bytes a connection discards unread after an error or its last response before it is closed as abusive.
- maxFileSize(long) - Method in class com.jsgalactic.axiom.http.StaticFiles.Builder
-
Sets the largest file this handler will serve, 64 MiB by default.
- maxHeaderBytes() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Limits
-
Returns the value of the
maxHeaderBytesrecord component. - maxHeaderBytes() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- maxHeaderBytes(int) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets the largest header section; a larger one is answered 431.
- maxInFlightBodyBytes() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- maxInFlightBodyBytes(long) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets the request body bytes the listener holds at once, summed over all its connections: bodies being received, bodies of pipelined requests waiting behind a running one, and the bodies of requests whose handler is running.
- maxKeys(int) - Method in class com.jsgalactic.axiom.security.RateLimit.Builder
-
Sets the most keys tracked at once (10,000 by default).
- maxLength(int) - Static method in class com.jsgalactic.axiom.validation.Rule
-
Allows at most
maxcode points. - maxLingeringConnections() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- maxLingeringConnections(int) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets how many lingering connections move to a separate pool and stop counting against
ListenerOptions.Builder.maxConnections. - maxPartBytes() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Limits
-
Returns the value of the
maxPartBytesrecord component. - maxParts() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Limits
-
Returns the value of the
maxPartsrecord component. - maxPipelinedRequests() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- maxPipelinedRequests(int) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets the outstanding requests per connection, including the running one.
- maxQueued() - Method in record class com.jsgalactic.axiom.execution.AdmissionPolicy
-
Returns the value of the
maxQueuedrecord component. - maxRequestBody() - Method in interface com.jsgalactic.axiom.application.Application
-
Returns the configured request body limit.
- maxRequestBody() - Method in class com.jsgalactic.axiom.application.ManagementOptions
- maxRequestBody(int) - Method in interface com.jsgalactic.axiom.application.Application
-
Sets the largest accepted request body before startup.
- maxRequestBody(int) - Method in class com.jsgalactic.axiom.application.ManagementOptions.Builder
-
Caps the request body the management listener accepts.
- maxRequestLine() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- maxRequestLine(int) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets the longest request line; a longer one is answered 414.
- maxResponseBytes() - Method in class com.jsgalactic.axiom.application.ManagementOptions
- maxResponseBytes(int) - Method in class com.jsgalactic.axiom.application.ManagementOptions.Builder
-
Caps the text the metrics scrape returns, so a third-party metrics implementation cannot make an opaque endpoint unbounded.
- maxSeries(int) - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry.Builder
-
Sets the series limit.
- maxSessions(int) - Method in class com.jsgalactic.axiom.security.InMemorySessionStore.Builder
-
Sets the most sessions held at once.
- maxStale(Duration) - Method in class com.jsgalactic.axiom.security.jwt.JwksOptions
-
Sets how long a key set stays usable after its last successful fetch while later fetches fail.
- maxTokenLength(int) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Sets the longest accepted token, checked before decoding.
- maxTotalBytes() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Limits
-
Returns the value of the
maxTotalBytesrecord component. - maxWait() - Method in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Returns the value of the
maxWaitrecord component. - mediaType() - Method in class com.jsgalactic.axiom.http.Body
-
Returns the lowercase
type/subtypeof the content type, without parameters. - mediaTypes() - Method in interface com.jsgalactic.axiom.codec.spi.BodyCodec
-
Returns the media types this codec handles.
- mediaTypes() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Body
-
Returns the value of the
mediaTypesrecord component. - mediaTypes() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Reply
-
Returns the value of the
mediaTypesrecord component. - Member(String, String) - Constructor for record class com.jsgalactic.axiom.observability.TraceState.Member
-
Validates the pair.
- members() - Method in record class com.jsgalactic.axiom.observability.TraceState
-
Returns the value of the
membersrecord component. - method() - Method in interface com.jsgalactic.axiom.context.Context
-
Returns the case-sensitive HTTP method.
- method() - Method in class com.jsgalactic.axiom.http.Request
-
Returns the HTTP method.
- method() - Method in record class com.jsgalactic.axiom.routing.Route
-
Returns the value of the
methodrecord component. - METHOD_NOT_ALLOWED - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
405 Method Not Allowed.
- methodNotAllowed(Handler) - Method in interface com.jsgalactic.axiom.application.Application
-
Customises the 405 answer for a path some template matches but none serves the method of, before startup.
- MethodNotAllowedException - Exception Class in com.jsgalactic.axiom.error
-
A method the target resource does not support (405).
- MethodNotAllowedException(Set<String>) - Constructor for exception class com.jsgalactic.axiom.error.MethodNotAllowedException
-
Creates the exception with code
method_not_allowed. - metrics() - Method in interface com.jsgalactic.axiom.application.Application
-
Returns the configured metrics.
- metrics(Metrics) - Method in interface com.jsgalactic.axiom.application.Application
-
Sets where listeners and the test client record request, latency and admission metrics, before startup.
- metrics(Metrics) - Method in class com.jsgalactic.axiom.jdbc.Jdbc.Builder
-
Replaces the metrics destination.
- metrics(Metrics) - Method in class com.jsgalactic.axiom.security.InMemorySessionStore.Builder
-
Records the store's metrics.
- metrics(Metrics) - Method in class com.jsgalactic.axiom.security.RateLimit.Builder
-
Records the limiter's metrics.
- Metrics - Interface in com.jsgalactic.axiom.observability
-
Receives the counters, gauges and timers the runtime records.
- METRICS_PATH - Static variable in class com.jsgalactic.axiom.application.ManagementOptions
-
Path of the metrics scrape.
- Metrics.Counter - Interface in com.jsgalactic.axiom.observability
-
A monotonically increasing count.
- Metrics.Gauge - Interface in com.jsgalactic.axiom.observability
-
A value that moves both ways.
- Metrics.Timer - Interface in com.jsgalactic.axiom.observability
-
A recorder of durations.
- MetricsRegistry - Class in com.jsgalactic.axiom.metrics
-
An in-memory
Metricsimplementation with a bounded number of series. - MetricsRegistry.Builder - Class in com.jsgalactic.axiom.metrics
-
Settings of a
MetricsRegistry. - MetricsRegistry.TimerSnapshot - Record Class in com.jsgalactic.axiom.metrics
-
A timer's totals.
- MicrometerMetrics - Class in com.jsgalactic.axiom.micrometer
-
Maps the dependency-free
MetricsSPI to an application-owned MicrometerMeterRegistry. - middleware() - Method in class com.jsgalactic.axiom.jdbc.Jdbc
-
Returns the middleware that acquires and releases permits.
- Middleware - Interface in com.jsgalactic.axiom.context
-
Code that runs around handlers: logging, timing, authentication, response headers.
- Middleware.Next - Interface in com.jsgalactic.axiom.context
-
The rest of a middleware chain for one request.
- min() - Method in record class com.jsgalactic.axiom.validation.Constraint
-
Returns the value of the
minrecord component. - min(long) - Static method in class com.jsgalactic.axiom.validation.Rule
-
Requires a number of at least
min, compared exactly; NaN fails. - minimumProtocol() - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions
- minimumProtocol(TlsOptions.Protocol) - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions.Builder
-
Sets the oldest TLS version a client may negotiate.
- minLength(int) - Static method in class com.jsgalactic.axiom.validation.Rule
-
Requires at least
mincode points. - minRefreshInterval(Duration) - Method in class com.jsgalactic.axiom.security.jwt.JwksOptions
-
Sets the shortest time between two fetch attempts, successful or not.
- MOVED_PERMANENTLY - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
301 Moved Permanently.
- MultipartException - Exception Class in com.jsgalactic.axiom.http
-
A multipart body the parser cannot accept: malformed framing or an exceeded explicit limit.
- MultipartException(String) - Constructor for exception class com.jsgalactic.axiom.http.MultipartException
-
Creates a failure with a safe code and no input-derived detail.
- MultipartParser - Class in com.jsgalactic.axiom.http
-
Event-based parser for
multipart/*request bodies read from aBodyReader. - MultipartParser(BodyReader, String, MultipartParser.Limits, MultipartParser.Listener) - Constructor for class com.jsgalactic.axiom.http.MultipartParser
-
Creates a parser that uses the system temporary directory for spilled parts.
- MultipartParser(BodyReader, String, MultipartParser.Limits, MultipartParser.Listener, Path) - Constructor for class com.jsgalactic.axiom.http.MultipartParser
-
Creates a parser that spills parts into the given directory, so an application or a test can choose and observe the temporary storage.
- MultipartParser.Limits - Record Class in com.jsgalactic.axiom.http
-
Bounds applied while a multipart body is read.
- MultipartParser.Listener - Interface in com.jsgalactic.axiom.http
-
Receives parts as they are completed by the parser.
- MultipartParser.Part - Record Class in com.jsgalactic.axiom.http
-
One complete part: its headers, disposition parameters and bounded content.
N
- name() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Part
-
Returns the value of the
namerecord component. - name() - Method in class com.jsgalactic.axiom.http.ServerSentEvent
-
Returns the event name.
- name() - Method in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Returns the value of the
namerecord component. - name() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- name() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Param
-
Returns the value of the
namerecord component. - name() - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns the cookie name.
- name(String) - Method in class com.jsgalactic.axiom.jdbc.Jdbc.Builder
-
Sets the bounded tag value of the wrapper's connection series.
- name(String) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Names the listener.
- name(String) - Method in class com.jsgalactic.axiom.security.RateLimit.Builder
-
Names the limiter in metrics (tag
limiter); defaultdefault. - named(String, String) - Static method in class com.jsgalactic.axiom.http.ServerSentEvent
-
Creates an event with a name, which clients select with
addEventListener. - names() - Method in class com.jsgalactic.axiom.security.Cookies
-
Returns the distinct cookie names.
- names() - Method in class com.jsgalactic.axiom.security.jwt.JwtClaims
-
Lists the names of the claims present.
- nested(String, Function<? super T, ? extends V>, Validator<? super V>) - Method in class com.jsgalactic.axiom.validation.Rules
-
Validates a nested object, prefixing its violations with
name; skipsnull. - next() - Method in class com.jsgalactic.axiom.test.StreamedResponse
-
Waits for the next chunk.
- nextText() - Method in class com.jsgalactic.axiom.test.StreamedResponse
-
Waits for the next chunk and decodes it as UTF-8.
- NIO - Enum constant in enum class com.jsgalactic.axiom.lifecycle.TransportKind
-
The JDK's selector-based I/O, available everywhere and needing no extra library.
- NO_CONTENT - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
204 No Content; never carries a body.
- noContent() - Method in interface com.jsgalactic.axiom.context.Context
-
Returns a 204 response with no body.
- none() - Static method in class com.jsgalactic.axiom.security.Cookies
-
Returns no cookies.
- none() - Static method in class com.jsgalactic.axiom.security.TrustedProxies
-
Trusts no proxy: the client is always the transport peer.
- NONE - Enum constant in enum class com.jsgalactic.axiom.lifecycle.TlsOptions.ClientAuth
-
No client certificate is requested.
- NONE - Enum constant in enum class com.jsgalactic.axiom.security.SetCookie.SameSite
-
Sent on all requests; requires
Secure. - NOOP - Static variable in interface com.jsgalactic.axiom.observability.Metrics
-
Records nothing.
- noRollbackOn(Class<? extends Throwable>) - Method in class com.jsgalactic.axiom.jta.Jta.Builder
-
Adds a rule that commits when the chain throws a throwable of this type.
- NOT_ACCEPTABLE - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
406 Not Acceptable.
- NOT_BLANK - Enum constant in enum class com.jsgalactic.axiom.validation.Constraint.Kind
-
Text must contain a non-whitespace character.
- NOT_EMPTY - Enum constant in enum class com.jsgalactic.axiom.validation.Constraint.Kind
-
Text, collections, maps and arrays must not be empty.
- NOT_FOUND - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
404 Not Found.
- NOT_IMPLEMENTED - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
501 Not Implemented.
- NOT_MODIFIED - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
304 Not Modified; never carries a body.
- NOT_NULL - Enum constant in enum class com.jsgalactic.axiom.validation.Constraint.Kind
-
The value must not be
null. - NotAcceptableException - Exception Class in com.jsgalactic.axiom.error
-
No acceptable representation for the request's Accept header (406).
- NotAcceptableException() - Constructor for exception class com.jsgalactic.axiom.error.NotAcceptableException
-
Creates the exception with code
not_acceptable. - NotAcceptableException(String) - Constructor for exception class com.jsgalactic.axiom.error.NotAcceptableException
-
Creates the exception with a specific safe code.
- notBlank() - Static method in class com.jsgalactic.axiom.validation.Rule
-
Rejects
nulland text that is empty or only whitespace. - notEmpty() - Static method in class com.jsgalactic.axiom.validation.Rule
-
Rejects
nulland empty text, collections, maps and arrays; other non-null values pass. - notFound(Handler) - Method in interface com.jsgalactic.axiom.application.Application
-
Customises the 404 answer for a path no template matches (and a recognized method; see
Application.recognizeMethods(java.lang.String...)) before startup, without middleware. - NotFoundException - Exception Class in com.jsgalactic.axiom.error
-
A resource that does not exist (404).
- NotFoundException() - Constructor for exception class com.jsgalactic.axiom.error.NotFoundException
-
Creates the exception with code
not_found. - NotFoundException(String) - Constructor for exception class com.jsgalactic.axiom.error.NotFoundException
-
Creates the exception with a specific safe code.
- notImplemented(Handler) - Method in interface com.jsgalactic.axiom.application.Application
-
Customises the 501 answer for an unrecognized method on a path no template matches, before startup.
- NotImplementedException - Exception Class in com.jsgalactic.axiom.error
-
Functionality the server does not support (501).
- NotImplementedException() - Constructor for exception class com.jsgalactic.axiom.error.NotImplementedException
-
Creates the exception with code
not_implemented. - NotImplementedException(String) - Constructor for exception class com.jsgalactic.axiom.error.NotImplementedException
-
Creates the exception with a specific safe code.
- notNull() - Static method in class com.jsgalactic.axiom.validation.Rule
-
Rejects
null. - number(String) - Method in class com.jsgalactic.axiom.security.jwt.JwtClaims
-
Reads a claim that is a non-negative integer of at most 15 digits.
O
- of(byte[]) - Static method in interface com.jsgalactic.axiom.http.BodyReader
-
Creates a reader over a copy of
bytes. - of(int) - Static method in class com.jsgalactic.axiom.application.ManagementOptions
-
Options for a loopback listener on the given port with every other setting at its default.
- of(int, Object) - Static method in class com.jsgalactic.axiom.http.Response
-
Creates a response with the supplied status and body.
- of(AdmissionPolicy) - Static method in record class com.jsgalactic.axiom.execution.ExecutionBudget
-
Creates a budget with no route overrides.
- of(BodyWriter) - Static method in interface com.jsgalactic.axiom.http.EventSink
-
Wraps a body writer as an event sink.
- of(Request) - Static method in class com.jsgalactic.axiom.security.Cookies
-
Reads the request's cookies; a missing, oversized or malformed header yields none.
- of(Request, int) - Static method in class com.jsgalactic.axiom.security.Cookies
-
Reads the request's cookies with a header size limit; a missing, oversized or malformed header yields none.
- of(Authenticator) - Static method in class com.jsgalactic.axiom.security.Security
-
Creates policies that authenticate with the authenticator.
- of(Class<T>) - Static method in class com.jsgalactic.axiom.validation.Rules
-
Starts an empty rule set; it accepts every non-null value.
- of(String) - Static method in record class com.jsgalactic.axiom.context.SecurityIdentity
-
Creates an identity without roles or permissions.
- of(String...) - Static method in class com.jsgalactic.axiom.security.TrustedProxies
-
Trusts proxies in the given address ranges.
- of(String, byte[]) - Static method in class com.jsgalactic.axiom.http.Body
-
Creates a body from a copy of the supplied bytes.
- of(String, String) - Static method in class com.jsgalactic.axiom.security.SetCookie
-
Creates a cookie with the secure defaults.
- of(String, ByteBuffer...) - Static method in class com.jsgalactic.axiom.http.Body
-
Creates a body by concatenating the remaining bytes of each buffer in order, copying them once.
- ofBytes(int) - Static method in record class com.jsgalactic.axiom.test.StreamBuffering
-
A buffer of the given size: the low water mark is a quarter of it, pieces are at most 16 KiB and there is no stall bound.
- OK - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
200 OK.
- onCancel(Runnable) - Method in class com.jsgalactic.axiom.grpc.GrpcCall
-
Runs an action once when
GrpcCall.cancelled()becomes true. - onClose(WebSocketSession, int, String) - Method in interface com.jsgalactic.axiom.websocket.WebSocketHandler
-
Called once when the session ends, whether by the peer, the application or listener shutdown.
- onClose(Runnable) - Method in interface com.jsgalactic.axiom.application.Application
-
Registers an action that runs once when
Application.close()closes this application, after the dispatcher is retired and before owned listeners close. - onConnect(WebSocketSession) - Method in interface com.jsgalactic.axiom.websocket.WebSocketHandler
-
Called once after the handshake succeeds, before any message.
- onDrain(Runnable) - Method in interface com.jsgalactic.axiom.application.Application
-
Registers an action that starts draining, such as
Health.beginDrain()(which aHealthregisters on its own). - ONE_OF - Enum constant in enum class com.jsgalactic.axiom.validation.Constraint.Kind
-
The text equals one of
values. - oneOf(String...) - Static method in class com.jsgalactic.axiom.validation.Rule
-
Requires text equal to one of the listed values.
- onError(WebSocketSession, Throwable) - Method in interface com.jsgalactic.axiom.websocket.WebSocketHandler
-
Called when a callback fails or the transport rejects a frame.
- onMessage(WebSocketSession, WebSocketMessage) - Method in interface com.jsgalactic.axiom.websocket.WebSocketHandler
-
Called for every complete text or binary message.
- onShutdown(Runnable) - Method in interface com.jsgalactic.axiom.http.BodyWriter
-
Runs an action once when shutdown begins, or at once on the calling thread if it already has.
- onShutdown(Runnable) - Method in interface com.jsgalactic.axiom.http.EventSink
-
Runs an action once when shutdown begins; see
BodyWriter.onShutdown(Runnable). - onStreamEnd(Consumer<StreamOutcome>) - Method in class com.jsgalactic.axiom.http.Response
-
Returns a streamed response that tells an observer how its body ended, so middleware can record the outcome of a stream, which is only known after the middleware returned.
- opaqueTag() - Method in record class com.jsgalactic.axiom.http.EntityTag
-
Returns the value of the
opaqueTagrecord component. - OpenApi - Class in com.jsgalactic.axiom.openapi
-
Generates an OpenAPI 3.1 document, or the equivalent Swagger 2.0 document, from an application's routes and their
RouteDocdescriptions. - OpenApi.Builder - Class in com.jsgalactic.axiom.openapi
-
Configures an
OpenApi. - operationId() - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns the operation id.
- operationId(String) - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy with an operation id, which should be unique across the application.
- options() - Method in class com.jsgalactic.axiom.graphql.GraphQl
-
Returns the bounds of this handler.
- options() - Method in class com.jsgalactic.axiom.jdbc.Jdbc
-
Returns the validated bounds of this gate.
- options(GraphQlOptions) - Method in class com.jsgalactic.axiom.graphql.GraphQl.Builder
-
Sets request and query bounds.
- options(String, Handler, Middleware...) - Method in interface com.jsgalactic.axiom.routing.RouteGroup
- OtelMetrics - Class in com.jsgalactic.axiom.otel
-
Maps the dependency-free
MetricsSPI to OpenTelemetry API instruments. - outcome() - Method in class com.jsgalactic.axiom.jta.TransactionContext
-
Returns the outcome of the transaction that last completed for this request.
P
- Param(RouteDoc.In, String, Type, String, boolean) - Constructor for record class com.jsgalactic.axiom.routing.RouteDoc.Param
-
Validates the parameter.
- parameters() - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns the parameters.
- parentId() - Method in record class com.jsgalactic.axiom.observability.TraceContext
-
Returns the value of the
parentIdrecord component. - parse() - Method in class com.jsgalactic.axiom.http.MultipartParser
-
Reads the body to its closing boundary, delivering each complete part to the listener.
- parse(String) - Static method in record class com.jsgalactic.axiom.http.EntityTag
-
Parses one entity tag.
- parse(String) - Static method in record class com.jsgalactic.axiom.observability.TraceContext
-
Parses a
traceparentheader value strictly. - parse(String) - Static method in record class com.jsgalactic.axiom.observability.TraceState
-
Parses a
tracestateheader value strictly. - parse(String) - Static method in class com.jsgalactic.axiom.security.Cookies
-
Parses a
Cookieheader value strictly with the default size limit. - parse(String, int) - Static method in class com.jsgalactic.axiom.security.Cookies
-
Parses a
Cookieheader value strictly. - parse(String, long) - Static method in record class com.jsgalactic.axiom.http.ByteRanges
-
Parses a
Rangefield against a representation of the given length. - parse(String, String) - Static method in record class com.jsgalactic.axiom.observability.TraceContext
-
Parses a
traceparentheader and the accompanyingtracestate. - part(MultipartParser.Part) - Method in interface com.jsgalactic.axiom.http.MultipartParser.Listener
-
Receives one complete part.
- Part(Map<String, String>, String, String, String, long, byte[]) - Constructor for record class com.jsgalactic.axiom.http.MultipartParser.Part
-
Validates and copies the part's values.
- PARTIAL_CONTENT - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
206 Partial Content; carries one range or a multipart/byteranges body.
- patch(String, Handler, Middleware...) - Method in interface com.jsgalactic.axiom.routing.RouteGroup
- patch(String, String, byte[]) - Method in class com.jsgalactic.axiom.test.TestClient
-
Executes a PATCH request with a binary body.
- patch(String, String, String) - Method in class com.jsgalactic.axiom.test.TestClient
-
Executes a PATCH request with a UTF-8 text body.
- path() - Method in interface com.jsgalactic.axiom.context.Context
-
Returns the raw path, without decoding or normalization.
- path() - Method in class com.jsgalactic.axiom.http.Request
-
Returns the request path.
- path() - Method in class com.jsgalactic.axiom.openapi.ui.SwaggerUi
-
Returns the path the UI is served under.
- path() - Method in record class com.jsgalactic.axiom.routing.Route
-
Returns the value of the
pathrecord component. - path(String) - Method in interface com.jsgalactic.axiom.context.Context
-
Reads a raw path capture without percent-decoding or normalization.
- path(String) - Method in class com.jsgalactic.axiom.openapi.ui.SwaggerUi.Builder
-
Sets where the UI is served.
- path(String) - Method in class com.jsgalactic.axiom.security.Sessions.Builder
-
Sets the cookie path (default
/). - path(String) - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns a copy with another
Path. - PATH - Enum constant in enum class com.jsgalactic.axiom.routing.RouteDoc.In
-
A captured path segment, always required.
- pathDecoded(String) - Method in interface com.jsgalactic.axiom.context.Context
-
Reads a path capture with strict, single-pass UTF-8 percent-decoding.
- pathInt(String) - Method in interface com.jsgalactic.axiom.context.Context
-
Reads a raw path capture as an
int, with the rules ofContext.queryInt(String). - pathLong(String) - Method in interface com.jsgalactic.axiom.context.Context
-
Reads a raw path capture as a
long; seeContext.pathInt(String). - pathParam(String, Type, String) - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy documenting a path parameter (a
:nameor*namecapture). - pathParameters() - Method in interface com.jsgalactic.axiom.context.Context
-
Returns all raw captures in template order.
- pathUuid(String) - Method in interface com.jsgalactic.axiom.context.Context
-
Reads a raw path capture as a
UUID, with the rules ofContext.queryUuid(String); seeContext.pathInt(String)for the failure. - pattern() - Method in record class com.jsgalactic.axiom.validation.Constraint
-
Returns the value of the
patternrecord component. - pattern(String) - Static method in class com.jsgalactic.axiom.validation.Rule
- pattern(String, int) - Static method in class com.jsgalactic.axiom.validation.Rule
-
Requires the whole text to match a regular expression.
- PATTERN - Enum constant in enum class com.jsgalactic.axiom.validation.Constraint.Kind
-
The whole text matches
pattern. - pause() - Method in interface com.jsgalactic.axiom.http.BodyReader
-
Asks the transport to stop taking bytes from the connection.
- paused() - Method in interface com.jsgalactic.axiom.http.BodyReader
-
Returns whether delivery is currently paused, whether by the handler or by the transport's water marks.
- PayloadTooLargeException - Exception Class in com.jsgalactic.axiom.error
-
A request body larger than the application's configured limit (413).
- PayloadTooLargeException() - Constructor for exception class com.jsgalactic.axiom.error.PayloadTooLargeException
-
Creates the exception with code
content_too_large. - PayloadTooLargeException(String) - Constructor for exception class com.jsgalactic.axiom.error.PayloadTooLargeException
-
Creates the exception with a specific safe code.
- peerAddress() - Static method in interface com.jsgalactic.axiom.security.RateLimitKey
-
Keys by the transport peer address (
Request.remoteAddress()), ignoring every header. - pem(Path, Path) - Static method in class com.jsgalactic.axiom.lifecycle.TlsOptions
-
Options that serve a PEM certificate chain and private key with every other setting at its default.
- PENDING - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionOutcome
-
The scope is still running.
- PERMANENT_REDIRECT - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
308 Permanent Redirect.
- permissions() - Method in record class com.jsgalactic.axiom.context.SecurityIdentity
-
Returns the value of the
permissionsrecord component. - permissionsClaim(String) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Names the claim holding permissions (
scopeby default). - pieceBytes() - Method in record class com.jsgalactic.axiom.test.StreamBuffering
-
Returns the value of the
pieceBytesrecord component. - ping(byte[]) - Method in interface com.jsgalactic.axiom.websocket.WebSocketSession
-
Sends a ping with an application payload.
- policy(Route) - Method in record class com.jsgalactic.axiom.execution.ExecutionBudget
-
Returns the policy that bounds a route: its override when present, otherwise the aggregate.
- port() - Method in class com.jsgalactic.axiom.application.ManagementOptions
- port() - Method in class com.jsgalactic.axiom.grpc.Grpc
-
Returns the bound port, or the configured port before startup.
- port() - Method in record class com.jsgalactic.axiom.security.ClientOrigin
-
Returns the value of the
portrecord component. - port(int) - Method in class com.jsgalactic.axiom.application.ManagementOptions.Builder
-
Sets the bind port.
- post(String, Handler, Middleware...) - Method in interface com.jsgalactic.axiom.routing.RouteGroup
- post(String, String, byte[]) - Method in class com.jsgalactic.axiom.test.TestClient
-
Executes a POST request with a binary body.
- post(String, String, String) - Method in class com.jsgalactic.axiom.test.TestClient
-
Executes a POST request with a UTF-8 text body, for example raw JSON.
- PRECONDITION_FAILED - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
412 Precondition Failed.
- PRECONDITION_REQUIRED - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
428 Precondition Required.
- PreconditionFailedException - Exception Class in com.jsgalactic.axiom.error
-
A conditional request whose precondition evaluated to false (412).
- PreconditionFailedException() - Constructor for exception class com.jsgalactic.axiom.error.PreconditionFailedException
-
Creates the exception with code
precondition_failed. - PreconditionFailedException(String) - Constructor for exception class com.jsgalactic.axiom.error.PreconditionFailedException
-
Creates the exception with a specific safe code.
- preconditionRequired() - Static method in class com.jsgalactic.axiom.http.HttpPreconditions
-
Returns the opt-in middleware that refuses unsafe methods without a precondition.
- PreconditionRequiredException - Exception Class in com.jsgalactic.axiom.error
-
A request that must be conditional, for example carry If-Match (428).
- PreconditionRequiredException() - Constructor for exception class com.jsgalactic.axiom.error.PreconditionRequiredException
-
Creates the exception with code
precondition_required. - PreconditionRequiredException(String) - Constructor for exception class com.jsgalactic.axiom.error.PreconditionRequiredException
-
Creates the exception with a specific safe code.
- principal() - Method in record class com.jsgalactic.axiom.context.SecurityIdentity
-
Returns the value of the
principalrecord component. - principal(RateLimitKey) - Static method in interface com.jsgalactic.axiom.security.RateLimitKey
-
Keys by the authenticated principal, falling back to another function for anonymous requests.
- privateKey() - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions
- privateKey(Path) - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions.Builder
-
Sets the PEM file holding the private key of the server certificate.
- probeQuery() - Method in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Returns the value of the
probeQueryrecord component. - probeQuery(String) - Method in class com.jsgalactic.axiom.jdbc.Jdbc.Builder
-
Sets the read-only statement used by
Jdbc.healthCheck(). - probeTimeout() - Method in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Returns the value of the
probeTimeoutrecord component. - probeTimeout(Duration) - Method in class com.jsgalactic.axiom.jdbc.Jdbc.Builder
-
Sets the statement timeout of one health probe.
- problem(AxiomException) - Method in interface com.jsgalactic.axiom.context.Context
-
Builds the standard problem response for an exception: its status, the typed headers it carries (
Allow,Retry-After,WWW-Authenticate),application/problem+jsonand a body of only status, code, this request's ID and the violations, exactly what the runtime sends for it when no error handler is registered. - problemStatus(TransactionFailure, int) - Method in class com.jsgalactic.axiom.jta.Jta.Builder
-
Overrides the problem status for one kind of transaction-boundary failure.
- prometheusText() - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry
- prometheusText() - Method in interface com.jsgalactic.axiom.observability.Metrics
-
Optional Prometheus text exposition (format 0.0.4) of this implementation's series.
- PrometheusText - Class in com.jsgalactic.axiom.metrics
-
Renders a
MetricsRegistryin the Prometheus text exposition format, version 0.0.4. - property(String) - Method in class com.jsgalactic.axiom.validation.FieldPath
-
Appends a property segment.
- PS256 - Enum constant in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
RSASSA-PSS with SHA-256, MGF1 with SHA-256 and a 32-byte salt; an RSA public key of at least 2048 bits.
- PS384 - Enum constant in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
RSASSA-PSS with SHA-384, MGF1 with SHA-384 and a 48-byte salt; an RSA public key of at least 2048 bits.
- PS512 - Enum constant in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
RSASSA-PSS with SHA-512, MGF1 with SHA-512 and a 64-byte salt; an RSA public key of at least 2048 bits.
- publicKey(JwsAlgorithm, PublicKey) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Registers a public key used for tokens without a
kid. - publicKey(String, JwsAlgorithm, PublicKey) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Registers a public key for tokens whose
kidis the key ID. - put(String, Handler, Middleware...) - Method in interface com.jsgalactic.axiom.routing.RouteGroup
- put(String, String, byte[]) - Method in class com.jsgalactic.axiom.test.TestClient
-
Executes a PUT request with a binary body.
- put(String, String, String) - Method in class com.jsgalactic.axiom.test.TestClient
-
Executes a PUT request with a UTF-8 text body.
Q
- query() - Method in class com.jsgalactic.axiom.http.Request
-
Returns the raw query.
- query(String) - Method in interface com.jsgalactic.axiom.context.Context
-
Returns the first value of a query parameter, percent-decoded as strict UTF-8 with
+decoded as a space. - query(String) - Method in class com.jsgalactic.axiom.http.Request
-
Returns the first value of a query parameter.
- QUERY - Enum constant in enum class com.jsgalactic.axiom.routing.RouteDoc.In
-
A query string parameter.
- queryAll(String) - Method in interface com.jsgalactic.axiom.context.Context
-
Returns every value of a query parameter in request order, decoded as by
Context.query(String). - queryAll(String) - Method in class com.jsgalactic.axiom.http.Request
-
Returns every value of a query parameter in request order, decoded as by
Request.query(String). - queryInt(String) - Method in interface com.jsgalactic.axiom.context.Context
-
Returns the first value of a query parameter as an
int. - queryLong(String) - Method in interface com.jsgalactic.axiom.context.Context
-
Returns the first value of a query parameter as a
long, with the rules and the failure ofContext.queryInt(String). - queryParam(String, Type, String, boolean) - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy documenting a query parameter.
- queryUuid(String) - Method in interface com.jsgalactic.axiom.context.Context
-
Returns the first value of a query parameter as a
UUID. - queued() - Method in record class com.jsgalactic.axiom.execution.AdmissionSnapshot
-
Returns the value of the
queuedrecord component. - queueTimeout() - Method in record class com.jsgalactic.axiom.execution.AdmissionPolicy
-
Returns the value of the
queueTimeoutrecord component. - queueTimeouts() - Method in record class com.jsgalactic.axiom.execution.AdmissionSnapshot
-
Returns the value of the
queueTimeoutsrecord component.
R
- random(SecureRandom) - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Sets the source of randomness, for tests.
- random(SecureRandom) - Method in class com.jsgalactic.axiom.security.Sessions.Builder
-
Sets the source of identifiers; for tests that need determinism.
- range(long, long) - Static method in class com.jsgalactic.axiom.validation.Rule
-
Requires a number between
minandmax, inclusive; NaN fails. - RANGE - Enum constant in enum class com.jsgalactic.axiom.validation.Constraint.Kind
-
A number is between
minandmax. - RANGE_NOT_SATISFIABLE - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
416 Range Not Satisfiable; carries Content-Range with an asterisk.
- ranges() - Method in record class com.jsgalactic.axiom.http.ByteRanges
-
Returns the value of the
rangesrecord component. - RateLimit - Class in com.jsgalactic.axiom.security
-
Rate limiting middleware: at most a number of requests per window for each key, with memory that stays bounded however many distinct keys arrive.
- RateLimit.Algorithm - Enum Class in com.jsgalactic.axiom.security
-
The counting algorithm.
- RateLimit.Builder - Class in com.jsgalactic.axiom.security
-
Builds
RateLimits; not thread-safe, used during configuration. - RateLimit.Decision - Record Class in com.jsgalactic.axiom.security
-
The outcome of counting one request.
- RateLimitKey - Interface in com.jsgalactic.axiom.security
-
Chooses the key a request is counted under by
RateLimit: one budget per distinct key. - read(byte[]) - Method in interface com.jsgalactic.axiom.http.BodyReader
-
Copies up to the array's length into it.
- read(byte[], int, int) - Method in interface com.jsgalactic.axiom.http.BodyReader
-
Copies up to
lengthbytes into the array, blocking until a byte is available or the body ends. - readAll() - Method in class com.jsgalactic.axiom.test.StreamedResponse
-
Reads the rest of the body, which makes sense for a body that ends.
- readAllText() - Method in class com.jsgalactic.axiom.test.StreamedResponse
-
Reads the rest of the body as UTF-8 text.
- readiness() - Method in class com.jsgalactic.axiom.observability.Health
-
Evaluates readiness: DOWN without running checks when draining or when the application is not running, otherwise the readiness checks.
- readiness(Health.Builder) - Method in class com.jsgalactic.axiom.grpc.Grpc.Builder
-
Adds a readiness check named
grpcto an Axiom health builder. - readiness(Health.Builder) - Method in class com.jsgalactic.axiom.jdbc.Jdbc.Builder
-
Adds a readiness check named
databaseto a health builder that has not been built yet. - readiness(String, HealthCheck) - Method in class com.jsgalactic.axiom.observability.Health.Builder
-
Adds a check that decides whether the instance should receive traffic.
- readiness(String, HealthCheck, Duration) - Method in class com.jsgalactic.axiom.observability.Health.Builder
-
Adds a readiness check with its own timeout.
- reading(ForwardedHeaders) - Method in class com.jsgalactic.axiom.security.TrustedProxies
-
Returns a copy that reads the given header family instead of the default
ForwardedHeaders.X_FORWARDED. - readOnly() - Method in class com.jsgalactic.axiom.jpa.Jpa.Builder
-
Makes
Jpa.transaction()use read-only semantics: deferred flushing and a rollback when the chain returns. - readOnlyTransaction() - Method in class com.jsgalactic.axiom.jpa.Jpa
-
Returns middleware that gives each request its own EntityManager in read-only mode.
- READY_PATH - Static variable in class com.jsgalactic.axiom.observability.Health
-
Path of the readiness route.
- realm(String) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Sets the realm of the
WWW-Authenticatechallenge (apiby default). - reason() - Method in exception class com.jsgalactic.axiom.http.BodyReadException
-
Returns the reason.
- reason() - Method in exception class com.jsgalactic.axiom.http.StreamAbortedException
-
Returns why the stream was aborted.
- reasonPhrase(int) - Static method in class com.jsgalactic.axiom.http.HttpStatus
-
Returns the RFC 9110 reason phrase for a status listed in this class, or a generic phrase for its class (for example "Client Error") otherwise.
- recognizeMethods(String...) - Method in interface com.jsgalactic.axiom.application.Application
-
Declares methods this application recognizes although no route has them, before startup.
- record(long) - Method in interface com.jsgalactic.axiom.observability.Metrics.Timer
-
Records one observation.
- redact(Map<String, String>) - Method in class com.jsgalactic.axiom.security.HeaderRedaction
-
Returns a copy of the headers with sensitive values replaced by "[redacted]".
- REDACTED - Static variable in class com.jsgalactic.axiom.security.HeaderRedaction
-
The value that replaces a sensitive header value.
- redirect(int, String) - Method in interface com.jsgalactic.axiom.context.Context
-
Returns a redirect without a body.
- redirect(int, String) - Static method in class com.jsgalactic.axiom.http.Response
-
Creates a redirect without a body.
- refreshInterval(Duration) - Method in class com.jsgalactic.axiom.security.jwt.JwksOptions
-
Sets the age after which the next token triggers a refetch.
- refreshKeys() - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator
-
Fetches the configured key set now, regardless of the refresh schedule and rate limit, for example at startup to fail fast on a misconfigured URL.
- register() - Method in class com.jsgalactic.axiom.jdbc.Jdbc.Builder
-
Builds the gate and registers its middleware globally.
- register() - Method in class com.jsgalactic.axiom.jdbc.Jdbc
-
Registers this gate as global application middleware.
- register(Application, Middleware...) - Method in class com.jsgalactic.axiom.openapi.ui.SwaggerUi
-
Registers the UI routes.
- register(Application, String, Middleware...) - Method in class com.jsgalactic.axiom.graphql.GraphQl
-
Registers POST, and GET when enabled, on one path.
- register(RouteGroup, Middleware...) - Method in class com.jsgalactic.axiom.observability.Health
-
Registers
GET /health/startup,GET /health/liveandGET /health/readyon an application or group (under its prefix). - reject(int) - Static method in record class com.jsgalactic.axiom.execution.AdmissionPolicy
-
Configures immediate rejection when the active limit is occupied.
- reject(int) - Static method in record class com.jsgalactic.axiom.execution.StreamPolicy
-
Configures immediate refusal when the active limit is occupied.
- rejected() - Method in record class com.jsgalactic.axiom.execution.AdmissionSnapshot
-
Returns the value of the
rejectedrecord component. - rejected(int, String, String) - Method in interface com.jsgalactic.axiom.lifecycle.RejectionObserver
-
Called for one rejection.
- REJECTION_CODE - Static variable in class com.jsgalactic.axiom.jdbc.Jdbc
-
Problem code and bounded rejection reason used when a permit is unavailable.
- rejectionObserver() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- rejectionObserver(RejectionObserver) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets an observer called for each error response the listener generates itself, such as 413, 431 or 503, for metrics and logging.
- RejectionObserver - Interface in com.jsgalactic.axiom.lifecycle
-
Observes the error responses an HTTP listener generates itself, for metrics and logging.
- reloadInterval() - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions
- reloadInterval(Duration) - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions.Builder
-
Checks the key files for changes at this interval and reloads them when one changed, as
Server.reloadTls()does. - reloadTls() - Method in interface com.jsgalactic.axiom.lifecycle.Server
-
Re-reads the TLS key material and swaps it in atomically for connections accepted from now on; connections that are open keep the material they negotiated with.
- remaining() - Method in record class com.jsgalactic.axiom.security.RateLimit.Decision
-
Returns the value of the
remainingrecord component. - remainingTime() - Method in class com.jsgalactic.axiom.execution.ExecutionContext
-
Returns the remaining budget, clamped at zero after expiry.
- remainingTime() - Method in class com.jsgalactic.axiom.grpc.GrpcCall
-
Returns the time left before the call's deadline, clamped at zero.
- remoteAddress() - Method in class com.jsgalactic.axiom.http.Request
-
Returns the transport peer.
- remoteAddress() - Method in interface com.jsgalactic.axiom.websocket.WebSocketSession
-
Returns the remote socket address when the transport has one.
- remove(String) - Method in class com.jsgalactic.axiom.security.InMemorySessionStore
- remove(String) - Method in interface com.jsgalactic.axiom.security.SessionStore
-
Deletes a session; unknown identifiers are ignored.
- removeAttribute(String) - Method in class com.jsgalactic.axiom.security.Session
-
Removes an attribute; applied when the request completes.
- rename(String, String) - Method in class com.jsgalactic.axiom.security.InMemorySessionStore
- rename(String, String) - Method in interface com.jsgalactic.axiom.security.SessionStore
-
Atomically gives a live session a new identifier; the old one stops working at once.
- render(Application) - Method in class com.jsgalactic.axiom.openapi.OpenApi
-
Renders the OpenAPI 3.1 document of the application's current routes.
- render(MetricsRegistry) - Static method in class com.jsgalactic.axiom.metrics.PrometheusText
-
Renders every series of a registry.
- renderSwagger(Application) - Method in class com.jsgalactic.axiom.openapi.OpenApi
-
Renders the Swagger 2.0 document of the application's current routes.
- Reply(int, String, Type, List<String>) - Constructor for record class com.jsgalactic.axiom.routing.RouteDoc.Reply
-
Validates and copies the response description.
- Report(Health.Status, Map<String, Health.Status>) - Constructor for record class com.jsgalactic.axiom.observability.Health.Report
-
Copies the checks.
- representationLength() - Method in class com.jsgalactic.axiom.http.Response
-
Returns the known total length of a sliced stream, or null for any other response.
- request() - Method in interface com.jsgalactic.axiom.context.Context
-
Returns the immutable request metadata.
- request() - Method in interface com.jsgalactic.axiom.websocket.WebSocketSession
-
Returns the immutable handshake request.
- Request - Class in com.jsgalactic.axiom.http
-
Immutable metadata for an in-memory HTTP request.
- Request(String, String) - Constructor for class com.jsgalactic.axiom.http.Request
-
Creates a request without headers or body, validating the path as described by the canonical constructor.
- Request(String, String, String, Map<String, String>, Body) - Constructor for class com.jsgalactic.axiom.http.Request
-
Creates a request without a known remote address, validating it as described by the canonical constructor.
- Request(String, String, String, Map<String, String>, Body, InetSocketAddress) - Constructor for class com.jsgalactic.axiom.http.Request
-
Creates a request received over a plain connection, validating it as described by the canonical constructor.
- Request(String, String, String, Map<String, String>, Body, InetSocketAddress, boolean) - Constructor for class com.jsgalactic.axiom.http.Request
-
Creates and validates the request.
- Request(String, String, Map<String, String>, Body) - Constructor for class com.jsgalactic.axiom.http.Request
-
Creates a request without a query, validating it as described by the canonical constructor.
- REQUEST_HEADER_FIELDS_TOO_LARGE - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
431 Request Header Fields Too Large.
- REQUEST_TIMEOUT - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
408 Request Timeout.
- requestBody() - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns the request body.
- requestBody(Type) - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy documenting a JSON request body.
- requestBody(Type, String...) - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy documenting the request body, replacing an earlier one.
- RequestHeaderFieldsTooLargeException - Exception Class in com.jsgalactic.axiom.error
-
A request whose header section is too large (431).
- RequestHeaderFieldsTooLargeException() - Constructor for exception class com.jsgalactic.axiom.error.RequestHeaderFieldsTooLargeException
-
Creates the exception with code
request_header_fields_too_large. - RequestHeaderFieldsTooLargeException(String) - Constructor for exception class com.jsgalactic.axiom.error.RequestHeaderFieldsTooLargeException
-
Creates the exception with a specific safe code.
- requestId() - Method in class com.jsgalactic.axiom.execution.ExecutionContext
-
Returns a framework-generated identity; client headers cannot choose it.
- requestTimeout() - Method in interface com.jsgalactic.axiom.application.Application
-
Returns the configured execution budget.
- requestTimeout(Duration) - Method in interface com.jsgalactic.axiom.application.Application
-
Sets the request execution budget before startup.
- RequestTimeoutException - Exception Class in com.jsgalactic.axiom.error
-
A request that was not received in time (408).
- RequestTimeoutException() - Constructor for exception class com.jsgalactic.axiom.error.RequestTimeoutException
-
Creates the exception with code
request_timeout. - RequestTimeoutException(String) - Constructor for exception class com.jsgalactic.axiom.error.RequestTimeoutException
-
Creates the exception with a specific safe code.
- require(Validator<? super T>, T) - Static method in class com.jsgalactic.axiom.validation.Validation
-
Checks a value and returns it when valid.
- require(String, Validator<? super T>, T) - Static method in class com.jsgalactic.axiom.validation.Validation
-
Checks one request parameter or header value and prefixes each violation's field path with the parameter name.
- requireClientCertificates() - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions.Builder
-
Turns on mutual TLS for an
SSL contextwhose trust managers decide which client certificates are accepted. - requireClientCertificates(Path) - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions.Builder
-
Turns on mutual TLS for PEM key material: clients must present a certificate that chains to one of the certificates in the file, or the handshake fails.
- required() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Param
-
Returns the value of the
requiredrecord component. - REQUIRED - Enum constant in enum class com.jsgalactic.axiom.lifecycle.TlsOptions.ClientAuth
-
The client must present a trusted certificate or the handshake fails.
- reset() - Method in record class com.jsgalactic.axiom.security.RateLimit.Decision
-
Returns the value of the
resetrecord component. - RESET_CONTENT - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
205 Reset Content; never carries a body.
- resolve(Request) - Method in interface com.jsgalactic.axiom.application.Application
-
Resolves a route identity without executing user code.
- resolve(Request) - Method in class com.jsgalactic.axiom.security.TrustedProxies
-
Decides the request's client address and scheme by the rules above.
- response(int, String) - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy documenting a response without a body.
- response(int, String, Type) - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy documenting a JSON response body.
- response(int, String, Type, String...) - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy documenting a response body.
- response(Object) - Method in interface com.jsgalactic.axiom.context.Context
-
Maps a body using the current status (200 by default).
- Response - Class in com.jsgalactic.axiom.http
-
A response value before wire encoding.
- RESPONSE_HEADER - Static variable in record class com.jsgalactic.axiom.observability.TraceContext
-
The response header written by
TraceContext.responseHeader(). - responseHeader() - Static method in record class com.jsgalactic.axiom.observability.TraceContext
-
Returns a middleware that, for requests with a valid
traceparent, adds atraceresponseheader to the response: the same format astraceparent, with the caller's trace id and flags and a new span id for this service, so a client can find its request in the server's logs. - responses() - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns the responses.
- responseTimeout() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- responseTimeout(Duration) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets how long writing one response may take, from handing it to the socket until the operating system has accepted its last byte; a slower reader loses the connection.
- resume() - Method in interface com.jsgalactic.axiom.http.BodyReader
-
Asks the transport to take bytes again.
- RESUME - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionFailure
-
Resuming the previously associated transaction failed.
- retry() - Method in class com.jsgalactic.axiom.http.ServerSentEvent
-
Returns the reconnection delay.
- retryAfter() - Method in record class com.jsgalactic.axiom.security.RateLimit.Decision
-
Returns the value of the
retryAfterrecord component. - roles() - Method in record class com.jsgalactic.axiom.context.SecurityIdentity
-
Returns the value of the
rolesrecord component. - rolesClaim(String) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Names the claim holding roles (
rolesby default). - ROLLBACK - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionFailure
-
Rolling the transaction back failed.
- rollbackOn(Class<? extends Throwable>) - Method in class com.jsgalactic.axiom.jta.Jta.Builder
-
Adds a rule that rolls back when the chain throws a throwable of this type.
- rollbackOn(Class<? extends Throwable>...) - Method in class com.jsgalactic.axiom.jpa.Jpa.Builder
-
Adds exception types that must roll back.
- rollbackOnly() - Method in class com.jsgalactic.axiom.jta.TransactionContext
-
Reports whether the innermost transaction has been marked for rollback, either by
TransactionContext.setRollbackOnly()or by the provider. - rollbackOnly(Object) - Method in class com.jsgalactic.axiom.jta.Jta
- rollbackOnly(Object) - Method in class com.jsgalactic.axiom.jta.JtaLookupService
- rollbackOnly(Object) - Method in interface com.jsgalactic.axiom.jta.spi.JtaTransactionLookup
-
Reports whether the request's active transaction has been marked rollback-only.
- rollbackWhen(Predicate<Throwable>) - Method in class com.jsgalactic.axiom.jta.Jta.Builder
-
Adds a predicate-based rollback rule; a later matching rule wins, as with
Jta.Builder.rollbackOn(Class). - ROLLED_BACK - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionOutcome
-
The scope's transaction was rolled back, including when rollback-only was set.
- ROLLED_BACK - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionStatus
-
The associated transaction completed with a rollback.
- root() - Static method in class com.jsgalactic.axiom.validation.FieldPath
-
Returns the empty path of the validated value itself.
- ROOT - Static variable in class com.jsgalactic.axiom.validation.FieldPath
-
Field reported for violations of the whole value: the empty string.
- rotate() - Method in class com.jsgalactic.axiom.security.Session
-
Rotates the identifier when the request completes, keeping the data.
- route() - Method in interface com.jsgalactic.axiom.context.Context
-
Returns the matched route identity, including its template rather than request values.
- route(String, String, Handler, Middleware...) - Method in interface com.jsgalactic.axiom.application.Application
-
Registers a method/path template with optional route-level middleware.
- route(String, String, Handler, Middleware...) - Method in interface com.jsgalactic.axiom.routing.RouteGroup
-
Registers a route in this scope.
- Route - Record Class in com.jsgalactic.axiom.routing
-
Stable route identity, independent of request values or handler instances.
- Route(String, String) - Constructor for record class com.jsgalactic.axiom.routing.Route
-
Validates the method, path, and capture names without normalizing the template.
- RouteDoc - Class in com.jsgalactic.axiom.routing
-
Optional, immutable documentation of one route: what it is for, which parameters, request body and responses it has, and which security requirements apply.
- RouteDoc.Body - Record Class in com.jsgalactic.axiom.routing
-
A documented request body.
- RouteDoc.In - Enum Class in com.jsgalactic.axiom.routing
-
Where a parameter is read from.
- RouteDoc.Param - Record Class in com.jsgalactic.axiom.routing
-
A documented parameter.
- RouteDoc.Reply - Record Class in com.jsgalactic.axiom.routing
-
A documented response.
- RouteGroup - Interface in com.jsgalactic.axiom.routing
-
Registers routes and middleware for a scope: the whole application, or a group of routes under a path prefix created with
RouteGroup.group(String, Consumer). - routeLimit(Route, int) - Method in class com.jsgalactic.axiom.jdbc.Jdbc.Builder
-
Caps one route independently of the aggregate.
- routeLimits() - Method in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Returns the value of the
routeLimitsrecord component. - routePolicies() - Method in record class com.jsgalactic.axiom.execution.ExecutionBudget
-
Returns the value of the
routePoliciesrecord component. - routes() - Method in interface com.jsgalactic.axiom.application.Application
-
Returns an immutable snapshot in registration order.
- RS256 - Enum constant in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
RSASSA-PKCS1-v1_5 with SHA-256; an RSA public key of at least 2048 bits.
- RS384 - Enum constant in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
RSASSA-PKCS1-v1_5 with SHA-384; an RSA public key of at least 2048 bits.
- RS512 - Enum constant in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
RSASSA-PKCS1-v1_5 with SHA-512; an RSA public key of at least 2048 bits.
- Rule<T> - Class in com.jsgalactic.axiom.validation
-
An immutable check of one value with a fixed violation code.
- rules(Class<T>, Rules<T>) - Method in class com.jsgalactic.axiom.openapi.OpenApi.Builder
-
Maps the built-in rules of a rule set to schema constraints on
type's properties: not-null becomes required, length and size become min/max length and items, min/max/range become minimum and maximum, pattern, e-mail and one-of becomepattern,format: emailandenum. - Rules<T> - Class in com.jsgalactic.axiom.validation
-
An immutable, annotation-free validator built from field rules.
- run() - Method in interface com.jsgalactic.axiom.context.Middleware.Next
-
Runs the remaining middleware and the handler.
- run(EventSink) - Method in interface com.jsgalactic.axiom.http.EventStreamBody
-
Sends the events.
- RUNNING - Enum constant in enum class com.jsgalactic.axiom.application.Application.State
-
Routes are frozen and requests may execute.
S
- sameSite(SetCookie.SameSite) - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Sets
SameSiteon the double-submit cookie (default Lax). - sameSite(SetCookie.SameSite) - Method in class com.jsgalactic.axiom.security.Sessions.Builder
-
Sets
SameSite(Lax by default). - sameSite(SetCookie.SameSite) - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns a copy with another
SameSiteattribute. - sampled() - Method in record class com.jsgalactic.axiom.observability.TraceContext
-
Reports whether the caller recorded this trace.
- schema(String) - Method in class com.jsgalactic.axiom.graphql.GraphQl.Builder
-
Sets the SDL schema.
- schemaName(Class<?>, String) - Method in class com.jsgalactic.axiom.openapi.OpenApi.Builder
-
Names the schema of a record, bean or enum, instead of its simple class name.
- scheme() - Method in class com.jsgalactic.axiom.http.Request
-
Returns the scheme of the transport connection.
- scheme() - Method in record class com.jsgalactic.axiom.security.ClientOrigin
-
Returns the value of the
schemerecord component. - SCOPE_NAME - Static variable in class com.jsgalactic.axiom.otel.Tracing
-
Instrumentation scope name of every tracer and meter this module creates.
- secure() - Method in record class com.jsgalactic.axiom.security.ClientOrigin
-
Reports whether the client used HTTPS.
- secure(boolean) - Method in class com.jsgalactic.axiom.security.Csrf.Builder
-
Sets
Secureon the double-submit cookie (default on; off only for local development). - secure(boolean) - Method in class com.jsgalactic.axiom.security.Sessions.Builder
-
Sets the
Secureattribute (on by default). - secure(boolean) - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns a copy with the
Secureattribute set or cleared. - security() - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns the security scheme names.
- security(String...) - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy with security requirements, appended in order.
- Security - Class in com.jsgalactic.axiom.security
-
Authentication and authorization policies as
Middleware, bound to oneAuthenticator. - SecurityHeaders - Class in com.jsgalactic.axiom.security
-
Middleware that adds secure default response headers for an HTTP API.
- SecurityIdentity - Record Class in com.jsgalactic.axiom.context
-
The authenticated caller of one request: a principal name with the roles and permissions it was granted.
- SecurityIdentity(String, Set<String>, Set<String>) - Constructor for record class com.jsgalactic.axiom.context.SecurityIdentity
-
Creates an identity with grants and no attributes.
- SecurityIdentity(String, Set<String>, Set<String>, Map<String, String>) - Constructor for record class com.jsgalactic.axiom.context.SecurityIdentity
-
Validates and copies the identity.
- securityScheme(String, SecurityScheme) - Method in class com.jsgalactic.axiom.openapi.OpenApi.Builder
-
Defines a security scheme that routes can require by
name. - SecurityScheme - Class in com.jsgalactic.axiom.openapi
-
A security scheme that routes can require by name (see
RouteDoc.security(String...)). - SEE_OTHER - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
303 See Other.
- send(ServerSentEvent) - Method in interface com.jsgalactic.axiom.http.EventSink
-
Sends an event.
- send(WebSocketMessage) - Method in interface com.jsgalactic.axiom.websocket.WebSocketSession
-
Sends a text or binary message, preserving its kind.
- send(String) - Method in interface com.jsgalactic.axiom.http.EventSink
-
Sends an event that has only data.
- sendBinary(byte[]) - Method in interface com.jsgalactic.axiom.websocket.WebSocketSession
-
Sends a binary message from a copy of the supplied bytes.
- sendText(String) - Method in interface com.jsgalactic.axiom.websocket.WebSocketSession
-
Sends a text message.
- seriesCount() - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Returns how many distinct series are stored.
- serve(Application, String, Middleware...) - Method in class com.jsgalactic.axiom.openapi.OpenApi
-
Renders the OpenAPI 3.1 document now and registers a GET route that serves it.
- server(String, String) - Method in class com.jsgalactic.axiom.openapi.OpenApi.Builder
-
Adds a server the API is reachable at.
- Server - Interface in com.jsgalactic.axiom.lifecycle
-
An application-owned listener.
- ServerSentEvent - Class in com.jsgalactic.axiom.http
-
One event of a server-sent event stream (see
Response.sse(com.jsgalactic.axiom.http.EventStreamBody)). - serveSwagger(Application, String, Middleware...) - Method in class com.jsgalactic.axiom.openapi.OpenApi
-
Like
OpenApi.serve(com.jsgalactic.axiom.application.Application, java.lang.String, com.jsgalactic.axiom.context.Middleware...)for the Swagger 2.0 document. - service(BindableService) - Method in class com.jsgalactic.axiom.grpc.Grpc.Builder
-
Registers a generated service.
- SERVICE_UNAVAILABLE - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
503 Service Unavailable.
- ServiceUnavailableException - Exception Class in com.jsgalactic.axiom.error
-
A server that is temporarily unable to handle the request (503).
- ServiceUnavailableException() - Constructor for exception class com.jsgalactic.axiom.error.ServiceUnavailableException
-
Creates the exception with code
service_unavailableand no Retry-After header. - ServiceUnavailableException(Duration) - Constructor for exception class com.jsgalactic.axiom.error.ServiceUnavailableException
-
Creates the exception with a Retry-After delay.
- ServiceUnavailableException(Duration, String) - Constructor for exception class com.jsgalactic.axiom.error.ServiceUnavailableException
-
Creates the exception with a Retry-After delay and a specific safe code.
- session(Context) - Method in class com.jsgalactic.axiom.security.Sessions
-
Returns the session of the request the context belongs to.
- Session - Class in com.jsgalactic.axiom.security
-
One request's view of its session, from
Sessions.session(com.jsgalactic.axiom.context.Context). - SessionAuthenticator - Class in com.jsgalactic.axiom.security
-
An
Authenticatorthat reads the identity from the request's session, so the policies ofSecuritywork for cookie-authenticated browsers exactly as for bearer tokens. - Sessions - Class in com.jsgalactic.axiom.security
-
Server-side sessions as middleware: a cookie carries a random secret identifier, a
SessionStoreholds everything else. - Sessions.Builder - Class in com.jsgalactic.axiom.security
-
Builds
Sessions; used during configuration, not thread-safe. - SessionState - Record Class in com.jsgalactic.axiom.security
-
The data a
SessionStorekeeps for one session: who is signed in, application attributes and two timestamps. - SessionState(Optional<SecurityIdentity>, Map<String, String>, Instant, Instant) - Constructor for record class com.jsgalactic.axiom.security.SessionState
-
Validates and copies the components.
- SessionStore - Interface in com.jsgalactic.axiom.security
-
Where
Sessionskeep session data, keyed by the secret session identifier. - SetCookie - Class in com.jsgalactic.axiom.security
-
A
Set-Cookieheader with secure defaults, validated when it is created. - SetCookie.SameSite - Enum Class in com.jsgalactic.axiom.security
-
The
SameSiteattribute. - setLoginTimeout(int) - Method in class com.jsgalactic.axiom.jdbc.JdbcDataSource
-
Sets the delegate's login timeout.
- setLogWriter(PrintWriter) - Method in class com.jsgalactic.axiom.jdbc.JdbcDataSource
-
Sets the delegate's log writer.
- setRollbackOnly() - Method in class com.jsgalactic.axiom.jta.TransactionContext
-
Marks the innermost transaction rollback-only.
- SHUTDOWN - Enum constant in enum class com.jsgalactic.axiom.http.StreamAbortedException.Reason
-
The server is shutting down or the request was cancelled.
- SHUTDOWN - Enum constant in enum class com.jsgalactic.axiom.http.StreamOutcome.Kind
-
The listener was closing and the grace period ran out, or the request was cancelled.
- shutdownGrace() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- shutdownGrace(Duration) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets how long closing the listener lets running exchanges finish.
- shutdownLingerTimeout() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- shutdownLingerTimeout(Duration) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets the total linger bound once the listener is closing (the smaller of this and
ListenerOptions.Builder.lingerTimeoutapplies). - shutdownRequested() - Method in interface com.jsgalactic.axiom.http.BodyWriter
-
Reports whether the listener has started to shut down.
- shutdownRequested() - Method in interface com.jsgalactic.axiom.http.EventSink
-
Reports whether the listener has started to shut down; see
BodyWriter.shutdownRequested(). - size() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Part
-
Returns the value of the
sizerecord component. - size() - Method in class com.jsgalactic.axiom.security.InMemorySessionStore
-
Returns the number of sessions held, expired ones included until they are noticed.
- size(int, int) - Static method in class com.jsgalactic.axiom.validation.Rule
-
Bounds the number of elements in a collection, inclusive.
- SIZE - Enum constant in enum class com.jsgalactic.axiom.validation.Constraint.Kind
-
Collection size is between
minandmax. - SLIDING_WINDOW - Enum constant in enum class com.jsgalactic.axiom.security.RateLimit.Algorithm
-
Weighted count over the current and previous window; smooths boundary bursts.
- spec(String, String) - Method in class com.jsgalactic.axiom.openapi.ui.SwaggerUi.Builder
-
Adds a document the UI can display.
- sse(long, EventStreamBody) - Static method in class com.jsgalactic.axiom.http.Response
-
Creates a server-sent event stream: a streamed 200 response of type
text/event-streamfor browsers'EventSource. - sse(EventStreamBody) - Static method in class com.jsgalactic.axiom.http.Response
-
Creates a server-sent event stream with the default byte cap.
- sslContext() - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions
- sslContext(Supplier<SSLContext>) - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions.Builder
-
Takes the key material from an
SSLContext, an alternative to the PEM files. - stallTimeout() - Method in record class com.jsgalactic.axiom.test.StreamBuffering
-
Returns the value of the
stallTimeoutrecord component. - start() - Method in interface com.jsgalactic.axiom.application.Application
-
Compiles routes, freezes registration, and enables in-memory execution without a listener.
- start() - Method in class com.jsgalactic.axiom.grpc.Grpc
-
Starts the server and binds its listener.
- start(Application) - Static method in class com.jsgalactic.axiom.test.TestClient
-
Freezes registration and takes responsibility for closing the application.
- start(Application, StreamBuffering) - Static method in class com.jsgalactic.axiom.test.TestClient
-
Freezes registration and takes responsibility for closing the application, with streamed responses (see
TestClient.stream(com.jsgalactic.axiom.http.Request)) buffered like a connection instead of handed over one write at a time. - startMappingFailures(Application) - Static method in class com.jsgalactic.axiom.test.TestClient
-
Like
TestClient.start(com.jsgalactic.axiom.application.Application), but answers a handler failure the way the HTTP listener does, so a test sees what a client would. - startup() - Method in class com.jsgalactic.axiom.observability.Health
-
Evaluates the startup probe: UP once the application is running and every startup check passes, and UP from then on without running the checks again.
- startup(String, HealthCheck) - Method in class com.jsgalactic.axiom.observability.Health.Builder
-
Adds a check that must pass once before the instance counts as started, such as a cache warm-up or a completed migration.
- startup(String, HealthCheck, Duration) - Method in class com.jsgalactic.axiom.observability.Health.Builder
-
Adds a startup check with its own timeout.
- STARTUP_PATH - Static variable in class com.jsgalactic.axiom.observability.Health
-
Path of the startup route.
- state() - Method in interface com.jsgalactic.axiom.application.Application
-
Returns the current lifecycle state.
- StaticFiles - Class in com.jsgalactic.axiom.http
-
Opt-in static file serving as an ordinary handler, with no dependency beyond the JDK.
- StaticFiles.Builder - Class in com.jsgalactic.axiom.http
-
Collects the immutable handler's configuration.
- status() - Method in exception class com.jsgalactic.axiom.error.AxiomException
-
Returns the response status.
- status() - Method in class com.jsgalactic.axiom.http.Response
-
Returns final HTTP status.
- status() - Method in class com.jsgalactic.axiom.jta.TransactionContext
-
Returns the status of the innermost transaction, or the status left by the last completed one.
- status() - Method in record class com.jsgalactic.axiom.observability.Health.Report
-
Returns the value of the
statusrecord component. - status() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Reply
-
Returns the value of the
statusrecord component. - status() - Method in class com.jsgalactic.axiom.test.StreamedResponse
-
Returns the status of the response head.
- status(int) - Method in interface com.jsgalactic.axiom.context.Context
-
Sets the status for subsequent response mapping.
- status(Object) - Method in class com.jsgalactic.axiom.jta.Jta
- status(Object) - Method in class com.jsgalactic.axiom.jta.JtaLookupService
- status(Object) - Method in interface com.jsgalactic.axiom.jta.spi.JtaTransactionLookup
-
Returns the request's transaction status as a plain name:
ACTIVE,MARKED_ROLLBACK,COMMITTED,ROLLED_BACK,INACTIVEorUNKNOWN. - stop() - Method in class com.jsgalactic.axiom.grpc.Grpc
-
Begins a graceful drain and waits for it to finish.
- stream(int, String, long, StreamBody) - Static method in class com.jsgalactic.axiom.http.Response
-
Creates a streamed response.
- stream(int, String, StreamBody) - Static method in class com.jsgalactic.axiom.http.Response
-
Creates a streamed response with the default byte cap.
- stream(Request) - Method in class com.jsgalactic.axiom.test.TestClient
-
Executes a request and returns as soon as the response head is known, so that a streamed body (see
Response.streamandResponse.sse) can be read piece by piece withStreamedResponse.next()while the handler is still writing it. - stream(Request, BodyReader) - Method in class com.jsgalactic.axiom.test.TestClient
-
Like
TestClient.stream(Request), with the request body handed to the handler incrementally throughreader. - StreamAbortedException - Exception Class in com.jsgalactic.axiom.http
-
Thrown by a
BodyWriterwhen a streamed response can no longer be written. - StreamAbortedException(StreamAbortedException.Reason) - Constructor for exception class com.jsgalactic.axiom.http.StreamAbortedException
-
Creates the exception.
- StreamAbortedException.Reason - Enum Class in com.jsgalactic.axiom.http
-
Why a stream was aborted.
- streamBody() - Method in class com.jsgalactic.axiom.http.Response
-
Returns the body writer of a streamed response.
- StreamBody - Interface in com.jsgalactic.axiom.http
-
Produces a streamed response body (see
Response.stream(int, java.lang.String, com.jsgalactic.axiom.http.StreamBody)). - StreamBuffering - Record Class in com.jsgalactic.axiom.test
-
How
TestClient.stream(com.jsgalactic.axiom.http.Request)models the buffering between a handler's writes and the client's reads. - StreamBuffering(int, int, int, Duration) - Constructor for record class com.jsgalactic.axiom.test.StreamBuffering
-
Creates a buffering model.
- StreamedResponse - Class in com.jsgalactic.axiom.test
-
A response whose body is read piece by piece, returned by
TestClient.stream(com.jsgalactic.axiom.http.Request). - streamEndObserver() - Method in class com.jsgalactic.axiom.http.Response
-
Returns the observer that tells every observer added with
Response.onStreamEnd(java.util.function.Consumer<com.jsgalactic.axiom.http.StreamOutcome>)how the body ended. - StreamingHandler - Interface in com.jsgalactic.axiom.context
-
Marks a handler that reads its request body incrementally through
Context.bodyReader(). - streamLifetime() - Method in class com.jsgalactic.axiom.http.Response
-
Returns the longest time a streamed response may run once its head is sent.
- streamLimit() - Method in class com.jsgalactic.axiom.http.Response
-
Returns the byte cap of a streamed response.
- StreamOutcome - Record Class in com.jsgalactic.axiom.http
-
How a streamed response body ended, given to the observers registered with
Response.onStreamEnd(java.util.function.Consumer<com.jsgalactic.axiom.http.StreamOutcome>). - StreamOutcome(StreamOutcome.Kind, long, Duration, Throwable) - Constructor for record class com.jsgalactic.axiom.http.StreamOutcome
-
Creates an outcome.
- StreamOutcome.Kind - Enum Class in com.jsgalactic.axiom.http
-
How a stream ended.
- streamPolicy() - Method in interface com.jsgalactic.axiom.application.Application
-
Returns the aggregate stream bound.
- streamPolicy(StreamPolicy) - Method in interface com.jsgalactic.axiom.application.Application
-
Sets the aggregate bound on active streams for each listener before startup.
- streamPolicy(Route) - Method in interface com.jsgalactic.axiom.application.Application
-
Returns a registered route's stream override, or the default policy.
- streamPolicy(Route, StreamPolicy) - Method in interface com.jsgalactic.axiom.application.Application
-
Sets the bound on active streams for one registered route before startup.
- StreamPolicy - Record Class in com.jsgalactic.axiom.execution
-
Immutable bound on the streams that may run at the same time.
- StreamPolicy(int) - Constructor for record class com.jsgalactic.axiom.execution.StreamPolicy
-
Validates the bound before it can be installed.
- streamsBody(Route) - Method in interface com.jsgalactic.axiom.application.Application
-
Reports whether a route's handler was registered as a
StreamingHandler, so that a transport can hand it body bytes as they arrive instead of buffering them first. - STRICT - Enum constant in enum class com.jsgalactic.axiom.security.SetCookie.SameSite
-
Sent only on same-site requests.
- string(String) - Method in class com.jsgalactic.axiom.security.jwt.JwtClaims
-
Reads a string claim.
- strings(String) - Method in class com.jsgalactic.axiom.security.jwt.JwtClaims
-
Reads a claim that is a string or an array of strings, as a list.
- strongMatches(EntityTag) - Method in record class com.jsgalactic.axiom.http.EntityTag
-
Compares two tags with the strong rule: neither may be weak and the opaque values must be identical.
- subject() - Method in class com.jsgalactic.axiom.security.jwt.JwtClaims
-
Returns the
subclaim, which is always present in a verified token. - submit(Request) - Method in class com.jsgalactic.axiom.test.TestClient
-
Starts a request without waiting, so tests can hold capacity and observe queueing.
- submit(Request, BodyReader) - Method in class com.jsgalactic.axiom.test.TestClient
-
Starts a request with an incremental body reader for the handler, mirroring the listener's hand-off: buffering is replaced by reads from the reader, and its bytes are bounded by the application's body limit.
- summary() - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns the summary.
- summary(String) - Static method in class com.jsgalactic.axiom.routing.RouteDoc
-
Starts a description with a one-line summary.
- supports(String) - Method in interface com.jsgalactic.axiom.codec.spi.BodyCodec
-
Reports whether this codec handles a media type.
- SUSPEND - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionFailure
-
Suspending a transaction already associated with the thread failed.
- SwaggerUi - Class in com.jsgalactic.axiom.openapi.ui
-
Serves Swagger UI from the application itself, pointing at the application's own OpenAPI or Swagger document.
- SwaggerUi.Builder - Class in com.jsgalactic.axiom.openapi.ui
-
Configures a
SwaggerUi. - synchronizer(Sessions) - Static method in class com.jsgalactic.axiom.security.Csrf
-
Starts a configuration that keeps one random token in each session.
T
- tags() - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns the tags.
- tags(String...) - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy with more tags, appended in order; duplicates are ignored.
- TEMPORARY_REDIRECT - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
307 Temporary Redirect.
- termination() - Method in interface com.jsgalactic.axiom.lifecycle.Server
-
Observes shutdown without granting ownership of its completion.
- test(T) - Method in class com.jsgalactic.axiom.validation.Rule
-
Checks a value.
- TestClient - Class in com.jsgalactic.axiom.test
-
In-memory client that owns the supplied application's lifecycle.
- text() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Part
-
Decodes the content as UTF-8.
- text() - Method in class com.jsgalactic.axiom.websocket.WebSocketMessage
-
Returns the text payload.
- text(String) - Method in interface com.jsgalactic.axiom.context.Context
-
Creates a text response using the current settings.
- text(String) - Method in class com.jsgalactic.axiom.security.jwt.JwtClaims
-
Reads a scalar claim (string, number or boolean) as text.
- text(String) - Static method in class com.jsgalactic.axiom.websocket.WebSocketMessage
-
Creates a text message.
- text(Charset) - Method in record class com.jsgalactic.axiom.http.MultipartParser.Part
-
Decodes the content with a charset.
- timeout() - Method in class com.jsgalactic.axiom.jta.TransactionContext
-
Returns the timeout configured for the innermost boundary, if one was set.
- timeout(Duration) - Method in class com.jsgalactic.axiom.jta.Jta.Builder
-
Sets the transaction timeout.
- timeout(Duration) - Method in class com.jsgalactic.axiom.observability.Health.Builder
-
Sets how long one probe waits for its checks; all checks of a probe run concurrently.
- TIMEOUT - Enum constant in enum class com.jsgalactic.axiom.http.StreamAbortedException.Reason
-
The request deadline passed.
- TIMEOUT - Enum constant in enum class com.jsgalactic.axiom.http.StreamOutcome.Kind
-
The request deadline, or the stream's own lifetime, passed.
- TIMEOUT - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionFailure
-
The configured timeout could not be applied by the provider.
- timer(String, String...) - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry
- timer(String, String...) - Method in class com.jsgalactic.axiom.micrometer.MicrometerMetrics
- timer(String, String...) - Method in interface com.jsgalactic.axiom.observability.Metrics
-
Returns the timer for a series, creating it if needed.
- timer(String, String...) - Method in class com.jsgalactic.axiom.otel.OtelMetrics
- timerBuckets(String) - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Returns a timer's bucket upper bounds.
- timerBuckets(String, List<Duration>) - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry.Builder
-
Sets the histogram bounds of one timer, whatever its tags.
- timerBuckets(List<Duration>) - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry.Builder
-
Sets the histogram bounds of every timer that has none of its own.
- timerSnapshot(String, String...) - Method in class com.jsgalactic.axiom.metrics.MetricsRegistry
-
Reads a timer.
- TimerSnapshot(long, long) - Constructor for record class com.jsgalactic.axiom.metrics.MetricsRegistry.TimerSnapshot
-
Creates an instance of a
TimerSnapshotrecord class. - title(String) - Method in class com.jsgalactic.axiom.openapi.ui.SwaggerUi.Builder
-
Sets the page title.
- tls() - Method in class com.jsgalactic.axiom.application.ManagementOptions
- tls() - Method in class com.jsgalactic.axiom.http.Request
-
Returns the transport TLS flag.
- tls() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- tls(boolean) - Method in class com.jsgalactic.axiom.application.ManagementOptions.Builder
-
Serves HTTPS instead of HTTP, reusing the TLS material of the first application listener.
- tls(TlsOptions) - Method in class com.jsgalactic.axiom.application.ManagementOptions.Builder
-
Serves HTTPS with a certificate distinct from the application listener's.
- tls(TlsOptions) - Method in class com.jsgalactic.axiom.grpc.Grpc.Builder
-
Sets TLS from Axiom's transport-neutral options.
- tls(TlsOptions) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Serves HTTPS instead of plain HTTP on this listener.
- TLS_1_2 - Enum constant in enum class com.jsgalactic.axiom.lifecycle.TlsOptions.Protocol
-
TLS 1.2.
- TLS_1_3 - Enum constant in enum class com.jsgalactic.axiom.lifecycle.TlsOptions.Protocol
-
TLS 1.3.
- TlsConfigurationException - Exception Class in com.jsgalactic.axiom.lifecycle
-
Thrown when TLS material cannot be used: a file is missing or unreadable, a PEM block is malformed, the key does not belong to the certificate, a certificate is expired or not yet valid, or the configured protocols and cipher suites leave nothing the JVM supports.
- TlsConfigurationException(String) - Constructor for exception class com.jsgalactic.axiom.lifecycle.TlsConfigurationException
-
Creates the exception.
- tlsOptions() - Method in class com.jsgalactic.axiom.application.ManagementOptions
-
Returns an explicit certificate for the management listener, when one was set.
- TlsOptions - Class in com.jsgalactic.axiom.lifecycle
-
TLS settings of one HTTP listener, passed with
ListenerOptions.Builder.tls(TlsOptions). - TlsOptions.Builder - Class in com.jsgalactic.axiom.lifecycle
-
Collects settings before
TlsOptions.Builder.build(). - TlsOptions.ClientAuth - Enum Class in com.jsgalactic.axiom.lifecycle
-
Whether the listener asks clients for a certificate.
- TlsOptions.Protocol - Enum Class in com.jsgalactic.axiom.lifecycle
-
The protocols a listener can be limited to, oldest first.
- toBuilder() - Method in class com.jsgalactic.axiom.application.ManagementOptions
-
Starts a builder holding these options' values.
- toBuilder() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
-
Starts a builder holding these options' values.
- toBuilder() - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions
-
Starts a builder holding these options' values.
- toField() - Method in class com.jsgalactic.axiom.validation.FieldPath
-
Returns the path as a violation field.
- toJson() - Method in record class com.jsgalactic.axiom.observability.Health.Report
-
Renders the report as small JSON:
{"status":"UP","checks":{"database":"UP"}}. - token(Context) - Method in class com.jsgalactic.axiom.security.Csrf
-
Returns the token the client must send with unsafe requests.
- TOKEN_BUCKET - Enum constant in enum class com.jsgalactic.axiom.security.RateLimit.Algorithm
-
Capacity that refills continuously; allows bursts up to the capacity.
- tokenCheck(TokenCheck) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator.Builder
-
Adds a check that runs after signature, time, issuer, audience and subject verification, for revocation or
jtireplay detection. - TokenCheck - Interface in com.jsgalactic.axiom.security.jwt
-
An application check that runs after a token's signature, time claims, issuer, audience and subject have been verified, to reject a token that is cryptographically valid but must not be accepted: revoked, replayed (same
jti), issued to a suspended account, and so on. - TOO_MANY_REQUESTS - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
429 Too Many Requests.
- TooManyRequestsException - Exception Class in com.jsgalactic.axiom.error
-
A caller that sent too many requests in a given time (429).
- TooManyRequestsException() - Constructor for exception class com.jsgalactic.axiom.error.TooManyRequestsException
-
Creates the exception with code
too_many_requestsand no Retry-After header. - TooManyRequestsException(Duration) - Constructor for exception class com.jsgalactic.axiom.error.TooManyRequestsException
-
Creates the exception with a Retry-After delay.
- TooManyRequestsException(Duration, String) - Constructor for exception class com.jsgalactic.axiom.error.TooManyRequestsException
-
Creates the exception with a Retry-After delay and a specific safe code.
- toString() - Method in class com.jsgalactic.axiom.application.ManagementOptions
-
Describes the options without claiming a bound address.
- toString() - Method in record class com.jsgalactic.axiom.context.SecurityIdentity
-
Describes the identity by principal and grant counts.
- toString() - Method in record class com.jsgalactic.axiom.error.Violation
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.execution.AdmissionPolicy
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.execution.AdmissionSnapshot
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.execution.ExecutionBudget
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.execution.StreamPolicy
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.graphql.GraphQlOptions
-
Returns a string representation of this record class.
- toString() - Method in class com.jsgalactic.axiom.http.Body
-
Describes the body without revealing its content.
- toString() - Method in record class com.jsgalactic.axiom.http.ByteRange
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.http.ByteRanges
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.http.EntityTag
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Limits
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.http.MultipartParser.Part
-
Returns a string representation of this record class.
- toString() - Method in class com.jsgalactic.axiom.http.Request
-
Describes the request without its query, header values, body content or remote address.
- toString() - Method in class com.jsgalactic.axiom.http.Response
-
Describes the response for diagnostics.
- toString() - Method in class com.jsgalactic.axiom.http.ServerSentEvent
- toString() - Method in record class com.jsgalactic.axiom.http.StreamOutcome
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.jdbc.JdbcOptions
-
Returns a string representation of this record class.
- toString() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- toString() - Method in class com.jsgalactic.axiom.lifecycle.TlsOptions
-
Describes the options without file names or key material.
- toString() - Method in record class com.jsgalactic.axiom.metrics.MetricsRegistry.TimerSnapshot
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.observability.Health.Report
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.observability.TraceContext
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.observability.TraceState.Member
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.observability.TraceState
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.routing.Route
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Body
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Param
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Reply
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.security.ClientOrigin
-
Returns a string representation of this record class.
- toString() - Method in class com.jsgalactic.axiom.security.Cookies
- toString() - Method in class com.jsgalactic.axiom.security.Csrf
- toString() - Method in class com.jsgalactic.axiom.security.InMemorySessionStore
- toString() - Method in class com.jsgalactic.axiom.security.jwt.JwtClaims
- toString() - Method in record class com.jsgalactic.axiom.security.RateLimit.Decision
-
Returns a string representation of this record class.
- toString() - Method in class com.jsgalactic.axiom.security.RateLimit
- toString() - Method in class com.jsgalactic.axiom.security.Session
- toString() - Method in class com.jsgalactic.axiom.security.Sessions
- toString() - Method in record class com.jsgalactic.axiom.security.SessionState
-
Returns a string representation of this record class.
- toString() - Method in class com.jsgalactic.axiom.security.SetCookie
- toString() - Method in record class com.jsgalactic.axiom.test.StreamBuffering
-
Returns a string representation of this record class.
- toString() - Method in record class com.jsgalactic.axiom.validation.Constraint
-
Returns a string representation of this record class.
- toString() - Method in class com.jsgalactic.axiom.validation.FieldPath
- toString() - Method in class com.jsgalactic.axiom.websocket.WebSocketMessage
- totalNanos() - Method in record class com.jsgalactic.axiom.metrics.MetricsRegistry.TimerSnapshot
-
Returns the value of the
totalNanosrecord component. - traceContext() - Method in interface com.jsgalactic.axiom.context.Context
-
Returns the W3C trace context the caller sent in a
traceparentheader, if it is valid, with thetracestatethat came with it (empty if absent or invalid). - TraceContext - Record Class in com.jsgalactic.axiom.observability
-
A W3C Trace Context identity, the
traceparentof a request: which distributed trace it belongs to and which caller span started it. - TraceContext(String, String, int) - Constructor for record class com.jsgalactic.axiom.observability.TraceContext
-
Creates a context without trace state.
- TraceContext(String, String, int, TraceState) - Constructor for record class com.jsgalactic.axiom.observability.TraceContext
-
Validates the components.
- traceId() - Method in record class com.jsgalactic.axiom.observability.TraceContext
-
Returns the value of the
traceIdrecord component. - traceparent() - Method in record class com.jsgalactic.axiom.observability.TraceContext
-
Formats the context as a
traceparentvalue. - traceState() - Method in record class com.jsgalactic.axiom.observability.TraceContext
-
Returns the value of the
traceStaterecord component. - TraceState - Record Class in com.jsgalactic.axiom.observability
-
The W3C Trace Context
tracestateof a request: an ordered list of vendor-specifickey=valuemembers that travels with aTraceContext. - TraceState(List<TraceState.Member>) - Constructor for record class com.jsgalactic.axiom.observability.TraceState
-
Copies and validates the members.
- TraceState.Member - Record Class in com.jsgalactic.axiom.observability
-
One
key=valuepair of a trace state. - Tracing - Class in com.jsgalactic.axiom.otel
-
Creates one OpenTelemetry
SERVERspan per admitted request without adding a dependency or an SPI to axiom-core. - trackedKeys() - Method in class com.jsgalactic.axiom.security.RateLimit
-
Returns how many keys are tracked now, at most
RateLimit.Builder.maxKeys. - transaction() - Method in class com.jsgalactic.axiom.jpa.Jpa
-
Returns middleware that gives each request its own EntityManager and resource-local transaction.
- transaction() - Method in class com.jsgalactic.axiom.jta.Jta
-
Returns the middleware that binds one transaction around each request that runs through it.
- TransactionContext - Class in com.jsgalactic.axiom.jta
-
The transaction view handed to handlers inside a
Jta.transaction()boundary. - TransactionFailure - Enum Class in com.jsgalactic.axiom.jta
-
A transaction-boundary operation that failed, used to choose a client-visible problem status.
- TransactionOutcome - Enum Class in com.jsgalactic.axiom.jta
-
The completion outcome of the innermost transaction scope of a request.
- TransactionStatus - Enum Class in com.jsgalactic.axiom.jta
-
A transaction status expressed without a JTA type, so integrations can read it without depending on the transaction API.
- transport() - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions
- transport(TransportKind) - Method in class com.jsgalactic.axiom.lifecycle.ListenerOptions.Builder
-
Sets the I/O mechanism of the listener.
- TransportKind - Enum Class in com.jsgalactic.axiom.lifecycle
-
The network I/O mechanism an HTTP listener uses, chosen with
ListenerOptions.Builder.transport(TransportKind). - TrustedProxies - Class in com.jsgalactic.axiom.security
-
Decides a request's client address and scheme, believing
X-Forwarded-ForandX-Forwarded-Protoonly when they were set by configured, trusted proxies. - type() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Body
-
Returns the value of the
typerecord component. - type() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Param
-
Returns the value of the
typerecord component. - type() - Method in record class com.jsgalactic.axiom.routing.RouteDoc.Reply
-
Returns the value of the
typerecord component. - type(Class<?>, Type...) - Static method in class com.jsgalactic.axiom.routing.RouteDoc
-
Creates the type
raw<arguments...>, for exampletype(Page.class, Note.class)for aPage<Note>, since aClassliteral cannot carry type arguments.
U
- UNAUTHORIZED - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
401 Unauthorized.
- UnauthorizedException - Exception Class in com.jsgalactic.axiom.error
-
A request without valid credentials (401).
- UnauthorizedException(String) - Constructor for exception class com.jsgalactic.axiom.error.UnauthorizedException
-
Creates the exception with code
unauthorized. - UnauthorizedException(String, String) - Constructor for exception class com.jsgalactic.axiom.error.UnauthorizedException
-
Creates the exception with a specific safe code.
- UNKNOWN - Enum constant in enum class com.jsgalactic.axiom.jta.TransactionStatus
-
The provider reported a state this adapter does not model, or its status query failed.
- UNPROCESSABLE_CONTENT - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
422 Unprocessable Content.
- UnprocessableContentException - Exception Class in com.jsgalactic.axiom.error
-
Well-formed content that cannot be processed (422).
- UnprocessableContentException() - Constructor for exception class com.jsgalactic.axiom.error.UnprocessableContentException
-
Creates the exception with code
unprocessable_content. - UnprocessableContentException(String) - Constructor for exception class com.jsgalactic.axiom.error.UnprocessableContentException
-
Creates the exception with a specific safe code.
- UNSUPPORTED_MEDIA_TYPE - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
415 Unsupported Media Type.
- UnsupportedMediaTypeException - Exception Class in com.jsgalactic.axiom.error
-
A request body whose content type or charset no installed codec accepts (415).
- UnsupportedMediaTypeException() - Constructor for exception class com.jsgalactic.axiom.error.UnsupportedMediaTypeException
-
Creates the exception with code
unsupported_media_type. - UnsupportedMediaTypeException(String) - Constructor for exception class com.jsgalactic.axiom.error.UnsupportedMediaTypeException
-
Creates the exception with a specific code, such as
missing_content_type. - unwrap(Class<T>) - Method in class com.jsgalactic.axiom.jdbc.JdbcDataSource
-
Unwraps this wrapper or asks the delegate.
- UP - Enum constant in enum class com.jsgalactic.axiom.observability.Health.Status
- update(String, UnaryOperator<SessionState>) - Method in class com.jsgalactic.axiom.security.InMemorySessionStore
- update(String, UnaryOperator<SessionState>) - Method in interface com.jsgalactic.axiom.security.SessionStore
-
Atomically replaces a live session's state with the function's result.
- URI_TOO_LONG - Static variable in class com.jsgalactic.axiom.http.HttpStatus
-
414 URI Too Long.
- UriTooLongException - Exception Class in com.jsgalactic.axiom.error
-
A request target longer than the server accepts (414).
- UriTooLongException() - Constructor for exception class com.jsgalactic.axiom.error.UriTooLongException
-
Creates the exception with code
uri_too_long. - UriTooLongException(String) - Constructor for exception class com.jsgalactic.axiom.error.UriTooLongException
-
Creates the exception with a specific safe code.
- url(URI) - Static method in interface com.jsgalactic.axiom.security.jwt.JwksSource
-
Fetches the key set over HTTPS with a 5 second timeout.
- url(URI, Duration) - Static method in interface com.jsgalactic.axiom.security.jwt.JwksSource
-
Fetches the key set with
java.net.http. - use(Middleware) - Method in interface com.jsgalactic.axiom.application.Application
-
Adds global middleware.
- use(Middleware) - Method in interface com.jsgalactic.axiom.routing.RouteGroup
-
Adds middleware for every route of this scope, including routes registered before this call and routes of nested groups.
V
- validate(Object) - Method in class com.jsgalactic.axiom.validation.jakarta.JakartaValidation
-
Validates a value's constraints.
- validate(T) - Method in interface com.jsgalactic.axiom.context.BodyValidator
-
Checks a value.
- validate(T) - Method in class com.jsgalactic.axiom.validation.Rules
- validate(T) - Method in interface com.jsgalactic.axiom.validation.Validator
-
Checks a value.
- validatedBody(Class<T>, BodyValidator<? super T>) - Method in interface com.jsgalactic.axiom.context.Context
-
Decodes the request body as
Context.body(Class)does, then checks it. - Validation - Class in com.jsgalactic.axiom.validation
-
Entry point for checking values in handlers.
- ValidationException - Exception Class in com.jsgalactic.axiom.error
-
A syntactically valid request whose content breaks application rules (422).
- ValidationException(List<Violation>) - Constructor for exception class com.jsgalactic.axiom.error.ValidationException
-
Creates the exception with code
validation_failed. - Validator<T> - Interface in com.jsgalactic.axiom.validation
-
Checks a value and reports field violations.
- value() - Method in record class com.jsgalactic.axiom.observability.TraceState.Member
-
Returns the value of the
valuerecord component. - value() - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns the cookie value.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.application.Application.State
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.http.BodyReadException.Reason
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.http.StreamAbortedException.Reason
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.http.StreamOutcome.Kind
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.jta.TransactionFailure
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.jta.TransactionOutcome
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.jta.TransactionStatus
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.lifecycle.TlsOptions.ClientAuth
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.lifecycle.TlsOptions.Protocol
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.lifecycle.TransportKind
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.observability.Health.Status
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.routing.RouteDoc.In
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.security.ForwardedHeaders
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.security.RateLimit.Algorithm
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.security.SetCookie.SameSite
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.jsgalactic.axiom.validation.Constraint.Kind
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.jsgalactic.axiom.application.Application.State
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.http.BodyReadException.Reason
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.http.StreamAbortedException.Reason
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.http.StreamOutcome.Kind
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.jta.TransactionFailure
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.jta.TransactionOutcome
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.jta.TransactionStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.lifecycle.TlsOptions.ClientAuth
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.lifecycle.TlsOptions.Protocol
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.lifecycle.TransportKind
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.observability.Health.Status
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.routing.RouteDoc.In
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.security.ForwardedHeaders
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.security.jwt.JwsAlgorithm
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.security.RateLimit.Algorithm
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.security.SetCookie.SameSite
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.jsgalactic.axiom.validation.Constraint.Kind
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Method in record class com.jsgalactic.axiom.validation.Constraint
-
Returns the value of the
valuesrecord component. - verify(String) - Method in class com.jsgalactic.axiom.security.jwt.JwtAuthenticator
-
Verifies a compact JWS token as described above and maps it to an identity.
- Violation - Record Class in com.jsgalactic.axiom.error
-
One field-level problem reported to a client.
- Violation(String, String) - Constructor for record class com.jsgalactic.axiom.error.Violation
-
Validates both values.
- violations() - Method in exception class com.jsgalactic.axiom.error.AxiomException
-
Returns field-level details sent to clients; empty unless a subtype provides them.
- violations() - Method in exception class com.jsgalactic.axiom.error.DecodeException
-
Returns one violation for the field, or none.
- violations() - Method in exception class com.jsgalactic.axiom.error.ValidationException
W
- wait(Duration) - Method in class com.jsgalactic.axiom.jdbc.Jdbc.Builder
-
Sets how long a request waits for a permit before answering 503.
- weak() - Method in record class com.jsgalactic.axiom.http.EntityTag
-
Returns the value of the
weakrecord component. - weakMatches(EntityTag) - Method in record class com.jsgalactic.axiom.http.EntityTag
-
Compares two tags with the weak rule: only the opaque values must be identical, so a weak tag can match a strong one.
- webSocket(String) - Method in class com.jsgalactic.axiom.test.TestClient
-
Like
TestClient.webSocket(String, WebSocketHandler), with no callbacks on the test end. - webSocket(String, WebSocketHandler) - Method in interface com.jsgalactic.axiom.application.Application
-
Registers a WebSocket route on an HTTP/1.1 listener, before startup.
- webSocket(String, WebSocketHandler) - Method in class com.jsgalactic.axiom.test.TestClient
-
Opens an in-memory WebSocket session on a registered route, without binding a socket.
- WebSocketHandler - Interface in com.jsgalactic.axiom.websocket
-
Application callbacks for one WebSocket route.
- WebSocketMessage - Class in com.jsgalactic.axiom.websocket
-
An immutable text or binary WebSocket message delivered to or from a
WebSocketSession. - WebSocketSession - Interface in com.jsgalactic.axiom.websocket
-
One established WebSocket connection.
- with(String, String) - Method in record class com.jsgalactic.axiom.observability.TraceState
-
Returns a state in which a member is set and moved to the front, as the specification asks of a vendor that changes its entry.
- with(String, String) - Method in class com.jsgalactic.axiom.security.SecurityHeaders
-
Returns a copy that also sets, or replaces, one header.
- withAttributes(Map<String, String>) - Method in record class com.jsgalactic.axiom.context.SecurityIdentity
-
Returns a copy with further attributes; a name already present is replaced.
- withAttributes(Map<String, String>) - Method in record class com.jsgalactic.axiom.security.SessionState
-
Returns a copy with other attributes.
- withBody(Body) - Method in class com.jsgalactic.axiom.http.Request
-
Returns a copy with the supplied body.
- withCode(String) - Method in class com.jsgalactic.axiom.validation.Rule
-
Returns this rule with another code.
- withHeader(String, String) - Method in class com.jsgalactic.axiom.http.Response
-
Returns a copy, replacing any existing value for the header regardless of case.
- withHeaders(Map<String, String>) - Method in class com.jsgalactic.axiom.http.Request
-
Returns a copy with the supplied headers replacing the current ones.
- withId(String) - Method in class com.jsgalactic.axiom.http.ServerSentEvent
-
Returns a copy with an event ID, which a reconnecting client returns in
Last-Event-ID. - withIdentity(Optional<SecurityIdentity>) - Method in record class com.jsgalactic.axiom.security.SessionState
-
Returns a copy with another identity.
- withLocation(String) - Method in class com.jsgalactic.axiom.http.Response
-
Returns a copy with a Location header, for example after 201 Created.
- without(String) - Method in class com.jsgalactic.axiom.security.SecurityHeaders
-
Returns a copy that no longer sets one header.
- withoutBody() - Method in class com.jsgalactic.axiom.http.Response
-
Returns a copy without a body, preserving status and headers (for HEAD).
- withoutRoute(Route) - Method in record class com.jsgalactic.axiom.execution.ExecutionBudget
-
Returns a budget without the bound of one route, leaving the aggregate and other overrides as they are.
- withRemoteAddress(InetSocketAddress) - Method in class com.jsgalactic.axiom.http.Request
-
Returns a copy with the supplied transport peer address.
- withRetry(Duration) - Method in class com.jsgalactic.axiom.http.ServerSentEvent
-
Returns a copy that tells the client how long to wait before reconnecting.
- withRoute(Route, AdmissionPolicy) - Method in record class com.jsgalactic.axiom.execution.ExecutionBudget
-
Returns a budget with one route bound replaced, leaving the aggregate and other overrides as they are.
- withStallTimeout(Duration) - Method in record class com.jsgalactic.axiom.test.StreamBuffering
-
Returns a copy with another stall bound.
- withStreamLifetime(Duration) - Method in class com.jsgalactic.axiom.http.Response
-
Returns a streamed response that may run for its own time instead of the request deadline.
- withSummary(String) - Method in class com.jsgalactic.axiom.routing.RouteDoc
-
Returns a copy with another summary.
- withTimes(Instant, Instant) - Method in record class com.jsgalactic.axiom.security.SessionState
-
Returns a copy with other timestamps.
- withTls(boolean) - Method in class com.jsgalactic.axiom.http.Request
-
Returns a copy that records whether the carrying connection uses TLS.
- withValue(String) - Method in class com.jsgalactic.axiom.security.SetCookie
-
Returns a copy with another value.
- write(byte[]) - Method in interface com.jsgalactic.axiom.http.BodyWriter
-
Writes a whole array.
- write(byte[], int, int) - Method in interface com.jsgalactic.axiom.http.BodyWriter
-
Writes a slice of an array, copying it before returning.
- write(String) - Method in interface com.jsgalactic.axiom.http.BodyWriter
-
Writes text encoded as UTF-8.
- write(ByteBuffer) - Method in class com.jsgalactic.axiom.http.Body.Builder
-
Appends the remaining bytes of a buffer, which are consumed, so one read goes straight from the source into the array.
- writeTo(BodyWriter) - Method in interface com.jsgalactic.axiom.http.StreamBody
-
Writes the body.
X
- X_FORWARDED - Enum constant in enum class com.jsgalactic.axiom.security.ForwardedHeaders
-
X-Forwarded-For,X-Forwarded-Proto,X-Forwarded-Host,X-Forwarded-Port.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form