Class RequestLogger
- java.lang.Object
-
- org.swisspush.gateleen.core.logging.RequestLogger
-
public class RequestLogger extends java.lang.ObjectLogger class to manually log requests. This class is mainly used for requests to managed configuration resources which are handled separately.- Author:
- https://github.com/mcweba [Marc-Andre Weber]
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBODYstatic java.lang.StringERRORstatic java.lang.StringMESSAGEstatic java.lang.StringOKstatic java.lang.StringREQUEST_HEADERSstatic java.lang.StringREQUEST_METHODstatic java.lang.StringREQUEST_STATUSstatic java.lang.StringREQUEST_URIstatic java.lang.StringRESPONSE_HEADERSstatic java.lang.StringSTATUS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidlogRequest(io.vertx.core.eventbus.EventBus eventBus, io.vertx.core.http.HttpServerRequest request, int status, io.vertx.core.buffer.Buffer data)static voidlogRequest(io.vertx.core.eventbus.EventBus eventBus, io.vertx.core.http.HttpServerRequest request, int status, io.vertx.core.buffer.Buffer data, io.vertx.core.MultiMap responseHeaders)
-
-
-
Field Detail
-
OK
public static final java.lang.String OK
- See Also:
- Constant Field Values
-
ERROR
public static final java.lang.String ERROR
- See Also:
- Constant Field Values
-
MESSAGE
public static final java.lang.String MESSAGE
- See Also:
- Constant Field Values
-
STATUS
public static final java.lang.String STATUS
- See Also:
- Constant Field Values
-
REQUEST_URI
public static final java.lang.String REQUEST_URI
- See Also:
- Constant Field Values
-
REQUEST_METHOD
public static final java.lang.String REQUEST_METHOD
- See Also:
- Constant Field Values
-
REQUEST_HEADERS
public static final java.lang.String REQUEST_HEADERS
- See Also:
- Constant Field Values
-
RESPONSE_HEADERS
public static final java.lang.String RESPONSE_HEADERS
- See Also:
- Constant Field Values
-
REQUEST_STATUS
public static final java.lang.String REQUEST_STATUS
- See Also:
- Constant Field Values
-
BODY
public static final java.lang.String BODY
- See Also:
- Constant Field Values
-
-
Method Detail
-
logRequest
public static void logRequest(io.vertx.core.eventbus.EventBus eventBus, io.vertx.core.http.HttpServerRequest request, int status, io.vertx.core.buffer.Buffer data)
-
logRequest
public static void logRequest(io.vertx.core.eventbus.EventBus eventBus, io.vertx.core.http.HttpServerRequest request, int status, io.vertx.core.buffer.Buffer data, io.vertx.core.MultiMap responseHeaders)
-
-