iaik.xkms
Enum ResponseMechanism

Object
  extended by Enum<ResponseMechanism>
      extended by ResponseMechanism
All Implemented Interfaces:
Serializable, Comparable<ResponseMechanism>

public enum ResponseMechanism
extends Enum<ResponseMechanism>

ResponseMechanism constant definitions.

[99] The <ResponseMechanism> element in the request specifies one or more strings included in the request that specify extended protocol mechanisms that the client supports in connection with a request.

[100] ResponseMechanism values are specified as anyURIs.


Enum Constant Summary
PENDING
          The requestor is prepared to accept a response that uses asynchronous processing, i.e.
REPRESENT
          The requestor is prepared to accept a response that uses the two-phase protocol, i.e.
REQUEST_SIGNATURE_VALUE
          The requestor is prepared to accept a response that carries a <RequestSignatureValue> element.
 
Method Summary
 String toString()
          returns the String representation of this enum constant, including the namespace.
static ResponseMechanism valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResponseMechanism[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PENDING

public static final ResponseMechanism PENDING
The requestor is prepared to accept a response that uses asynchronous processing, i.e. the service MAY return the ResultMajor code 'Pending'.


REPRESENT

public static final ResponseMechanism REPRESENT
The requestor is prepared to accept a response that uses the two-phase protocol, i.e. the service MAY return the ResultMajor code 'Represent'.


REQUEST_SIGNATURE_VALUE

public static final ResponseMechanism REQUEST_SIGNATURE_VALUE
The requestor is prepared to accept a response that carries a <RequestSignatureValue> element.

Method Detail

values

public static ResponseMechanism[] 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 (ResponseMechanism c : ResponseMechanism.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ResponseMechanism 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 name
NullPointerException - if the argument is null

toString

public String toString()
returns the String representation of this enum constant, including the namespace.

Overrides:
toString in class Enum<ResponseMechanism>
Returns:
the String representation including the namespace.