public enum Connectors extends Enum<Connectors>
Enum Constant and Description |
---|
HTTP |
HTTP_HTTPS |
HTTPS |
Modifier and Type | Method and Description |
---|---|
int |
getPortNum() |
String |
getPreferredProtocol() |
static Connectors |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Connectors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Connectors HTTP
public static final Connectors HTTP_HTTPS
public static final Connectors HTTPS
public static Connectors[] values()
for (Connectors c : Connectors.values()) System.out.println(c);
public static Connectors 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 nullpublic String getPreferredProtocol()
public int getPortNum()
Copyright © 2018 Ken Händel. All rights reserved.