IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.services.ws.jaxws
Class JaxWsClientMediator

java.lang.Object
  extended by com.ibm.btt.base.DSENotifier
      extended by com.ibm.btt.base.Service
          extended by com.ibm.btt.services.ws.jaxws.JaxWsConnectorInfrastructure
              extended by com.ibm.btt.services.ws.jaxws.JaxWsClientMediator
All Implemented Interfaces:
Notifier, WSConnector, java.io.Externalizable, java.io.Serializable, java.lang.reflect.InvocationHandler
Direct Known Subclasses:
BTTJaxWsConnector

public abstract class JaxWsClientMediator
extends JaxWsConnectorInfrastructure
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
JaxWsClientMediator()
           
 
Method Summary
protected  java.lang.Object doInvoke(java.lang.reflect.Method arg0, java.lang.Object[] arg1)
           
 javax.xml.ws.Service getJaxWsService()
          Returns the value of the service property.
protected  javax.xml.namespace.QName getPortQName()
          Returns the QName for service port.
protected  java.lang.Object getPortStub()
           
 java.lang.Class<?> getServiceEndpointInterface()
          Returns the value of serviceEndpointInterface property.
 java.lang.String getSoapActionUri()
          Returns the value of the soapActionUri 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-WS.
protected  boolean isPrepared()
          Returns whether the web service invocation is ready.
 boolean isUseSoapAction()
          Returns the value of the useSoapAction property.
protected  void prepare()
          Creates the service instance, remote port object and gets ready for invocation the remote web service operations.
protected  void preparePortStub(java.lang.Object stub)
          Sets properties defined in the service to JAX-WS stub.
 void reset()
          Creates web service invocation object, after setting all the WebService properties.
 void setJaxWsService(javax.xml.ws.Service jaxWsService)
          Sets the value of the service property.
 void setLookupServiceOnStartup(boolean lookupServiceOnStartup)
          Sets the value of the searchServiceOnStartup property.
 void setServiceEndpointInterface(java.lang.Class<?> serviceEndpointInterface)
          Sets the value of the serviceEndpointInterface property.
 void setSoapActionUri(java.lang.String soapActionUri)
          Sets the value of the soapActionUri property.
 void setUseSoapAction(boolean useSoapAction)
          Sets the value of the useSoapAction property.
 
Methods inherited from class com.ibm.btt.services.ws.jaxws.JaxWsConnectorInfrastructure
createJaxWsService, getContext, getEndpointAddress, getHandlerResolver, getNamespaceUri, getPassword, getPortName, getQName, getServiceName, getUsername, getWsdlUrl, isMaintainSession, isMTOMEnabled, setContext, setEndpointAddress, setExecutor, setHandlerResolver, setMaintainSession, setMTOMEnabled, setNamespaceUri, setPassword, setPortName, 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

JaxWsClientMediator

public JaxWsClientMediator()
Method Detail

setJaxWsService

public void setJaxWsService(javax.xml.ws.Service jaxWsService)
Sets the value of the service property.

Parameters:
jaxWsService - javax.xml.ws.Service

getJaxWsService

public javax.xml.ws.Service getJaxWsService()
Returns the value of the service property.

Parameters:
javax.xml.ws.Service -

setUseSoapAction

public void setUseSoapAction(boolean useSoapAction)
Sets the value of the useSoapAction property.

Parameters:
useSoapAction - boolean

isUseSoapAction

public boolean isUseSoapAction()
Returns the value of the useSoapAction property.

Parameters:
boolean -

setSoapActionUri

public void setSoapActionUri(java.lang.String soapActionUri)
Sets the value of the soapActionUri property.

Parameters:
soapActionUri - java.lang.String

getSoapActionUri

public java.lang.String getSoapActionUri()
Returns the value of the soapActionUri property.

Parameters:
java.lang.String -

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 searchServiceOnStartup property.

Parameters:
lookupServiceOnStartup - boolean

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

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

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(java.lang.Object stub)
                        throws BTTWsFaultException
Sets properties defined in the service to JAX-WS stub.

Parameters:
stub - java.lang.Object
Throws:
BTTWsFaultException

getPortStub

protected java.lang.Object 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-WS.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
JaxWsSoapFaultException - when the SOAP message error occurs
ConnectWebServiceFailureException - if SOAP binding error occurs
WebServiceAccessException - if JAX-WS runtime exception occurs
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

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011