Package org.cip4.jdflib.util
Enum UrlUtil.URLProtocol
- java.lang.Object
-
- java.lang.Enum<UrlUtil.URLProtocol>
-
- org.cip4.jdflib.util.UrlUtil.URLProtocol
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<UrlUtil.URLProtocol>
- Enclosing class:
- UrlUtil
public static enum UrlUtil.URLProtocol extends java.lang.Enum<UrlUtil.URLProtocol>
rough classification of protocol type
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UrlUtil.URLProtocolvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static UrlUtil.URLProtocol[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
cid
public static final UrlUtil.URLProtocol cid
mime
-
http
public static final UrlUtil.URLProtocol http
http or https
-
file
public static final UrlUtil.URLProtocol file
file
-
ftp
public static final UrlUtil.URLProtocol ftp
ftp
-
-
Method Detail
-
values
public static UrlUtil.URLProtocol[] 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 (UrlUtil.URLProtocol c : UrlUtil.URLProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UrlUtil.URLProtocol valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-