public enum AccessLogHandlerFactory extends Enum<AccessLogHandlerFactory>
Modifier and Type | Method and Description |
---|---|
ChannelHandler |
create(Function<AccessLogArgProvider,AccessLog> accessLog)
Create an access log handler,
AccessLogHandlerH1 or AccessLogHandlerH2 . |
static AccessLogHandlerFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessLogHandlerFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessLogHandlerFactory H1
public static final AccessLogHandlerFactory H2
public static AccessLogHandlerFactory[] values()
for (AccessLogHandlerFactory c : AccessLogHandlerFactory.values()) System.out.println(c);
public static AccessLogHandlerFactory valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic ChannelHandler create(@Nullable Function<AccessLogArgProvider,AccessLog> accessLog)
AccessLogHandlerH1
or AccessLogHandlerH2
.accessLog
- apply an AccessLog
by an AccessLogArgProvider