com.filenet.api.constants
Class ConnectionType
- java.lang.Object
-
- com.filenet.api.constants.ConnectionType
-
- All Implemented Interfaces:
- java.io.Serializable
public class ConnectionType extends java.lang.Object implements java.io.Serializable
Provides the implementation of type-safe enumeration objects that identify the connection type between the client and the Content Engine server. This class also provides enumerated values for Enterprise Java™Beans (EJB) and SOAP transports. You can call the methods on this class to retrieve the connection type as a constant or an integer value, to compare connection type identities, or to convert integer values to string representations.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static ConnectionType
EJB
A constant representing theConnectionType
for the EJB transport.static int
EJB_AS_INT
Anint
value associated with theEJB
instance of this class.static ConnectionType
SOAP
A constant representing theConnectionType
for the SOAP transport.static int
SOAP_AS_INT
Anint
value associated with theSOAP
instance of this class.
-
Method Summary
Methods Modifier and Type Method and Description static ConnectionType
getInstanceFromInt(int value)
Gets the object instance from its associated integer value (see the *_AS_INT constants in this class).int
getValue()
Returns an integer value associated with a specific instance of this class.java.lang.String
toString()
Returns aString
representation of this instance.
-
-
-
Field Detail
-
EJB_AS_INT
public static final int EJB_AS_INT
Anint
value associated with theEJB
instance of this class. It is better to use the static instances of this class than to use the associatedint
values. Theint
values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
EJB
public static final ConnectionType EJB
A constant representing theConnectionType
for the EJB transport.
-
SOAP_AS_INT
public static final int SOAP_AS_INT
Anint
value associated with theSOAP
instance of this class. It is better to use the static instances of this class than to use the associatedint
values. Theint
values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
SOAP
public static final ConnectionType SOAP
A constant representing theConnectionType
for the SOAP transport.
-
-
Method Detail
-
getValue
public int getValue()
Returns an integer value associated with a specific instance of this class.- Returns:
- An integer for a specific instance of this class.
-
getInstanceFromInt
public static ConnectionType getInstanceFromInt(int value)
Gets the object instance from its associated integer value (see the *_AS_INT constants in this class).- Parameters:
value
- An integer associated with a particular instance of this class.- Returns:
- The referenced object instance.
- Throws:
EngineRuntimeException
- when the parameter isnull
or otherwise invalid.
-
toString
public java.lang.String toString()
Returns aString
representation of this instance.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A
String
representing the instance.
-
-