Package kos.core
Class SimplifiedRouter.SafeRequestInterceptor
- java.lang.Object
-
- kos.core.SimplifiedRouter.SafeRequestInterceptor
-
- All Implemented Interfaces:
RequestInterceptor
- Enclosing class:
- SimplifiedRouter
private class SimplifiedRouter.SafeRequestInterceptor extends Object implements RequestInterceptor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) RequestInterceptorinterceptor(package private) KosContextkosContext
-
Constructor Summary
Constructors Modifier Constructor Description privateSafeRequestInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(io.vertx.core.http.HttpServerRequest request, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> next)Handles a request.
-
-
-
Field Detail
-
interceptor
final RequestInterceptor interceptor
-
kosContext
final KosContext kosContext
-
-
Method Detail
-
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.
-
-