public class QueueBrowser
extends java.lang.Object
implements io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APPLICATION_JSON |
static java.lang.String |
CONTENT_TYPE |
static java.lang.String |
PAYLOAD |
static java.lang.String |
UTF_8 |
| Constructor and Description |
|---|
QueueBrowser(io.vertx.core.Vertx vertx,
java.lang.String prefix,
java.lang.String redisquesAddress,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
decode(java.lang.String encoded)
Decode the payload if the content-type is text or json.
|
java.lang.String |
encode(java.lang.String decoded)
Encode the payload from a payloadString or payloadObjet.
|
void |
handle(io.vertx.core.http.HttpServerRequest request) |
public static final java.lang.String APPLICATION_JSON
public static final java.lang.String CONTENT_TYPE
public static final java.lang.String UTF_8
public static final java.lang.String PAYLOAD
public QueueBrowser(io.vertx.core.Vertx vertx,
java.lang.String prefix,
java.lang.String redisquesAddress,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler)
public void handle(io.vertx.core.http.HttpServerRequest request)
handle in interface io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest>public java.lang.String encode(java.lang.String decoded)
decoded - decodedpublic java.lang.String decode(java.lang.String encoded)
encoded - encoded