Enum Class FriendState
- All Implemented Interfaces:
Serializable,Comparable<FriendState>,java.lang.constant.Constable
Represents the state of an OSLC friend:
- UNEXPECTED_ERROR - An error occurred when computing the state.
- OFFLINE - A connection with the friend server cannot be established, typically when the host is unknown.
- DOWN - Friend server is reachable but root services resource cannot be retrieved for any reason.
- REJECTING - Friend server is up and running but is rejecting the consumer information.
- OK - Friend server is reachable and accepting the consumer information.
- Since:
- 2.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFriend is on a different domain than the application.Friend server is reachable but root services resource cannot be retrieved for any reason.Friend server is up and running but returned domain mismatches the registered one.No Friend was found.Friend referenced by a non FQDN URI.A connection with the friend server cannot be established, typically when the host is unknown.Friend server is reachable and accepting the consumer information.Friend server is reachable but a re-hosting process is undergoing.Friend server is up and running but is rejecting the consumer information.Friend server is reachable but an SSL error stopped the authentication processAn error occurred when computing the state. -
Method Summary
Modifier and TypeMethodDescriptionstatic FriendStateReturns the enum constant of this class with the specified name.static FriendState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNEXPECTED_ERROR
An error occurred when computing the state. -
OFFLINE
A connection with the friend server cannot be established, typically when the host is unknown. -
DOWN
Friend server is reachable but root services resource cannot be retrieved for any reason. -
REJECTING
Friend server is up and running but is rejecting the consumer information. -
MISMATCH
Friend server is up and running but returned domain mismatches the registered one.- Since:
- 3.4.0
-
OK
Friend server is reachable and accepting the consumer information. -
REHOSTING
Friend server is reachable but a re-hosting process is undergoing.- Since:
- 3.1.1
-
SSL_ERROR
Friend server is reachable but an SSL error stopped the authentication process- Since:
- 3.7.0
-
MISSING_FRIEND
No Friend was found.- Since:
- 3.7.0
-
NOT_FQDN
Friend referenced by a non FQDN URI.- Since:
- 3.12.0
-
DIFFERENT_DOMAIN
Friend is on a different domain than the application.- Since:
- 3.12.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-