Package kos.core
Class SimplifiedRouter.SafeRequestInterceptor
java.lang.Object
kos.core.SimplifiedRouter.SafeRequestInterceptor
- All Implemented Interfaces:
RequestInterceptor
- Enclosing class:
- SimplifiedRouter
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final RequestInterceptor(package private) final KosContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(io.vertx.core.http.HttpServerRequest request, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> next) Handles a request.
-
Field Details
-
interceptor
-
kosContext
-
-
Constructor Details
-
SafeRequestInterceptor
private SafeRequestInterceptor()
-
-
Method Details
-
handle
public void handle(io.vertx.core.http.HttpServerRequest request, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> next) Description copied from interface:RequestInterceptorHandles a request. If thenextinterceptor in the chain were not called, the request will be interrupted. Please make sure you have sent a response to the client if you choose to interrupt the request chain.- Specified by:
handlein interfaceRequestInterceptor- Parameters:
request- Request objectnext- Next interceptor in the chain.
-