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