Package org.jboss.modcluster.container
Enum Connector.Type
- java.lang.Object
-
- java.lang.Enum<Connector.Type>
-
- org.jboss.modcluster.container.Connector.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Connector.Type>
- Enclosing interface:
- Connector
public static enum Connector.Type extends Enum<Connector.Type>
Indicates the type of connector.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDefaultPort()
Indicates the default port for this type of connectorString
toString()
Returns lower case name of this enum constant.static Connector.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Connector.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AJP
public static final Connector.Type AJP
-
HTTP
public static final Connector.Type HTTP
-
HTTPS
public static final Connector.Type HTTPS
-
-
Method Detail
-
values
public static Connector.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Connector.Type c : Connector.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Connector.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultPort
public int getDefaultPort()
Indicates the default port for this type of connector- Returns:
- a valid port number
-
toString
public String toString()
Returns lower case name of this enum constant.- Overrides:
toString
in classEnum<Connector.Type>
-
-