2.17.2: 2011-06-17

net.sf.basedb.ws.client
Class AbstractRPCClient

java.lang.Object
  extended by net.sf.basedb.ws.client.AbstractRPCClient
Direct Known Subclasses:
AnnotationTypeClient, ArrayDesignClient, BioAssaySetClient, ExperimentClient, ProjectClient, RawBioAssayClient, ReporterClient, SessionClient

public abstract class AbstractRPCClient
extends Object

Abstract class for RPCServiceClients in web services. Holds information about the service to use and gives different ways of

Version:
2.5
Author:
Martin

Field Summary
private  ServiceFactory serviceFactory
           
private  String serviceUrl
           
 
Constructor Summary
protected AbstractRPCClient(String url, String service)
           
protected AbstractRPCClient(String url, String service, ServiceFactory serviceFactory)
           
 
Method Summary
protected  QName getOperation(String operation)
           
protected  org.apache.axis2.rpc.client.RPCServiceClient getService()
           
 ServiceFactory getServiceFactory()
          Get the factory that is used to create RPCServiceClient objects for this web service.
protected
<T> T
invokeBlocking(String method, Class<T> clazz, Object... args)
           
protected  void invokeBlocking(String operation, Object... args)
           
protected  Object[] invokeBlocking(String operation, Object[] args, Class[] returnTypes)
           
protected  InputStream invokeFileBlocking(String operation, Object... args)
           
 void setServiceFactory(ServiceFactory serviceFactory)
          Sets the factory that is used to create RPCServiceClient objects for this web service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceUrl

private final String serviceUrl

serviceFactory

private ServiceFactory serviceFactory
Constructor Detail

AbstractRPCClient

protected AbstractRPCClient(String url,
                            String service)

AbstractRPCClient

protected AbstractRPCClient(String url,
                            String service,
                            ServiceFactory serviceFactory)
Since:
2.8
Method Detail

getServiceFactory

public ServiceFactory getServiceFactory()
Get the factory that is used to create RPCServiceClient objects for this web service.

Since:
2.8

setServiceFactory

public void setServiceFactory(ServiceFactory serviceFactory)
Sets the factory that is used to create RPCServiceClient objects for this web service.

Since:
2.8

invokeBlocking

protected Object[] invokeBlocking(String operation,
                                  Object[] args,
                                  Class[] returnTypes)
                           throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

invokeBlocking

protected <T> T invokeBlocking(String method,
                               Class<T> clazz,
                               Object... args)
                    throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

invokeBlocking

protected void invokeBlocking(String operation,
                              Object... args)
                       throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

invokeFileBlocking

protected InputStream invokeFileBlocking(String operation,
                                         Object... args)
                                  throws org.apache.axis2.AxisFault,
                                         IOException
Throws:
org.apache.axis2.AxisFault
IOException

getService

protected org.apache.axis2.rpc.client.RPCServiceClient getService()
                                                           throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

getOperation

protected QName getOperation(String operation)

2.17.2: 2011-06-17