org.gcube.common.core.utils.calls
Class RICall

java.lang.Object
  extended by org.gcube.common.core.utils.calls.GCUBECall<GCUBERIQuery>
      extended by org.gcube.common.core.utils.calls.RICall

public abstract class RICall
extends GCUBECall<GCUBERIQuery>

Partial specialisation of a GCUBECall for plain port-types discovered with a GCUBERIQuery.

Author:
Fabio Simeoni (University of Strathclyde)

Nested Class Summary
 class RICall.RICallHandler
          Abstract specialisation of GCUBEServiceHandler for embedding in RICalls.
 
Nested classes/interfaces inherited from class org.gcube.common.core.utils.calls.GCUBECall
GCUBECall.ResultHolder<RESULT>
 
Field Summary
 
Fields inherited from class org.gcube.common.core.utils.calls.GCUBECall
clients, logger
 
Constructor Summary
RICall(GCUBEScope scope, GCUBESecurityManager... securityManager)
          Creates an instance with a scope and a security manager.
RICall(GCUBEScopeManager scopeManager, GCUBESecurityManager... securityManager)
          Creates an instance with a scope manager and a security manager.
RICall(GCUBEServiceContext ctxt)
          Creates an instance with a service context.
 
Method Summary
protected  GCUBERIQuery getInitQuery()
          Returns the initial query for the best-effort strategy.
 void setEndpoint(String hostname, String port)
          Convenience method to set the target endpoint from host name and port.
 
Methods inherited from class org.gcube.common.core.utils.calls.GCUBECall
findPortType, getEndpointReference, getLogger, getPortTypeName, getQuery, getRIQuery, getScopeManager, getSecurityManager, getServiceClass, getServiceName, setEndpointReference, setLogger, setQuery, setScopeManager, setSecurityManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RICall

public RICall(GCUBEScopeManager scopeManager,
              GCUBESecurityManager... securityManager)
       throws Exception
Creates an instance with a scope manager and a security manager.

Parameters:
scopeManager - the scope manager.
securityManager - the security manager.
Throws:
Exception - if the instance could not be created.

RICall

public RICall(GCUBEScope scope,
              GCUBESecurityManager... securityManager)
       throws Exception
Creates an instance with a scope and a security manager.

Parameters:
scope - the scope.
securityManager - the security manager.
Throws:
Exception - if the instance could not be created.

RICall

public RICall(GCUBEServiceContext ctxt)
       throws Exception
Creates an instance with a service context.

Parameters:
ctxt - the context.
Throws:
Exception - if the instance could not be created.
Method Detail

getInitQuery

protected GCUBERIQuery getInitQuery()
                             throws Exception
Returns the initial query for the best-effort strategy.

Specified by:
getInitQuery in class GCUBECall<GCUBERIQuery>
Returns:
the query.
Throws:
Exception - if the query could not be returned (typically because it could not be built).

setEndpoint

public void setEndpoint(String hostname,
                        String port)
                 throws Exception
Convenience method to set the target endpoint from host name and port.

Parameters:
hostname - the host name.
port - the port.
Throws:
Exception - if a reference to the endpoint could not be built.


Copyright © 2012. All Rights Reserved.