IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.services.ws.jaxrpc
Class JaxRpcClientMediator

java.lang.Object
  extended by com.ibm.btt.base.DSENotifier
      extended by com.ibm.btt.base.Service
          extended by com.ibm.btt.services.ws.jaxrpc.JaxRpcConnectorInfrastructure
              extended by com.ibm.btt.services.ws.jaxrpc.JaxRpcClientMediator
All Implemented Interfaces:
Notifier, WSConnector, java.io.Externalizable, java.io.Serializable, java.lang.reflect.InvocationHandler
Direct Known Subclasses:
BTTJaxRpcConnector

public abstract class JaxRpcClientMediator
extends JaxRpcConnectorInfrastructure
implements java.lang.reflect.InvocationHandler

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.btt.base.Service
externalizer, name
 
Fields inherited from class com.ibm.btt.base.DSENotifier
handlersList
 
Constructor Summary
JaxRpcClientMediator()
           
 
Method Summary
protected  java.lang.Object doInvoke(java.lang.reflect.Method arg0, java.lang.Object[] arg1)
           
protected  java.lang.Object doInvoke(java.lang.reflect.Method arg0, java.lang.Object[] arg1, java.rmi.Remote portStub)
           
 javax.xml.rpc.Service getJaxRpcService()
          Returns the value of service property.
protected  javax.xml.namespace.QName getPortQName()
          Returns the QName for service port.
protected  java.rmi.Remote getPortStub()
           
 java.lang.Class<?> getServiceEndpointInterface()
          Returns the value of serviceEndpointInterface property.
 java.lang.Object invoke(java.lang.Object arg0, java.lang.reflect.Method arg1, java.lang.Object[] arg2)
          Invoke web service operation by way of JAX-RPC.
protected  boolean isPrepared()
          Returns whether the web service invocation is ready.
protected  void prepare()
          Creates the service instance, remote port object and gets ready for invocation the remote web service operations.
protected  void preparePortStub(javax.xml.rpc.Stub stub)
          Sets properties defined in the service to JAX-RPC stub.
protected  void processPortStub(javax.xml.rpc.Stub stub)
          Allows for custom processing in subclasses.
 void reset()
          Creates web service invocation object, after setting all the WebService properties.
 void setJaxRpcService(javax.xml.rpc.Service jaxRpcService)
          Sets the value of the service property.
 void setLookupServiceOnStartup(boolean lookupServiceOnStartup)
          Sets the value of the lookupServiceOnStartup property.
 void setServiceEndpointInterface(java.lang.Class<?> serviceEndpointInterface)
          Sets the value of the serviceEndpointInterface property.
 
Methods inherited from class com.ibm.btt.services.ws.jaxrpc.JaxRpcConnectorInfrastructure
createJaxRpcService, createService, createServiceFactory, getContext, getEndpointAddress, getJaxRpcServiceInterface, getJaxRpcServiceProcessors, getJaxRpcServiceProperties, getNamespaceUri, getPassword, getPortName, getQName, getServiceFactory, getServiceFactoryClass, getServiceName, getUsername, getWsdlUrl, isMaintainSession, processJaxRpcService, setContext, setEndpointAddress, setJaxRpcServiceInterface, setJaxRpcServiceProcessors, setJaxRpcServiceProperties, setMaintainSession, setNamespaceUri, setPassword, setPortName, setServiceFactory, setServiceFactoryClass, setServiceName, setUsername, setWsdlUrl
 
Methods inherited from class com.ibm.btt.base.Service
externalizer, getExternalizer, getTagName, initializeFrom, readExternal, readExternal, readObject, removeExternal, setExternalizer, terminate, toString, toStrings, toTags, writeExternal, writeExternal
 
Methods inherited from class com.ibm.btt.base.DSENotifier
addHandler, getHandlersList, getName, removeHandler, setName, signalEvent, signalEvent, signalEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.btt.base.ws.WSConnector
execute, getProxy
 
Methods inherited from interface com.ibm.btt.base.Externalizable
getName, setName
 

Constructor Detail

JaxRpcClientMediator

public JaxRpcClientMediator()
Method Detail

setJaxRpcService

public void setJaxRpcService(javax.xml.rpc.Service jaxRpcService)
Sets the value of the service property.

Parameters:
jaxRpcService - javax.xml.rpc.Service

getJaxRpcService

public javax.xml.rpc.Service getJaxRpcService()
Returns the value of service property.

Returns:
javax.xml.rpc.Service

getServiceEndpointInterface

public java.lang.Class<?> getServiceEndpointInterface()
Returns the value of serviceEndpointInterface property.

Returns:
java.lang.Class

setServiceEndpointInterface

public void setServiceEndpointInterface(java.lang.Class<?> serviceEndpointInterface)
Sets the value of the serviceEndpointInterface property.

Parameters:
serviceEndpointInterface - java.lang.Class

setLookupServiceOnStartup

public void setLookupServiceOnStartup(boolean lookupServiceOnStartup)
Sets the value of the lookupServiceOnStartup property.

Parameters:
lookupServiceOnStartup - boolean

prepare

protected void prepare()
                throws BTTWsFaultException
Creates the service instance, remote port object and gets ready for invocation the remote web service operations.

Throws:
BTTWsFaultException

reset

public void reset()
           throws BTTWsFaultException
Creates web service invocation object, after setting all the WebService properties.

Specified by:
reset in interface WSConnector
Throws:
BTTWsFaultException

isPrepared

protected boolean isPrepared()
Returns whether the web service invocation is ready.


getPortQName

protected final javax.xml.namespace.QName getPortQName()
Returns the QName for service port.


preparePortStub

protected void preparePortStub(javax.xml.rpc.Stub stub)
Sets properties defined in the service to JAX-RPC stub.

Parameters:
stub - javax.xml.rpc.Stub

processPortStub

protected void processPortStub(javax.xml.rpc.Stub stub)
Allows for custom processing in subclasses.

Parameters:
stub - javax.xml.rpc.Stub

getPortStub

protected java.rmi.Remote getPortStub()

invoke

public java.lang.Object invoke(java.lang.Object arg0,
                               java.lang.reflect.Method arg1,
                               java.lang.Object[] arg2)
                        throws java.lang.Throwable
Invoke web service operation by way of JAX-RPC.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

doInvoke

protected java.lang.Object doInvoke(java.lang.reflect.Method arg0,
                                    java.lang.Object[] arg1)
                             throws java.lang.Throwable
Throws:
java.lang.Throwable

doInvoke

protected java.lang.Object doInvoke(java.lang.reflect.Method arg0,
                                    java.lang.Object[] arg1,
                                    java.rmi.Remote portStub)
                             throws java.lang.Throwable
Throws:
java.lang.Throwable

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011