- Enclosing class:
HttpEntryPoint
public static interface HttpEntryPoint.Interceptor
Interceptor of an HTTP entry point.
This interceptor has direct access to
ServerRequest and
ServerResponse, as well as metadata of the invoked endpoint.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInvocation chain for HTTP Entry point. -
Method Summary
Modifier and TypeMethodDescriptionvoidproceed(InterceptionContext interceptionContext, HttpEntryPoint.Interceptor.Chain chain, ServerRequest request, ServerResponse response) Method to implement interceptor logic.
-
Method Details
-
proceed
void proceed(InterceptionContext interceptionContext, HttpEntryPoint.Interceptor.Chain chain, ServerRequest request, ServerResponse response) throws Exception Method to implement interceptor logic.- Parameters:
interceptionContext- context with invocation metadatachain- invocation chain, interceptor must call(io.helidon.webserver.http.ServerRequest, io.helidon.webserver.http.ServerResponse)request- server requestresponse- server response- Throws:
Exception- in case the invocation fails, or the interceptor needs to stop processing of the request with an exception
-