org.objectweb.jotm.btp.roles
Class Participant

java.lang.Object
  |
  +--org.objectweb.jotm.btp.axis.WebService
        |
        +--org.objectweb.jotm.btp.roles.Actor
              |
              +--org.objectweb.jotm.btp.roles.Inferior
                    |
                    +--org.objectweb.jotm.btp.roles.Participant
All Implemented Interfaces:
BtpResource
Direct Known Subclasses:
SampleWebService

public class Participant
extends Inferior

A Participant is an Inferior. It receives messages from application and works with its superior.


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
Participant()
           
 
Method Summary
 String onMessage(String xml)
          main method of the Participant Web service.
 
Methods inherited from class org.objectweb.jotm.btp.roles.Inferior
applicationMessage, cancel, confirm, contradiction, deregisterResource, doEnrol, enrolled, getResource, isEnrolled, onApplicationMessage, onCancel, onConfirm, onConfirmOnePhase, onContext, onPrepare, onRelatedGroup, onRequestStatus, onSuperiorState, prepare, registerResource, reportFault, unknownMessage
 
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

Participant

public Participant()
Method Detail

onMessage

public String onMessage(String xml)
main method of the Participant Web service. It receives a xml soap message and returns an other xml soap message.

Specified by:
onMessage in class Inferior
Parameters:
xml - the received xml soap message, the method dispatchs following the type of the message
Returns:
returns a xml soap message