Package org.jivesoftware.openfire.spi
Enum Class ConnectionType
- All Implemented Interfaces:
Serializable
,Comparable<ConnectionType>
,Constable
Types of (socket-based, including HTTP) connections.
This is an enumeration of the connections that are expected to be terminated by an instance of the Openfire instance,
and is used to define type-specific characteristics, including but not limited to:
- Property-name definition
- Applicable encryption policies
- Identity & trust store configuration
- Author:
- Guus der Kinderen, guus.der.kinderen@gmail.com
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBOSH (HTTP-bind) based client connectivity.Openfire External Component connectivity.Openfire Connection Manager (multiplexer) connectivity.Socket-based client connectivity.Socket-based server-to-server (XMPP federation) connectivity.Openfire web-admin console. -
Method Summary
Modifier and TypeMethodDescriptionReturns a type from which configuration can be used, when configuration specific for this type is missing.Returns the prefix used for the name of properties that are used to configure connections of this type.boolean
Flag that indicates whether the connections of this type are client-oriented.static ConnectionType
Returns the enum constant of this class with the specified name.static ConnectionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SOCKET_S2S
Socket-based server-to-server (XMPP federation) connectivity. -
SOCKET_C2S
Socket-based client connectivity. -
BOSH_C2S
BOSH (HTTP-bind) based client connectivity. -
WEBADMIN
Openfire web-admin console. -
COMPONENT
Openfire External Component connectivity. -
CONNECTION_MANAGER
Openfire Connection Manager (multiplexer) connectivity.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isClientOriented
public boolean isClientOriented()Flag that indicates whether the connections of this type are client-oriented.- Returns:
- true if it is SOCKET_C2S or its fallback is SOCKET_C2S.
-
getPrefix
Returns the prefix used for the name of properties that are used to configure connections of this type.- Returns:
- A property name prefix (never null or an empty string).
-
getFallback
Returns a type from which configuration can be used, when configuration specific for this type is missing.- Returns:
- A configuration fallback, or null if no such fallback exists.
-