org.objectweb.jotm.btp.roles
Class Decider

java.lang.Object
  |
  +--org.objectweb.jotm.btp.axis.WebService
        |
        +--org.objectweb.jotm.btp.roles.Actor
              |
              +--org.objectweb.jotm.btp.roles.Superior
                    |
                    +--org.objectweb.jotm.btp.roles.Decider
All Implemented Interfaces:
BtpResource

public class Decider
extends Superior

Decider object is a Superior object which is not an Inferior. A Decider can be Atomic (Coordinator role) or Cohesive (Composer role).


Field Summary
 
Fields inherited from class org.objectweb.jotm.btp.axis.WebService
url_
 
Fields inherited from interface org.objectweb.jotm.btp.roles.BtpResource
VOTE_CANCELLED, VOTE_PREPARED, VOTE_WRONG_STATE
 
Constructor Summary
Decider()
           
 
Method Summary
 String onMessage(String xml)
          receives an xml message from a Client.
 
Methods inherited from class org.objectweb.jotm.btp.roles.Superior
applicationMessage, applicationMessage, cancel, cancelled, confirm, confirmed, contextReply, contradiction, enrol, enrolled, fault, getInferiorsList, listTransactions, prepare, prepareInferiors, redirect, reportFault, reportUnknownTransaction, requestInferiorStatuses, requestStatus, resign, status
 
Methods inherited from class org.objectweb.jotm.btp.roles.Actor
getLastIncoming, getLastIncoming, getLastOutgoing, getLastOutgoing, getRecentIncoming, getRecentOutgoing, logger, logIncoming, logIncoming, logOutgoing, logOutgoing, messages
 
Methods inherited from class org.objectweb.jotm.btp.axis.WebService
buildURI, buildURI, getTransactionIdentifierFromUri, getUrl, getUrlFromUri, getWsddParameter, isLocalUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Decider

public Decider()
Method Detail

onMessage

public String onMessage(String xml)
receives an xml message from a Client. The onMessage methods is the main method from the Web Service. The client uses this method to send messages (xml soap message).

Specified by:
onMessage in class Superior
Parameters:
xml - an xml soap message from a client
Returns:
an xml soap message in response