ch.systemsx.cisd.openbis.dss.client.api.v1.impl
Class DssServiceRpcFactory

java.lang.Object
  extended by ch.systemsx.cisd.openbis.dss.client.api.v1.impl.DssServiceRpcFactory
All Implemented Interfaces:
IRpcServiceFactory

public class DssServiceRpcFactory
extends java.lang.Object
implements IRpcServiceFactory

Client-side factory for DssServiceRpc objects.

Create client-side proxies to server RPC interface objects.


Constructor Summary
DssServiceRpcFactory()
           
DssServiceRpcFactory(long timeoutInMillis)
           
 
Method Summary
<T extends IRpcService>
T
getService(RpcServiceInterfaceVersionDTO ifaceVersion, java.lang.Class<T> ifaceClazz, java.lang.String serverURL, boolean getServerCertificateFromServer)
          Get a proxy to the RPC service interface specified by ifaceVersion.
 java.util.Collection<RpcServiceInterfaceDTO> getSupportedInterfaces(java.lang.String serverURL, boolean getServerCertificateFromServer)
          Get the RPC service interfaces supported by the server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DssServiceRpcFactory

public DssServiceRpcFactory()

DssServiceRpcFactory

public DssServiceRpcFactory(long timeoutInMillis)
Method Detail

getSupportedInterfaces

public java.util.Collection<RpcServiceInterfaceDTO> getSupportedInterfaces(java.lang.String serverURL,
                                                                           boolean getServerCertificateFromServer)
                                                                    throws IncompatibleAPIVersionsException
Description copied from interface: IRpcServiceFactory
Get the RPC service interfaces supported by the server.

Specified by:
getSupportedInterfaces in interface IRpcServiceFactory
Parameters:
serverURL - The URL of the data store server to query.
getServerCertificateFromServer - If the URL scheme is https and shouldGetServerCertificateFromServer is true, the factory will retrieve the SSL certificate from the server.
Throws:
IncompatibleAPIVersionsException

getService

public <T extends IRpcService> T getService(RpcServiceInterfaceVersionDTO ifaceVersion,
                                            java.lang.Class<T> ifaceClazz,
                                            java.lang.String serverURL,
                                            boolean getServerCertificateFromServer)
                                 throws IncompatibleAPIVersionsException
Description copied from interface: IRpcServiceFactory
Get a proxy to the RPC service interface specified by ifaceVersion.

Specified by:
getService in interface IRpcServiceFactory
Parameters:
ifaceVersion - The proxy interface to return
ifaceClazz - The class of the interface
serverURL - The url of the server that exports the service
getServerCertificateFromServer - True if the certificate should be retrieved from the server.
Throws:
IncompatibleAPIVersionsException