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

java.lang.Object
  extended by org.gcube.common.core.utils.calls.GCUBECall<WSResourceQuery>
      extended by org.gcube.common.core.utils.calls.WSCall
Direct Known Subclasses:
StagingCall

public abstract class WSCall
extends GCUBECall<WSResourceQuery>

Partial specialisation of a GCUBECall to WS-Resources that subsumes the best-effort interaction strategy defined by a GCUBEStatefulServiceHandler.

Author:
Fabio Simeoni (University of Strathclyde)

Nested Class Summary
 class WSCall.WSCallHandler
          Abstract specialisation of GCUBEStatefulServiceHandler for embedding in WSCalls.
 
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
WSCall(GCUBEScope scope, GCUBESecurityManager... securityManager)
          Creates an instance with a scope and a security manager.
WSCall(GCUBEScopeManager scopeManager, GCUBESecurityManager... securityManager)
          Creates an instance with a scope manager and a security manager.
WSCall(GCUBEServiceContext ctxt)
          Creates an instance with a service context.
 
Method Summary
protected  WSResourceQuery getInitQuery()
          Returns the initial query for the best-effort strategy.
 
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

WSCall

public WSCall(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.

WSCall

public WSCall(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.

WSCall

public WSCall(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 WSResourceQuery getInitQuery()
                                throws Exception
Returns the initial query for the best-effort strategy.

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


Copyright © 2013. All Rights Reserved.