Skip navigation links

Java API Reference for Oracle Infrastructure Web Services
11
Release 1 (11.1.1)

E10654-02


oracle.webservices.annotations
Enum ConversationalOperation.Phase

java.lang.Object
  extended by java.lang.Enum<ConversationalOperation.Phase>
      extended by oracle.webservices.annotations.ConversationalOperation.Phase

All Implemented Interfaces:
Serializable, Comparable<ConversationalOperation.Phase>
Enclosing class:
ConversationalOperation

public static enum ConversationalOperation.Phase
extends Enum<ConversationalOperation.Phase>

The phase of the conversation.


Enum Constant Summary
Conversation
          The request message remains in the conversation session, and should be process by the same service endpoint bean instance that is created for this session.
Initiator
          A session is created when an Initiator operation is called and the request message does not carry a session/conversation identifier.
Stateless
          The container may create a new instance, or use pooled instance, to serve the request.
Terminator
          If there is at least one operation annotated as Terminator, a session is ended when timeout, expired, or a Terminator operation is called AND the request message does carry a conversation identifier.

 

Method Summary
static ConversationalOperation.Phase valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConversationalOperation.Phase[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.

 

Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Enum Constant Detail

Initiator

public static final ConversationalOperation.Phase Initiator
A session is created when an Initiator operation is called and the request message does not carry a session/conversation identifier. If a request message with a valid session identifier is sent to an Initiator operation, the runtime will NOT create an new instance. The request message is dispatched to the endpoint instance identified by the identifier.

Conversation

public static final ConversationalOperation.Phase Conversation
The request message remains in the conversation session, and should be process by the same service endpoint bean instance that is created for this session. The request message targeting MUST carry a session identifier; otherwise a client fault is returned.

Terminator

public static final ConversationalOperation.Phase Terminator
If there is at least one operation annotated as Terminator, a session is ended when timeout, expired, or a Terminator operation is called AND the request message does carry a conversation identifier. Any request message targeting a Terminator operation MUST carry a conversation identifier, otherwise a client fault is returned.

Stateless

public static final ConversationalOperation.Phase Stateless
The container may create a new instance, or use pooled instance, to serve the request.

Method Detail

values

public static ConversationalOperation.Phase[] 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 (ConversationalOperation.Phase c : ConversationalOperation.Phase.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ConversationalOperation.Phase 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

Skip navigation links

Copyright © 2006, 2009 Oracle. All Rights Reserved.