Uses of Class
com.soklet.core.ResourceMethod
Packages that use ResourceMethod
Package
Description
Core Soklet contracts and functionality.
Default implementations of Soklet contracts.
-
Uses of ResourceMethod in com.soklet.core
Methods in com.soklet.core that return ResourceMethodModifier and TypeMethodDescriptionstatic ResourceMethod
ResourceMethod.withComponents
(HttpMethod httpMethod, ResourcePathDeclaration resourcePathDeclaration, Method method, Boolean serverSentEventSource) Vends a Resource Method given its unique components.Methods in com.soklet.core that return types with arguments of type ResourceMethodModifier and TypeMethodDescriptionLogEvent.getResourceMethod()
The Resource Method associated with this log event, if available.RequestResult.getResourceMethod()
The Resource Method that handled the request, if available.ResourceMethodResolver.getResourceMethods()
Vends the set of all Resource Methods registered in the system.ResourceMethodResolver.resourceMethodForRequest
(Request request) Given an HTTP request, provide a matching Resource Method to invoke.Methods in com.soklet.core with parameters of type ResourceMethodModifier and TypeMethodDescriptiondefault 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.ResponseMarshaler.forContentTooLarge
(Request request, ResourceMethod resourceMethod) Prepares a response for a request that triggers an HTTP 413 Content Too Large.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.forThrowable
(Request request, Throwable throwable, ResourceMethod resourceMethod) Prepares a response for scenarios in which an uncaught exception is encountered.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 atgetMethod()
.LogEvent.Builder.resourceMethod
(ResourceMethod resourceMethod) LogEvent.Copier.resourceMethod
(ResourceMethod resourceMethod) RequestResult.Builder.resourceMethod
(ResourceMethod resourceMethod) RequestResult.Copier.resourceMethod
(ResourceMethod resourceMethod) 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 ResourceMethodModifier and TypeMethodDescriptionCorsAuthorizer.authorizePreflight
(Request request, CorsPreflight corsPreflight, Map<HttpMethod, ResourceMethod> availableResourceMethodsByHttpMethod) Authorizes a CORS preflight request. -
Uses of ResourceMethod in com.soklet.core.impl
Methods in com.soklet.core.impl that return types with arguments of type ResourceMethodModifier and TypeMethodDescriptionDefaultResourceMethodResolver.getResourceMethods()
DefaultServerSentEventServer.getResourceMethodsByResourcePathDeclaration()
DefaultResourceMethodResolver.resourceMethodForRequest
(Request request) Methods in com.soklet.core.impl with parameters of type ResourceMethodModifier and TypeMethodDescriptionDefaultResponseMarshaler.forContentTooLarge
(Request request, ResourceMethod resourceMethod) DefaultResponseMarshaler.forHappyPath
(Request request, Response response, ResourceMethod resourceMethod) DefaultResponseMarshaler.forThrowable
(Request request, Throwable throwable, ResourceMethod resourceMethod) DefaultRequestBodyMarshaler.marshalRequestBody
(Request request, ResourceMethod resourceMethod, Parameter parameter, Type requestBodyType) DefaultResourceMethodParameterProvider.parameterValuesForResourceMethod
(Request request, ResourceMethod resourceMethod) Method parameters in com.soklet.core.impl with type arguments of type ResourceMethodModifier 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)