org.gcube.common.core.utils.handlers
Interface GCUBEServiceClient

All Known Implementing Classes:
GCUBELocalResource, GCUBEServiceClientImpl, GCUBEStatefulResource, GCUBEWSFieldsSerializableResource, GCUBEWSLiteResource, GCUBEWSResource

public interface GCUBEServiceClient

Interface for objects handled by one or more service handlers. It ensures that the objects can cache endpoints of an arbitrary number of port-types, in a scope-sensitive manner.

Author:
Fabio Simeoni (University of Strathclyde)

Method Summary
 Map<String,org.apache.axis.message.addressing.EndpointReferenceType> getPortTypeMap()
          The target port-types indexed by service name.
 GCUBEScope getScope()
          Returns the scope in which interactions ought to take place.
 void setPortTypeMap(Map<String,org.apache.axis.message.addressing.EndpointReferenceType> map)
          Sets the cache of target port-types.
 

Method Detail

getPortTypeMap

Map<String,org.apache.axis.message.addressing.EndpointReferenceType> getPortTypeMap()
The target port-types indexed by service name.


setPortTypeMap

void setPortTypeMap(Map<String,org.apache.axis.message.addressing.EndpointReferenceType> map)
Sets the cache of target port-types.

Parameters:
map - the map.

getScope

GCUBEScope getScope()
Returns the scope in which interactions ought to take place. This is used by service handler to inject endpoints into the cache in a scope-sensitive manner.

Typically, this is delegated to a GCUBEScopeManager .

Returns:
the scope, or null if interactions should not to be scoped.


Copyright © 2012. All Rights Reserved.