public class HookHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXPIRATION_TIME |
static java.lang.String |
EXPIRE_AFTER |
static java.lang.String |
FULL_URL |
static java.lang.String |
HOOK |
static java.lang.String |
HOOKED_HEADER |
static java.lang.String |
HOOKS_LISTENERS_URI_PART |
static java.lang.String |
HOOKS_ROUTE_URI_PART |
static java.lang.String |
REQUESTURL |
| Constructor and Description |
|---|
HookHandler(io.vertx.core.Vertx vertx,
io.vertx.core.http.HttpClient selfClient,
org.swisspush.gateleen.core.storage.ResourceStorage storage,
org.swisspush.gateleen.logging.LoggingResourceManager loggingResourceManager,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler,
java.lang.String userProfilePath,
java.lang.String hookRootUri)
Creates a new HookHandler.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
handle(io.vertx.core.http.HttpServerRequest request)
Handles requests, which are either listener or
route related.
|
void |
init() |
boolean |
isRequestAlreadyHooked(io.vertx.core.http.HttpServerRequest request)
Checks if the original Request was already hooked.
|
public static final java.lang.String HOOKED_HEADER
public static final java.lang.String HOOKS_LISTENERS_URI_PART
public static final java.lang.String HOOKS_ROUTE_URI_PART
public static final java.lang.String REQUESTURL
public static final java.lang.String EXPIRATION_TIME
public static final java.lang.String HOOK
public static final java.lang.String EXPIRE_AFTER
public static final java.lang.String FULL_URL
public HookHandler(io.vertx.core.Vertx vertx,
io.vertx.core.http.HttpClient selfClient,
org.swisspush.gateleen.core.storage.ResourceStorage storage,
org.swisspush.gateleen.logging.LoggingResourceManager loggingResourceManager,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler,
java.lang.String userProfilePath,
java.lang.String hookRootUri)
vertx - vertxselfClient - selfClientstorage - storageloggingResourceManager - loggingResourceManagermonitoringHandler - monitoringHandleruserProfilePath - userProfilePathhookRootUri - hookRootUripublic void init()
public boolean handle(io.vertx.core.http.HttpServerRequest request)
request - requestpublic boolean isRequestAlreadyHooked(io.vertx.core.http.HttpServerRequest request)
request - request