public static enum HttpSender.CnxState extends java.lang.Enum<HttpSender.CnxState>
UNSTARTED
: Initial state, the connection is yet to be established with the HTTP server, cannot yet be used.
Can become either READY
if no error occur, or terminate into TERMINATED
or ERRORED
.READY
: Intermediate state, the connection has been established, and the Http connection is ready to be used
Can become either USED
when the connection have it under its use, or terminate into TERMINATED
or ERRORED
.USED
: Intermediate state, the HTTP connection is being used
Can become either READY
when the connection usage as successfully terminated, or terminate into TERMINATED
or ERRORED
.TERMINATED
: Final state, the connection has been asked for closure, and cannot be used anymore.ERRORED
: Final state, an error occurred, and cannot be used anymoreEnum Constant and Description |
---|
ERRORED |
READY |
TERMINATED |
UNSTARTED |
USED |
Modifier and Type | Method and Description |
---|---|
static HttpSender.CnxState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpSender.CnxState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpSender.CnxState UNSTARTED
public static final HttpSender.CnxState READY
public static final HttpSender.CnxState USED
public static final HttpSender.CnxState TERMINATED
public static final HttpSender.CnxState ERRORED
public static HttpSender.CnxState[] values()
for (HttpSender.CnxState c : HttpSender.CnxState.values()) System.out.println(c);
public static HttpSender.CnxState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2021 Dassault Systèmes, All Rights Reserved.