eu.semiramis.identityaggregator.client
Enum RequestResult.Status
java.lang.Object
java.lang.Enum<RequestResult.Status>
eu.semiramis.identityaggregator.client.RequestResult.Status
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<RequestResult.Status>
- Enclosing class:
- RequestResult
public static enum RequestResult.Status
- extends java.lang.Enum<RequestResult.Status>
Status OK: the operation has successfully performed and no redirection has been need to be achieved.
Status ERROR: there was an error performing operation. Usually connection problem.
Status REDIRECTED: To perform the operation, it was neccesary redirect the user to other provider.
In the latter case, do not write anything in the HTTPServletResponse.
Method Summary |
static RequestResult.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static RequestResult.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
OK
public static final RequestResult.Status OK
ERROR
public static final RequestResult.Status ERROR
REDIRECTED
public static final RequestResult.Status REDIRECTED
values
public static RequestResult.Status[] 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 (RequestResult.Status c : RequestResult.Status.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static RequestResult.Status 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 name
java.lang.NullPointerException
- if the argument is null