Enum URIProvider.Scope
- All Implemented Interfaces:
Serializable
,Comparable<URIProvider.Scope>
- Enclosing interface:
- URIProvider
Defines the scope in which the URI may be used.
Implementations should pay close attention to the scope requested and not emit URIs inappropriate for the scope requested.
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic URIProvider.Scope
Returns the enum constant of this type with the specified name.static URIProvider.Scope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EXTERNAL
A External URI safe to be used by the requesting client in a external context. This does not imply it can be stored, shared between clients or published, only that the client may be on the public internet as opposed to an internal network. -
INTERNAL
Internal URI only to be used by a client on an internal network and never leaked onto a public network. -
PUBLIC
A URI that may be published to many client in public context. Implementations should only issue URIs with this scope if the URI can safely be shared between multiple clients, and therefore by definition public to anonymous clients anywhere on the internet.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-