Uses of Class
com.soklet.MarshaledResponse
Packages that use MarshaledResponse
-
Uses of MarshaledResponse in com.soklet
Methods in com.soklet 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 yourCorsAuthorizerapproves a preflight request.ResponseMarshaler.forCorsPreflightRejected(Request request, CorsPreflight corsPreflight) Prepares a response for "CORS preflight rejected" scenario when yourCorsAuthorizerdenies a preflight request.ResponseMarshaler.forHead(Request request, MarshaledResponse getMethodMarshaledResponse) Prepares a response for an HTTPHEADrequest.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 does not have a matching Resource Method, which triggers an HTTP 404 Not Found.ResponseMarshaler.forOptions(Request request, Set<HttpMethod> allowedHttpMethods) Prepares a response for an HTTPOPTIONSrequest.ResponseMarshaler.forOptionsSplat(Request request) Prepares a response for an HTTPOPTIONS *(colloquially, "OPTIONSSplat") request.ResponseMarshaler.forResourceMethod(Request request, Response response, ResourceMethod resourceMethod) Prepares a response for a request that was matched to a Resource Method and returned normally (i.e., without throwing an exception).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.ResponseMarshaler.Builder.ContentTooLargeHandler.handle(Request request, ResourceMethod resourceMethod) Prepares a response for a request that triggers an HTTP 413 Content Too Large.ResponseMarshaler.Builder.CorsAllowedHandler.handle(Request request, Cors cors, CorsResponse corsResponse, MarshaledResponse marshaledResponse) Applies "CORS is permitted for this request" data to a response.ResponseMarshaler.Builder.CorsPreflightAllowedHandler.handle(Request request, CorsPreflight corsPreflight, CorsPreflightResponse corsPreflightResponse) Prepares a response for "CORS preflight allowed" scenario when yourCorsAuthorizerapproves a preflight request.ResponseMarshaler.Builder.CorsPreflightRejectedHandler.handle(Request request, CorsPreflight corsPreflight) Prepares a response for "CORS preflight rejected" scenario when yourCorsAuthorizerdenies a preflight request.ResponseMarshaler.Builder.HeadHandler.handle(Request request, MarshaledResponse getMethodMarshaledResponse) Prepares a response for an HTTPHEADrequest.ResponseMarshaler.Builder.MethodNotAllowedHandler.handle(Request request, Set<HttpMethod> allowedHttpMethods) Prepares a response for a request that triggers an HTTP 405 Method Not Allowed.Prepares a response for a request that triggers an HTTP 404 Not Found.ResponseMarshaler.Builder.OptionsHandler.handle(Request request, Set<HttpMethod> allowedHttpMethods) Prepares a response for an HTTPOPTIONSrequest.Prepares a response for an HTTPOPTIONS *(colloquially, "OPTIONSSplat") request.ResponseMarshaler.Builder.ResourceMethodHandler.handle(Request request, Response response, ResourceMethod resourceMethod) Prepares a response for the scenario in which the request was matched to a Resource Method and executed non-exceptionally.ResponseMarshaler.Builder.ThrowableHandler.handle(Request request, Throwable throwable, ResourceMethod resourceMethod) Prepares a response for scenarios in which an uncaught exception is encountered.ResponseMarshaler.Builder.PostProcessor.postProcess(MarshaledResponse marshaledResponse) Applies an optional "post-process" hook for any final customization or processing before data goes over the wire.Methods in com.soklet that return types with arguments of type MarshaledResponseModifier and TypeMethodDescriptionLogEvent.getMarshaledResponse()The response associated with this log event, if available.Methods in com.soklet with parameters of type MarshaledResponseModifier and TypeMethodDescriptiondefault voidLifecycleInterceptor.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 voidLifecycleInterceptor.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 HTTPHEADrequest.ResponseMarshaler.Builder.CorsAllowedHandler.handle(Request request, Cors cors, CorsResponse corsResponse, MarshaledResponse marshaledResponse) Applies "CORS is permitted for this request" data to a response.ResponseMarshaler.Builder.HeadHandler.handle(Request request, MarshaledResponse getMethodMarshaledResponse) Prepares a response for an HTTPHEADrequest.LogEvent.Builder.marshaledResponse(MarshaledResponse marshaledResponse) LogEvent.Copier.marshaledResponse(MarshaledResponse marshaledResponse) RequestResult.Builder.marshaledResponse(MarshaledResponse marshaledResponse) RequestResult.Copier.marshaledResponse(MarshaledResponse marshaledResponse) ResponseMarshaler.Builder.PostProcessor.postProcess(MarshaledResponse marshaledResponse) Applies an optional "post-process" hook for any final customization or processing before data goes over the wire.default voidLifecycleInterceptor.willStartResponseWriting(Request request, ResourceMethod resourceMethod, MarshaledResponse marshaledResponse) Called before the response is sent to the client.static RequestResult.BuilderRequestResult.withMarshaledResponse(MarshaledResponse marshaledResponse) Acquires a builder forRequestResultinstances.Method parameters in com.soklet with type arguments of type MarshaledResponseModifier and TypeMethodDescriptiondefault voidLifecycleInterceptor.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 voidLifecycleInterceptor.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.