|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.comms.client.BaseRemoteResource<T>
public class BaseRemoteResource<T extends StorableInStateRepository>
Non-SOAP methods common to StorableInStateRepository objects. This base class provides the implementation of the core operations supported by proxies to remote resources.
RemoteResourceProxy,
AdditionalMethods| Field Summary | |
|---|---|
protected org.apache.axis.message.addressing.EndpointReferenceType |
EPR
|
protected static org.apache.log4j.Logger |
log
|
protected T |
proxy
The proxy object created by RemoteResourceProxy and stored in the repository. |
protected StateRepository |
repository
The StateRepository that this resource is stored in. |
protected String |
serviceName
|
protected String |
soapBinding
|
protected static Transport |
transport
Used to send SOAP messages. |
| Constructor Summary | |
|---|---|
BaseRemoteResource()
|
|
| Method Summary | |
|---|---|
protected void |
assertNotFinished()
|
int |
compareTo(StorableInStateRepository other)
|
protected RemoteBoundMethod |
createMethod(Method method)
Used by getMethod(Method). |
boolean |
equals(Object other)
|
protected String |
getContextID()
Value to put in the context header, or null if none. |
String |
getDescription()
Returns a textual description of the object. |
URL |
getEndpoint()
Get the endpoint address of the service. |
org.apache.axis.message.addressing.EndpointReferenceType |
getEndpointRef()
Return an EndpointReferenceType for this conversation. |
Class<T> |
getInterface()
Returns the type of this object. |
RemoteBoundMethod |
getMethod(Method javaMethod)
Get a method bound to an operation on this service. |
URL |
getParentURL()
Returns the URL of this object's parent. |
StateRepository |
getRepository()
Get the StateRepository holding this object. |
protected String |
getServiceName()
Returns the name of the service. |
URL |
getURL()
Returns the globally unique identifier. |
protected Parser |
getWSDL()
|
boolean |
hasMethod(String name)
Test if the method is in the WSDL |
protected void |
initHelper()
Perform any post-initialisation setup. |
protected Object |
invoke(String methodName,
Object... args)
Convenience wrapper around invokeService. |
Object |
invokeService(Method method,
SOAPHeaderElement[] headers,
Object[] args)
Invokes the given method for this resource with the default Transport. |
Object |
invokeService(RemoteBoundMethod boundMethod,
SOAPHeaderElement[] headers,
Object[] args)
Invokes the given method for this resource with the default Transport. |
void |
setDescription(String description)
Change the textual description, as returned by getDescription. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger log
protected org.apache.axis.message.addressing.EndpointReferenceType EPR
protected StateRepository repository
protected static final Transport transport
protected T extends StorableInStateRepository proxy
RemoteResourceProxy and stored in the repository.
protected String serviceName
protected String soapBinding
| Constructor Detail |
|---|
public BaseRemoteResource()
| Method Detail |
|---|
protected Parser getWSDL()
public RemoteBoundMethod getMethod(Method javaMethod)
invoke(java.lang.String, java.lang.Object...) instead of using this method directly.
javaMethod - the Java method corresponding to the SOAP
operation
public boolean hasMethod(String name)
name - the name of the SOAP operation
getMethod(Method)protected RemoteBoundMethod createMethod(Method method)
getMethod(Method). May override in subclasses.
method - the Java method corresponding to the SOAP
getMethod(Method)protected void initHelper()
initProxyInternal(T, java.lang.Class, uk.ac.soton.ecs.iam.grid.comms.client.StateRepository, org.apache.axis.message.addressing.EndpointReferenceType) .
public StateRepository getRepository()
StorableInStateRepository
getRepository in interface StorableInStateRepositorypublic URL getEndpoint()
public URL getURL()
StorableInStateRepository
getURL in interface StorableInStateRepositorypublic URL getParentURL()
StorableInStateRepository
getParentURL in interface StorableInStateRepositorypublic String getDescription()
StorableInStateRepository
getDescription in interface StorableInStateRepositorypublic void setDescription(String description)
StorableInStateRepository
setDescription in interface StorableInStateRepositorypublic String toString()
toString in class Objectpublic boolean equals(Object other)
equals in class Objectprotected void assertNotFinished()
public Class<T> getInterface()
StorableInStateRepository
getInterface in interface StorableInStateRepository
protected Object invoke(String methodName,
Object... args)
throws RemoteException
RemoteException
public Object invokeService(Method method,
SOAPHeaderElement[] headers,
Object[] args)
throws RemoteException
method - the method on the interface, with a WebMethod annotationheaders - any additional SOAP headers to include in the messageargs - arguments for the invocation
RemoteException
public Object invokeService(RemoteBoundMethod boundMethod,
SOAPHeaderElement[] headers,
Object[] args)
throws RemoteException
boundMethod - the method on the serviceheaders - any additional SOAP headers to include in the messageargs - arguments for the invocation
RemoteExceptionprotected String getContextID()
public org.apache.axis.message.addressing.EndpointReferenceType getEndpointRef()
StorableInStateRepository
getEndpointRef in interface StorableInStateRepositorypublic int compareTo(StorableInStateRepository other)
compareTo in interface Comparable<StorableInStateRepository>protected String getServiceName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||