uk.ac.soton.itinnovation.grid.client.proxy
Class AbstractProxyHelpers<R>

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.proxy.AbstractProxyHelpers<R>
All Implemented Interfaces:
ProxyHelpers, WebProxy
Direct Known Subclasses:
LegacyProxyHelpers

public abstract class AbstractProxyHelpers<R>
extends Object
implements ProxyHelpers, WebProxy

Useful base class for proxy helpers.


Field Summary
protected  ProxyFactory helperProxyFactory
           
protected  org.apache.log4j.Logger log
           
protected  R rawProxy
           
protected  org.apache.axis.message.addressing.EndpointReferenceType target
           
protected  Transport transport
           
 
Constructor Summary
AbstractProxyHelpers()
           
 
Method Summary
<T> T
initProxyHelpers(HelperProxyFactory helperProxyFactory, org.apache.axis.message.addressing.EndpointReferenceType target, Class<T> iface)
          Initialise a new proxy.
 InvocationEngine proxyGetInvocationEngine()
          Return the engine used by this proxy.
 RemoteMethod proxyGetRemoteMethod(String methodName, boolean documentStyle)
          Create a RemoteMethod from the WSDL.
 org.apache.axis.message.addressing.EndpointReferenceType proxyGetTarget()
          Return the target EPR used by this proxy.
protected  boolean proxyHasMethod(String methodName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected org.apache.log4j.Logger log

target

protected org.apache.axis.message.addressing.EndpointReferenceType target

rawProxy

protected R rawProxy

helperProxyFactory

protected ProxyFactory helperProxyFactory

transport

protected Transport transport
Constructor Detail

AbstractProxyHelpers

public AbstractProxyHelpers()
Method Detail

initProxyHelpers

public <T> T initProxyHelpers(HelperProxyFactory helperProxyFactory,
                              org.apache.axis.message.addressing.EndpointReferenceType target,
                              Class<T> iface)
Description copied from interface: ProxyHelpers
Initialise a new proxy.

Specified by:
initProxyHelpers in interface ProxyHelpers
Parameters:
helperProxyFactory - the factory creating the helper
target - the EPR of the remote resource
iface - the interface requested by the caller of ProxyFactory.createProxy(org.apache.axis.message.addressing.EndpointReferenceType, java.lang.Class)
Returns:
the new proxy

proxyHasMethod

protected boolean proxyHasMethod(String methodName)
                          throws RemoteException
Throws:
RemoteException

proxyGetRemoteMethod

public RemoteMethod proxyGetRemoteMethod(String methodName,
                                         boolean documentStyle)
                                  throws NoSuchOperationException,
                                         RemoteException
Description copied from interface: WebProxy
Create a RemoteMethod from the WSDL.

Specified by:
proxyGetRemoteMethod in interface WebProxy
Throws:
NoSuchOperationException - if the WSDL does not contain this operation.
RemoteException - if we couldn't fetch the WSDL

proxyGetTarget

public org.apache.axis.message.addressing.EndpointReferenceType proxyGetTarget()
Description copied from interface: WebProxy
Return the target EPR used by this proxy.

Specified by:
proxyGetTarget in interface WebProxy

proxyGetInvocationEngine

public InvocationEngine proxyGetInvocationEngine()
Description copied from interface: WebProxy
Return the engine used by this proxy.

Specified by:
proxyGetInvocationEngine in interface WebProxy

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.