@Deprecated public enum Protocol extends Enum<Protocol>
Protocol represents protocols from an url.| Enum Constant and Description |
|---|
EAR
Deprecated.
The ear protocol.
|
FILE
Deprecated.
The jar protocol.
|
FTP
Deprecated.
The ftp protocol.
|
HTTP
Deprecated.
The http protocol.
|
HTTPS
Deprecated.
The https protocol.
|
JAR
Deprecated.
The jar protocol.
|
MAILTO
Deprecated.
The jar protocol.
|
NEWS
Deprecated.
The jar protocol.
|
NNTP
Deprecated.
The nntp protocol.
|
URN
Deprecated.
The urn protocol.
|
WAR
Deprecated.
The war protocol.
|
| Modifier and Type | Method and Description |
|---|---|
static Protocol |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static Protocol[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protocol EAR
public static final Protocol FILE
public static final Protocol FTP
public static final Protocol HTTP
public static final Protocol HTTPS
public static final Protocol JAR
public static final Protocol MAILTO
public static final Protocol NEWS
public static final Protocol NNTP
public static final Protocol URN
public static final Protocol WAR
public static Protocol[] values()
for (Protocol c : Protocol.values()) System.out.println(c);
public static Protocol 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 nullCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.