public static enum KeepAliveStrategy.DefaultKeepAliveStrategy extends Enum<KeepAliveStrategy.DefaultKeepAliveStrategy> implements KeepAliveStrategy
KeepAliveStrategy.DefaultKeepAliveStrategy
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
keepAlive(Request ahcRequest,
io.netty.handler.codec.http.HttpRequest request,
io.netty.handler.codec.http.HttpResponse response)
Implemented in accordance with RFC 7230 section 6.1
https://tools.ietf.org/html/rfc7230#section-6.1
|
static KeepAliveStrategy.DefaultKeepAliveStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeepAliveStrategy.DefaultKeepAliveStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeepAliveStrategy.DefaultKeepAliveStrategy INSTANCE
public static KeepAliveStrategy.DefaultKeepAliveStrategy[] values()
for (KeepAliveStrategy.DefaultKeepAliveStrategy c : KeepAliveStrategy.DefaultKeepAliveStrategy.values()) System.out.println(c);
public static KeepAliveStrategy.DefaultKeepAliveStrategy 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 boolean keepAlive(Request ahcRequest, io.netty.handler.codec.http.HttpRequest request, io.netty.handler.codec.http.HttpResponse response)
keepAlive
in interface KeepAliveStrategy
ahcRequest
- the Request, as built by AHCrequest
- the HTTP request sent to Nettyresponse
- the HTTP response received from NettyCopyright © 2015. All Rights Reserved.