Package org.somda.sdc.dpws.device.helper
Enum SupportedEprUriScheme
- java.lang.Object
-
- java.lang.Enum<SupportedEprUriScheme>
-
- org.somda.sdc.dpws.device.helper.SupportedEprUriScheme
-
- All Implemented Interfaces:
Serializable,Comparable<SupportedEprUriScheme>
public enum SupportedEprUriScheme extends Enum<SupportedEprUriScheme>
Enumeration of URI schemes that are supported to be used as an EPR address.The recommended way of creating a unique EPR address is the UUID approach. A comprehensive list of URI schemes is requestable from the IANA website.
The device logic may use portions of the EPR address information to enrich XAddrs URL base paths. If an unknown URI type is given, then no extra information will be added.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSchemeName()StringgetSpecificPart()static SupportedEprUriSchemevalueOf(String name)Returns the enum constant of this type with the specified name.static SupportedEprUriScheme[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HTTP
public static final SupportedEprUriScheme HTTP
HTTP URI scheme.- See Also:
- [RFC8615]
-
HTTPS
public static final SupportedEprUriScheme HTTPS
HTTPS URI scheme.- See Also:
- [RFC8615]
-
URN_UUID
public static final SupportedEprUriScheme URN_UUID
URN URI scheme with namespace uuid.- See Also:
- [RFC8141], URN namespaces
-
URN_OID
public static final SupportedEprUriScheme URN_OID
URN URI scheme with namespace oid.- See Also:
- [RFC8141], URN namespaces
-
-
Method Detail
-
values
public static SupportedEprUriScheme[] 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 (SupportedEprUriScheme c : SupportedEprUriScheme.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SupportedEprUriScheme 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
-
getSchemeName
public String getSchemeName()
-
getSpecificPart
public String getSpecificPart()
-
-