public class LoggerHandler extends Object implements PlatformHandler, Handler<RoutingContext>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<LoggerHandler> |
__TYPE_ARG |
static LoggerFormat |
DEFAULT_FORMAT |
Constructor and Description |
---|
LoggerHandler(LoggerHandler delegate) |
LoggerHandler(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static LoggerHandler |
create()
Create a handler with default format
|
static LoggerHandler |
create(boolean immediate,
LoggerFormat format)
Create a handler with he specified format
|
static LoggerHandler |
create(LoggerFormat format)
Create a handler with he specified format
|
LoggerHandler |
customFormatter(java.util.function.Function<HttpServerRequest,String> formatter)
Deprecated.
|
LoggerHandler |
customFormatter(LoggerFormatter formatter)
Set the custom formatter to be used by the handler.
|
boolean |
equals(Object o) |
LoggerHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static LoggerHandler |
newInstance(LoggerHandler arg) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<LoggerHandler> __TYPE_ARG
public static final LoggerFormat DEFAULT_FORMAT
public LoggerHandler(LoggerHandler delegate)
public LoggerHandler(Object delegate)
public LoggerHandler getDelegate()
getDelegate
in interface PlatformHandler
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
handle
in interface PlatformHandler
event
- the event to handlepublic static LoggerHandler create()
public static LoggerHandler create(LoggerFormat format)
format
- the formatpublic static LoggerHandler create(boolean immediate, LoggerFormat format)
immediate
- true if logging should occur as soon as request arrivesformat
- the format@Deprecated public LoggerHandler customFormatter(java.util.function.Function<HttpServerRequest,String> formatter)
formatter
- the formatting functionpublic LoggerHandler customFormatter(LoggerFormatter formatter)
formatter
- the formatterpublic static LoggerHandler newInstance(LoggerHandler arg)
Copyright © 2023 Eclipse. All rights reserved.