com.createtank.elemenope.transports
Class SoapMethodDispatcher

java.lang.Object
  extended by com.createtank.elemenope.DispatcherFailoverImpl
      extended by com.createtank.elemenope.transports.SoapMethodDispatcher
All Implemented Interfaces:
Dispatcher, ElemenopeComponent, ElemenopeConnectionEntity, FailoverDispatcher

public class SoapMethodDispatcher
extends DispatcherFailoverImpl

SOAP implementation of the elemenope Dispatcher interface.

Is configured to call a sinngle operation on a service.

Author:
John Joseph Roets [joe@createtank.com]

Constructor Summary
SoapMethodDispatcher()
          Creates a new instance of XmlRpcElemenopeDispatcher
 
Method Summary
 void connect(Connector connector)
          Connect to entity
 java.lang.Object dispatchCallback(java.lang.String operationType, java.lang.Object object)
          Implementation specific sending functionality called from generic failover implmentation.
 java.lang.Object dispatchCallback(java.lang.String operationType, java.lang.Object object, java.util.Map atts)
          Implementation specific sending functionality called from generic failover implmentation.
 java.util.Map getConnectionAttributes()
          gets connectivity attributes
 void releaseComponents()
          Should be called upon shutdown, in order for elemenope component classes clean up after themselves.
 ElemenopeDispatchResponse send(ElemenopeDispatchResponse edr, java.lang.String operationType, java.lang.Object object)
          Calls the implementation specific callback functionality in order to attempt failover.
 void setComponents(ElemenopeComponents components)
          Passes all configured components to implementing Object.
 void setConfigurationAttributes(java.util.Map atts)
          sets configuration attributes
 void setConnectionAttributes(java.util.Map atts)
          sets connectivity attributes
 
Methods inherited from class com.createtank.elemenope.DispatcherFailoverImpl
failover, failover, send, send, send, send
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapMethodDispatcher

public SoapMethodDispatcher()
Creates a new instance of XmlRpcElemenopeDispatcher

Method Detail

setComponents

public void setComponents(ElemenopeComponents components)
Description copied from interface: ElemenopeComponent
Passes all configured components to implementing Object.

Should ususally be called at the end of the initialization cycle, when all components have been instantiated.


setConnectionAttributes

public void setConnectionAttributes(java.util.Map atts)
                             throws ElemenopeException
Description copied from interface: ElemenopeConnectionEntity
sets connectivity attributes

Parameters:
atts - Map of connectivity attributes
Throws:
ElemenopeException

connect

public void connect(Connector connector)
             throws ElemenopeConnectionException
Connect to entity

Parameters:
connector -
Throws:
ElemenopeConnectionException

getConnectionAttributes

public java.util.Map getConnectionAttributes()
                                      throws ElemenopeException
Description copied from interface: ElemenopeConnectionEntity
gets connectivity attributes

Returns:
connectivity attributes
Throws:
ElemenopeException

send

public ElemenopeDispatchResponse send(ElemenopeDispatchResponse edr,
                                      java.lang.String operationType,
                                      java.lang.Object object)
                               throws ElemenopeException
Description copied from class: DispatcherFailoverImpl
Calls the implementation specific callback functionality in order to attempt failover.

Specified by:
send in interface FailoverDispatcher
Overrides:
send in class DispatcherFailoverImpl
Returns:
Throws:
ElemenopeException

dispatchCallback

public java.lang.Object dispatchCallback(java.lang.String operationType,
                                         java.lang.Object object)
                                  throws ElemenopeException
Description copied from interface: FailoverDispatcher
Implementation specific sending functionality called from generic failover implmentation.

Returns:
Throws:
ElemenopeException

dispatchCallback

public java.lang.Object dispatchCallback(java.lang.String operationType,
                                         java.lang.Object object,
                                         java.util.Map atts)
                                  throws ElemenopeException
Description copied from interface: FailoverDispatcher
Implementation specific sending functionality called from generic failover implmentation.

Returns:
Throws:
ElemenopeException

releaseComponents

public void releaseComponents()
Description copied from interface: ElemenopeComponent
Should be called upon shutdown, in order for elemenope component classes clean up after themselves.


setConfigurationAttributes

public void setConfigurationAttributes(java.util.Map atts)
                                throws ElemenopeException
Description copied from interface: ElemenopeComponent
sets configuration attributes

Parameters:
atts - Map of connectivity attributes
Throws:
ElemenopeException