public enum SocketPolicy extends Enum<SocketPolicy>
| Enum Constant and Description |
|---|
DISCONNECT_AFTER_REQUEST
Close connection after reading the request but before writing the response.
|
DISCONNECT_AT_END
Close the socket after the response.
|
DISCONNECT_AT_START
Request immediate close of connection without even reading the request.
|
DISCONNECT_DURING_REQUEST_BODY
Close connection after reading half of the request body (if present).
|
DISCONNECT_DURING_RESPONSE_BODY
Close connection after writing half of the response body (if present).
|
FAIL_HANDSHAKE
Don't trust the client during the SSL handshake.
|
KEEP_OPEN
Keep the socket open after the response.
|
NO_RESPONSE
Don't respond to the request but keep the socket open.
|
SHUTDOWN_INPUT_AT_END
Shutdown the socket input after sending the response.
|
SHUTDOWN_OUTPUT_AT_END
Shutdown the socket output after sending the response.
|
UPGRADE_TO_SSL_AT_END
Wrap the socket with SSL at the completion of this request/response pair.
|
| Modifier and Type | Method and Description |
|---|---|
static SocketPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocketPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocketPolicy KEEP_OPEN
public static final SocketPolicy DISCONNECT_AT_END
public static final SocketPolicy UPGRADE_TO_SSL_AT_END
public static final SocketPolicy DISCONNECT_AT_START
public static final SocketPolicy DISCONNECT_AFTER_REQUEST
public static final SocketPolicy DISCONNECT_DURING_REQUEST_BODY
public static final SocketPolicy DISCONNECT_DURING_RESPONSE_BODY
public static final SocketPolicy FAIL_HANDSHAKE
public static final SocketPolicy SHUTDOWN_INPUT_AT_END
public static final SocketPolicy SHUTDOWN_OUTPUT_AT_END
public static final SocketPolicy NO_RESPONSE
public static SocketPolicy[] values()
for (SocketPolicy c : SocketPolicy.values()) System.out.println(c);
public static SocketPolicy 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 nullCopyright © 2016. All Rights Reserved.