public class Route extends Object
| Constructor and Description |
|---|
Route(io.vertx.core.Vertx vertx,
org.swisspush.gateleen.core.storage.ResourceStorage storage,
org.swisspush.gateleen.logging.LoggingResourceManager loggingResourceManager,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler,
String userProfilePath,
HttpHook httpHook,
String urlPattern,
io.vertx.core.http.HttpClient selfClient)
Creates a new instance of a Route.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Closes the http client of the route.
|
void |
forward(io.vertx.core.http.HttpServerRequest request)
Handles the request and forwards it
to the hook specific destination.
|
void |
forward(io.vertx.core.http.HttpServerRequest request,
io.vertx.core.buffer.Buffer requestBody)
Handles the request (consumed) and forwards it
to the hook specific destination.
|
HttpHook |
getHook()
Returns the hook associated
with this route.
|
public Route(io.vertx.core.Vertx vertx,
org.swisspush.gateleen.core.storage.ResourceStorage storage,
org.swisspush.gateleen.logging.LoggingResourceManager loggingResourceManager,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler,
String userProfilePath,
HttpHook httpHook,
String urlPattern,
io.vertx.core.http.HttpClient selfClient)
vertx - vertxstorage - storageloggingResourceManager - loggingResourceManagermonitoringHandler - monitoringHandleruserProfilePath - userProfilePathhttpHook - httpHookurlPattern - - this can be a listener or a normal urlPattern (eg. for a route)public void forward(io.vertx.core.http.HttpServerRequest request,
io.vertx.core.buffer.Buffer requestBody)
request - - the original but already consumed requestrequestBody - - saved buffer with the data of body from the original requestpublic void forward(io.vertx.core.http.HttpServerRequest request)
request - requestpublic void cleanup()
public HttpHook getHook()
Copyright © 2016–2018. All rights reserved.