Uses of Package
com.soklet
Packages that use com.soklet
Package
Description
Core Soklet contracts and functionality.
Exceptions thrown during HTTP request processing.
-
Classes in com.soklet used by com.sokletClassDescriptionReasons a connection attempt was rejected by a transport server before request handling could begin.Encapsulates non-preflight CORS HTTP request data.Contract for types that authorize CORS requests.Encapsulates CORS preflight-related HTTP request data.Response headers to send over the wire for CORS preflight requests.Builder used to construct instances of
CorsPreflightResponseviaCorsPreflightResponse.withAccessControlAllowOrigin(String).Builder used to copy instances ofCorsPreflightResponseviaCorsPreflightResponse.copy().Response headers to send over the wire for non-preflight CORS requests.Builder used to construct instances ofCorsResponseviaCorsResponse.withAccessControlAllowOrigin(String).Builder used to copy instances ofCorsResponseviaCorsResponse.copy().Typesafe representation of HTTP request methods.Encapsulates the results of a request that would normally be handled by yourHttpServer(both logical response and bytes to be sent over the wire), used for integration testing viaSimulator.performHttpRequest(Request).Builder used to construct instances ofHttpRequestResultviaHttpRequestResult.withMarshaledResponse(MarshaledResponse).Builder used to copy instances ofHttpRequestResultviaHttpRequestResult.copy().Contract for HTTP server implementations that are designed to be managed by aSokletinstance.Builder used to construct a standard implementation ofHttpServer.Request/response processing contract forHttpServerimplementations.Contract for concrete instance generation given type information.Read-only hook methods for observing system and request lifecycle events.An informational "loggable" event that occurs during Soklet's internal processing - for example, if an error occurs while handling a request.Builder used to construct instances ofLogEventviaLogEvent.with(LogEventType, String).Builder used to copy instances ofLogEventviaLogEvent.copy().Kinds ofLogEventinstances that Soklet can produce.A finalized representation of aResponse, suitable for sending to clients over the wire.Builder used to construct instances ofMarshaledResponseviaMarshaledResponse.withResponse(Response)orMarshaledResponse.withStatusCode(Integer).Builder used to copy instances ofMarshaledResponseviaMarshaledResponse.copy().A known-length, finalized HTTP response body.Transport/admission context for MCP request rejection or acceptance.Immutable wrapper for MCP client capabilities.Immutable client information provided during MCP initialization.CORS authorization contract for MCP transport requests.Request metadata used byMcpCorsAuthorizer.Common contract implemented by MCP endpoint classes.Immutable metadata describing a resolved MCP endpoint registration.Generic invocation callback used byMcpRequestInterceptor.Contract for discovering MCP endpoints and composing programmatic handlers onto them.Initialization-time MCP request metadata.Immutable JSON-RPC error descriptor used by MCP request handling.Immutable wrapper for JSON-RPC request identifiers.Resource-list entry exposed by v1 MCP endpoints.Context forresources/list.Immutable result forresources/list.Immutable wrapper for negotiated MCP server capabilities.Singleton MCP null value.Immutable MCP object value.High-level MCP operation types.Request-scoped progress reporting seam for MCP tool calls.Immutable wrapper for MCP progress tokens.Programmatic MCP prompt handler contract.Context supplied to programmatic MCP prompt handlers.Immutable MCP prompt message.Public prompt message roles supported in v1.Immutable MCP prompt result.Admission seam for MCP transport requests.Request-scoped MCP metadata.MCP-side analogue of HTTPRequestInterceptor.High-level outcomes for MCP JSON-RPC request handling.Result of simulator-mode MCP request handling.Immutable resource-read result payload.Programmatic MCP resource-read handler contract.Context supplied to programmatic MCP resource handlers.Programmatic MCPresources/listhandler contract.Context supplied to programmatic MCPresources/listhandlers.Converts app-owned structured content objects intoMcpValue.Public programmatic MCP schema DSL.Builder for root-level object schemas.Contract for MCP server implementations that are designed to be managed by aSokletinstance.Builder forMcpServerinstances.Request callback used bySokletto hand transport requests to an initialized MCP server.Immutable key/value bag associated with an MCP session.Compare-and-set persistence contract for MCP sessions.Reasons why an MCP session may terminate.Immutable stored representation of an MCP session.Reasons why a simulated or real MCP stream may terminate.Context supplied toMcpResponseMarshalerduring structured-content conversion.Text content block used by v1 MCP tool and prompt results.Tool-call-specific MCP request metadata.Programmatic MCP tool handler contract.Context supplied to programmatic MCP tool handlers.Immutable tool result used by v1 MCP tool handlers.Builder used to constructMcpToolResultinstances.Supported scalar schema types for the programmatic MCP schema DSL.Small immutable public value model for MCP JSON-like values.Contract for collecting operational metrics from Soklet.Immutable snapshot of aMetricsCollector.Histogram.Key for metrics grouped by HTTP method and route match information.Key for metrics grouped by HTTP method, route match information, and status class (e.g. 2xx).Key for metrics grouped by MCP endpoint class, JSON-RPC method, and request outcome.Key for metrics grouped by MCP endpoint class and session termination reason.Key for metrics grouped by MCP endpoint class and stream termination reason.Text format to use forMetricsCollector.snapshotText(SnapshotTextOptions).Key for request read failures grouped by reason.Key for request rejections grouped by reason.Indicates whether a request was matched to aResourcePathDeclaration.Immutable snapshot of collected metrics.Builder used to construct instances ofMetricsCollector.Snapshot.Options for rendering a textual metrics snapshot.Builder forMetricsCollector.SnapshotTextOptions.Supported histogram rendering strategies.A single text-format sample with its label set.Key for metrics grouped by Server-Sent Event comment type, route match information, and drop reason.Key for metrics grouped by Server-Sent Event comment type, route match information, and enqueue outcome.Key for metrics grouped by Server-Sent Event comment type and route match information.Reasons a Server-Sent Event payload or comment was dropped before it could be written.Outcomes for a Server-Sent Event enqueue attempt.Key for metrics grouped by Server-Sent Event route match information and drop reason.Key for metrics grouped by Server-Sent Event route match information and enqueue outcome.Key for metrics grouped by Server-Sent Event route match information and handshake failure reason.Key for metrics grouped by Server-Sent Event route match information.Key for metrics grouped by Server-Sent Event route match information and termination reason.Encapsulates an HTML form element name, binary andStringrepresentations of its value, and other attributes as encoded according to themultipart/form-dataspecification.Builder used to construct instances ofMultipartFieldviaMultipartField.withName(String)orMultipartField.with(String, byte[]).Builder used to copy instances ofMultipartFieldviaMultipartField.copy().Contract for parsing HTML form fields encoded according to themultipart/form-dataspecification.Represents a single HTTP header field value that includes a name and may include semicolon-delimited parameters - encoding rules per RFC specifications are strictly enforced.Builder used to construct instances ofParameterizedHeaderValueviaParameterizedHeaderValue.withName(String).A single header-value parameter: given a header value likeattachment; filename="resume.pdf"; filename*=UTF-8''r%C3%A9sum%C3%A9.pdf, there are twofilenameparameter name-value pairs.What type of header-value parameter this is:ParameterizedHeaderValue.ParameterType.TOKEN,ParameterizedHeaderValue.ParameterType.QUOTED, orParameterizedHeaderValue.ParameterType.RFC_8187.Strategies for encoding/decoding query strings:Content-Type: application/x-www-form-urlencoded(supports"+"for spaces) or "strict" RFC 3986 (percent-decoding only).Typesafe representation of HTTP Redirect types (301, 302, 303, 307, 308).Encapsulates information specified in an HTTP request.Builder used to copy instances ofRequestviaRequest.copy().Builder used to construct instances ofRequestviaRequest.withPath(HttpMethod, String).Builder used to construct instances ofRequestviaRequest.withRawUrl(HttpMethod, String).Contract for converting request body bytes into a corresponding Java type.Hook methods that can adjust Soklet's request processing flow.Reasons a request could not be read or parsed into a validRequest.Reasons an HTTP or SSE request was rejected before application-level handling began.Represents a Resource Method, which is a JavaMethodinvoked by Soklet to handle an HTTP request.Contract for determining parameter values to inject when invoking Resource Methods.Contract for matching incoming HTTP requests with appropriate Resource Methods (Java methods to invoke to handle requests).An HTTP URL path used to resolve a Resource Method at runtime, such as/users/123.A compile-time HTTP URL path declaration associated with an annotated Resource Method, such as/users/{userId}.Represents a/-delimited part of aResourcePathDeclaration.How to interpret aResourcePathDeclaration.Componentof aResourcePathDeclaration- is it literal text or a placeholder?Represents a logical HTTP response returned by a Resource Method.Builder used to construct instances ofResponseviaResponse.withStatusCode(Integer)orResponse.withRedirect(RedirectType, String).Builder used to copy instances ofResponseviaResponse.copy().HTTP "response" Cookie representation which supportsSet-Cookieheader encoding.Builder used to construct instances ofResponseCookieviaResponseCookie.withName(String)orResponseCookie.with(String, String).Builder used to copy instances ofResponseCookieviaResponseCookie.copy().Represents thePriorityresponse cookie attribute.Values which control whether a response cookie is sent with cross-site requests, providing some protection against cross-site request forgery attacks (CSRF).Prepares responses for each request scenario Soklet supports (Resource Method, exception, CORS preflight, etc.)Builder used to construct a standard implementation ofResponseMarshaler.Function used to support pluggable implementations ofResponseMarshaler.forContentTooLarge(Request, ResourceMethod).Function used to support pluggable implementations ofResponseMarshaler.forCorsAllowed(Request, Cors, CorsResponse, MarshaledResponse).Function used to support pluggable implementations ofResponseMarshaler.forCorsPreflightAllowed(Request, CorsPreflight, CorsPreflightResponse).Function used to support pluggable implementations ofResponseMarshaler.forCorsPreflightRejected(Request, CorsPreflight).Function used to support pluggable implementations ofResponseMarshaler.forHead(Request, MarshaledResponse).Function used to support pluggable implementations ofResponseMarshaler.forMethodNotAllowed(Request, Set).Function used to support pluggable implementations ofResponseMarshaler.forNotFound(Request).Function used to support pluggable implementations ofResponseMarshaler.forOptions(Request, Set).Function used to support pluggable implementations ofResponseMarshaler.forOptionsSplat(Request).Function used to support a pluggable "post-process" hook for any final customization or processing before data goes over the wire.Function used to support pluggable implementations ofResponseMarshaler.forResourceMethod(Request, Response, ResourceMethod).Function used to support pluggable implementations ofResponseMarshaler.forServiceUnavailable(Request, ResourceMethod).Function used to support pluggable implementations ofResponseMarshaler.forThrowable(Request, Throwable, ResourceMethod).Types of servers supported by Soklet - currentlyServerType.STANDARD_HTTP,ServerType.SSE, andServerType.MCP.Events that might trigger aSokletinstance to shut down.Simulates server behavior of accepting a request and returning a response without touching the network, useful for writing integration tests.Soklet's main class - manages one or more configured transport servers (HttpServer,SseServer, and/orMcpServer) using the provided system configuration.Defines how a Soklet system is configured.Builder used to construct instances ofSokletConfig.Builder used to copy instances ofSokletConfig.Broadcasts a Server-Sent Event payload to all clients listening on aResourcePath.Encapsulates a Server-Sent Event comment payload and its comment type.Types of Server-Sent Event comments.Represents characteristics of a long-running connection that has been established with aSseServer.Categorizes why a Server-Sent Event handshake failed.Categorizes why a Server-Sent Event connection terminated.Encapsulates a Server-Sent Event payload that can be sent across the wire to a client.Builder used to construct instances ofSseEventviaSseEvent.withEvent(String),SseEvent.withData(String), orSseEvent.builder().Represents the result of aSseEventSource"handshake".Type which indicates a successful Server-Sent Event handshake.Builder used to construct instances ofSseHandshakeResult.Accepted.Type which indicates a rejected Server-Sent Event handshake.Sealed interface used bySimulator.performSseRequest(Request)during integration tests, which encapsulates the 3 logical outcomes for SSE connections: accepted handshake, rejected handshake, and general request failure.A special HTTP server whose only purpose is to provide Server-Sent Event functionality.Builder used to construct a standard implementation ofSseServer.Request/response processing contract forSseServerimplementations.Unicasts a Server-Sent Event or comment payload to a specific client listening on aResourcePath.Formal enumeration of valid HTTP status codes.Forwarded header trust policy. -
Classes in com.soklet used by com.soklet.exceptionClassDescriptionEncapsulates an HTML form element name, binary and
Stringrepresentations of its value, and other attributes as encoded according to themultipart/form-dataspecification.