Uses of Class
com.soklet.core.MarshaledResponse
Packages that use MarshaledResponse
Package
Description
Core Soklet contracts and functionality.
Default implementations of Soklet contracts.
-
Uses of MarshaledResponse in com.soklet.core
Methods in com.soklet.core that return MarshaledResponseModifier and TypeMethodDescriptionMarshaledResponse.Builder.build()
MarshaledResponse.Copier.finish()
ResponseMarshaler.forContentTooLarge
(Request request, ResourceMethod resourceMethod) Prepares a response for a request that triggers an HTTP 413 Content Too Large.ResponseMarshaler.forCorsAllowed
(Request request, Cors cors, CorsResponse corsResponse, MarshaledResponse marshaledResponse) Applies "CORS is permitted for this request" data to a response.ResponseMarshaler.forCorsPreflightAllowed
(Request request, CorsPreflight corsPreflight, CorsPreflightResponse corsPreflightResponse) Prepares a response for "CORS preflight allowed" scenario when yourCorsAuthorizer
approves a preflight request.ResponseMarshaler.forCorsPreflightRejected
(Request request, CorsPreflight corsPreflight) Prepares a response for "CORS preflight rejected" scenario when yourCorsAuthorizer
denies a preflight request.ResponseMarshaler.forHappyPath
(Request request, Response response, ResourceMethod resourceMethod) Prepares a "happy path" response - the request was matched to a Resource Method and executed non-exceptionally.ResponseMarshaler.forHead
(Request request, MarshaledResponse getMethodMarshaledResponse) Prepares a response for an HTTPHEAD
request.ResponseMarshaler.forMethodNotAllowed
(Request request, Set<HttpMethod> allowedHttpMethods) Prepares a response for a request that triggers an HTTP 405 Method Not Allowed.ResponseMarshaler.forNotFound
(Request request) Prepares a response for a request that triggers an HTTP 404 Not Found.ResponseMarshaler.forOptions
(Request request, Set<HttpMethod> allowedHttpMethods) Prepares a response for an HTTPOPTIONS
request.ResponseMarshaler.forThrowable
(Request request, Throwable throwable, ResourceMethod resourceMethod) Prepares a response for scenarios in which an uncaught exception is encountered.RequestResult.getMarshaledResponse()
The final representation of the response to be written over the wire.Methods in com.soklet.core that return types with arguments of type MarshaledResponseModifier and TypeMethodDescriptionLogEvent.getMarshaledResponse()
The response associated with this log event, if available.Methods in com.soklet.core with parameters of type MarshaledResponseModifier and TypeMethodDescriptiondefault void
LifecycleInterceptor.didFinishRequestHandling
(Request request, ResourceMethod resourceMethod, MarshaledResponse marshaledResponse, Duration processingDuration, List<Throwable> throwables) Called after a request has fully completed processing and a response has been sent to the client.default void
LifecycleInterceptor.didFinishResponseWriting
(Request request, ResourceMethod resourceMethod, MarshaledResponse marshaledResponse, Duration responseWriteDuration, Throwable throwable) Called after the response is sent to the client.ResponseMarshaler.forCorsAllowed
(Request request, Cors cors, CorsResponse corsResponse, MarshaledResponse marshaledResponse) Applies "CORS is permitted for this request" data to a response.ResponseMarshaler.forHead
(Request request, MarshaledResponse getMethodMarshaledResponse) Prepares a response for an HTTPHEAD
request.LogEvent.Builder.marshaledResponse
(MarshaledResponse marshaledResponse) LogEvent.Copier.marshaledResponse
(MarshaledResponse marshaledResponse) RequestResult.Builder.marshaledResponse
(MarshaledResponse marshaledResponse) RequestResult.Copier.marshaledResponse
(MarshaledResponse marshaledResponse) default void
LifecycleInterceptor.willStartResponseWriting
(Request request, ResourceMethod resourceMethod, MarshaledResponse marshaledResponse) Called before the response is sent to the client.static RequestResult.Builder
RequestResult.withMarshaledResponse
(MarshaledResponse marshaledResponse) Acquires a builder forRequestResult
instances.Method parameters in com.soklet.core with type arguments of type MarshaledResponseModifier and TypeMethodDescriptiondefault void
LifecycleInterceptor.interceptRequest
(Request request, ResourceMethod resourceMethod, Function<Request, MarshaledResponse> responseProducer, Consumer<MarshaledResponse> responseWriter) Supports alteration of the request processing flow by enabling programmatic control over its two key phases: acquiring a response and writing the response to the client.default void
LifecycleInterceptor.interceptRequest
(Request request, ResourceMethod resourceMethod, Function<Request, MarshaledResponse> responseProducer, Consumer<MarshaledResponse> responseWriter) Supports alteration of the request processing flow by enabling programmatic control over its two key phases: acquiring a response and writing the response to the client. -
Uses of MarshaledResponse in com.soklet.core.impl
Methods in com.soklet.core.impl that return MarshaledResponseModifier and TypeMethodDescriptionDefaultResponseMarshaler.forContentTooLarge
(Request request, ResourceMethod resourceMethod) DefaultResponseMarshaler.forCorsAllowed
(Request request, Cors cors, CorsResponse corsResponse, MarshaledResponse marshaledResponse) DefaultResponseMarshaler.forCorsPreflightAllowed
(Request request, CorsPreflight corsPreflight, CorsPreflightResponse corsPreflightResponse) DefaultResponseMarshaler.forCorsPreflightRejected
(Request request, CorsPreflight corsPreflight) DefaultResponseMarshaler.forHappyPath
(Request request, Response response, ResourceMethod resourceMethod) DefaultResponseMarshaler.forHead
(Request request, MarshaledResponse getMethodMarshaledResponse) DefaultResponseMarshaler.forMethodNotAllowed
(Request request, Set<HttpMethod> allowedHttpMethods) DefaultResponseMarshaler.forNotFound
(Request request) DefaultResponseMarshaler.forOptions
(Request request, Set<HttpMethod> allowedHttpMethods) DefaultResponseMarshaler.forThrowable
(Request request, Throwable throwable, ResourceMethod resourceMethod) Methods in com.soklet.core.impl with parameters of type MarshaledResponseModifier and TypeMethodDescriptionDefaultResponseMarshaler.forCorsAllowed
(Request request, Cors cors, CorsResponse corsResponse, MarshaledResponse marshaledResponse) DefaultResponseMarshaler.forHead
(Request request, MarshaledResponse getMethodMarshaledResponse)