Uses of Class
com.soklet.ResourceMethod
Packages that use ResourceMethod
-
Uses of ResourceMethod in com.soklet
Methods in com.soklet that return ResourceMethodModifier and TypeMethodDescriptionstatic ResourceMethodResourceMethod.withComponents(HttpMethod httpMethod, ResourcePathDeclaration resourcePathDeclaration, Method method, Boolean serverSentEventSource) Vends a Resource Method given its unique components.Methods in com.soklet 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, ServerType serverType) Given an HTTP request, provide a matching Resource Method to invoke.Methods in com.soklet with parameters of type ResourceMethodModifier and TypeMethodDescriptiondefault voidLifecycleInterceptor.didEstablishServerSentEventConnection(Request request, ResourceMethod resourceMethod) Called immediately after a Server-Sent Event connection of indefinite duration to the client is opened.default 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.default voidLifecycleInterceptor.didFinishServerSentEventWriting(Request request, ResourceMethod resourceMethod, ServerSentEvent serverSentEvent, Duration writeDuration, Throwable throwable) Called after a Server-Sent Event is sent to the client.default voidLifecycleInterceptor.didStartRequestHandling(Request request, ResourceMethod resourceMethod) Called as soon as a request is received and a Resource Method has been resolved to handle it.default voidLifecycleInterceptor.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.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.ResponseMarshaler.Builder.ContentTooLargeHandler.handle(Request request, ResourceMethod resourceMethod) Prepares a response for a request that triggers an HTTP 413 Content Too Large.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.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.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 givenrequestandresourceMethod, vends the list of parameters to use when invoking the underlying Java method located atResourceMethod.getMethod().LogEvent.Builder.resourceMethod(ResourceMethod resourceMethod) LogEvent.Copier.resourceMethod(ResourceMethod resourceMethod) RequestResult.Builder.resourceMethod(ResourceMethod resourceMethod) RequestResult.Copier.resourceMethod(ResourceMethod resourceMethod) default voidLifecycleInterceptor.willEstablishServerSentEventConnection(Request request, ResourceMethod resourceMethod) Called immediately before a Server-Sent Event connection of indefinite duration to the client is opened.default voidLifecycleInterceptor.willStartResponseWriting(Request request, ResourceMethod resourceMethod, MarshaledResponse marshaledResponse) Called before the response is sent to the client.default voidLifecycleInterceptor.willStartServerSentEventWriting(Request request, ResourceMethod resourceMethod, ServerSentEvent serverSentEvent) Called before a Server-Sent Event is sent to the client.default voidLifecycleInterceptor.willTerminateServerSentEventConnection(Request request, ResourceMethod resourceMethod, Throwable throwable) Called immediately before a Server-Sent Event connection to the client is terminated.default voidLifecycleInterceptor.wrapRequest(Request request, ResourceMethod resourceMethod, Consumer<Request> requestProcessor) Wraps around the whole "outside" of the entire request-handling flow.Method parameters in com.soklet with type arguments of type ResourceMethodModifier and TypeMethodDescriptionCorsAuthorizer.authorizePreflight(Request request, CorsPreflight corsPreflight, Map<HttpMethod, ResourceMethod> availableResourceMethodsByHttpMethod) Authorizes a CORS preflight request.