Uses of Class
com.soklet.core.Request
Packages that use Request
Package
Description
Core Soklet contracts and functionality.
Default implementations of Soklet contracts.
-
Uses of Request in com.soklet.core
Methods in com.soklet.core that return RequestMethods in com.soklet.core that return types with arguments of type RequestModifier and TypeMethodDescriptionLogEvent.getRequest()
The request associated with this log event, if available.Methods in com.soklet.core with parameters of type RequestModifier and TypeMethodDescriptionAuthorizes a non-preflight CORS request.CorsAuthorizer.authorizePreflight
(Request request, CorsPreflight corsPreflight, Map<HttpMethod, ResourceMethod> availableResourceMethodsByHttpMethod) Authorizes a CORS preflight request.default void
LifecycleInterceptor.didEstablishServerSentEventConnection
(Request request, ResourceMethod resourceMethod) Called immediately after a Server-Sent Event connection of indefinite duration to the client is opened.default 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.default void
LifecycleInterceptor.didFinishServerSentEventWriting
(Request request, ResourceMethod resourceMethod, ServerSentEvent serverSentEvent, Duration writeDuration, Throwable throwable) Called after a Server-Sent Event is sent to the client.default void
LifecycleInterceptor.didStartRequestHandling
(Request request, ResourceMethod resourceMethod) Called as soon as a request is received and a Resource Method has been resolved to handle it.default void
LifecycleInterceptor.didTerminateServerSentEventConnection
(Request request, ResourceMethod resourceMethod, Duration connectionDuration, Throwable throwable) Called immediately after a Server-Sent Event connection to the client is terminated.MultipartParser.extractMultipartFields
(Request request) Given a request, detect all HTML form fields withmultipart/form-data
encoding and parse their values.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.void
Server.RequestHandler.handleRequest
(Request request, Consumer<RequestResult> requestResultConsumer) Callback to be invoked by aServer
implementation after it has received an HTTP request but prior to writing an HTTP response.void
ServerSentEventServer.RequestHandler.handleRequest
(Request request, Consumer<RequestResult> requestResultConsumer) Callback to be invoked by aServerSentEventServer
implementation after it has received a Server-Sent Event Source HTTP request but prior to writing initial data to the HTTP response.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.RequestBodyMarshaler.marshalRequestBody
(Request request, ResourceMethod resourceMethod, Parameter parameter, Type requestBodyType) Given a request, the Resource Method that will handle it, and aRequestBody
-annotated parameter + its type, convert the request body bytes into an instance of typerequestBodyType
.ResourceMethodParameterProvider.parameterValuesForResourceMethod
(Request request, ResourceMethod resourceMethod) For the givenrequest
andresourceMethod
, vends the list of parameters to use when invoking the underlying Java method located atResourceMethod.getMethod()
.Simulator.performRequest
(Request request) Given a request, process it and return response data (both logicalResponse
, if present, and theMarshaledResponse
bytes to be sent over the wire) as well as the matching Resource Method, if available.ResourceMethodResolver.resourceMethodForRequest
(Request request) Given an HTTP request, provide a matching Resource Method to invoke.default void
LifecycleInterceptor.willEstablishServerSentEventConnection
(Request request, ResourceMethod resourceMethod) Called immediately before a Server-Sent Event connection of indefinite duration to the client is opened.default void
LifecycleInterceptor.willStartResponseWriting
(Request request, ResourceMethod resourceMethod, MarshaledResponse marshaledResponse) Called before the response is sent to the client.default void
LifecycleInterceptor.willStartServerSentEventWriting
(Request request, ResourceMethod resourceMethod, ServerSentEvent serverSentEvent) Called before a Server-Sent Event is sent to the client.default void
LifecycleInterceptor.willTerminateServerSentEventConnection
(Request request, ResourceMethod resourceMethod, Throwable throwable) Called immediately before a Server-Sent Event connection to the client is terminated.default void
LifecycleInterceptor.wrapRequest
(Request request, ResourceMethod resourceMethod, Consumer<Request> requestProcessor) Wraps around the whole "outside" of the entire request-handling flow.Method parameters in com.soklet.core with type arguments of type RequestModifier 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.wrapRequest
(Request request, ResourceMethod resourceMethod, Consumer<Request> requestProcessor) Wraps around the whole "outside" of the entire request-handling flow. -
Uses of Request in com.soklet.core.impl
Methods in com.soklet.core.impl with parameters of type RequestModifier and TypeMethodDescriptionAllOriginsCorsAuthorizer.authorizePreflight
(Request request, CorsPreflight corsPreflight, Map<HttpMethod, ResourceMethod> availableResourceMethodsByHttpMethod) NoOriginsCorsAuthorizer.authorizePreflight
(Request request, CorsPreflight corsPreflight, Map<HttpMethod, ResourceMethod> availableResourceMethodsByHttpMethod) WhitelistedOriginsCorsAuthorizer.authorizePreflight
(Request request, CorsPreflight corsPreflight, Map<HttpMethod, ResourceMethod> availableResourceMethodsByHttpMethod) DefaultMultipartParser.extractMultipartFields
(Request request) DefaultResponseMarshaler.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) DefaultRequestBodyMarshaler.marshalRequestBody
(Request request, ResourceMethod resourceMethod, Parameter parameter, Type requestBodyType) DefaultResourceMethodParameterProvider.parameterValuesForResourceMethod
(Request request, ResourceMethod resourceMethod) DefaultResourceMethodResolver.resourceMethodForRequest
(Request request)