|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GCUBEScopeManager
The interface of managers of scope information within service implementations.
| Nested Class Summary | |
|---|---|
static class |
GCUBEScopeManager.IllegalScopeException
|
| Field Summary | |
|---|---|
static String |
CLASS_HEADER_NAME
Name of the service class call header. |
static GCUBEScopeManager |
DEFAULT
|
static String |
NAME_HEADER_NAME
Name of the service name call header. |
static String |
SCOPE_HEADER_NAME
Name of the scope call header. |
static String |
SCOPE_NS
Namespace of scope-related headers |
| Method Summary | |
|---|---|
GCUBEScope |
getScope()
Gets the scope for outgoing calls in the current thread. |
void |
prepareCall(Remote remote,
String clazz,
String name,
GCUBEScope... scope)
Sets the scope for an outgoing call to a target gCube service. |
void |
setScope(GCUBEScope scope)
Sets the scope of outgoing calls in the current thread. |
void |
setScope(Thread thread,
GCUBEScope... scope)
Sets the scope of outgoing calls in a given thread. |
| Field Detail |
|---|
static final GCUBEScopeManager DEFAULT
static final String CLASS_HEADER_NAME
static final String NAME_HEADER_NAME
static final String SCOPE_HEADER_NAME
static final String SCOPE_NS
| Method Detail |
|---|
void setScope(GCUBEScope scope)
throws GCUBEScopeManager.IllegalScopeException
scope - the scope.
GCUBEScopeManager.IllegalScopeException
void setScope(Thread thread,
GCUBEScope... scope)
thread - the thread.scope - (optional) the scope. If omitted, it defaults to the scope of the current thread.GCUBEScope getScope()
void prepareCall(Remote remote,
String clazz,
String name,
GCUBEScope... scope)
remote - the stub of the target port-type.clazz - the gCube class of the target service.name - the gCube name of the target service.scope - (optional) the scope of the call. If omitted, the scope associated with the current thread will be used.GCUBERemotePortTypeContext.getProxy(Remote, org.gcube.common.core.contexts.GCUBEServiceContext),
GCUBERemotePortTypeContext.getProxy(Remote, GCUBEScope, org.gcube.common.core.security.GCUBESecurityManager...),
GCUBERemotePortTypeContext.getProxy(Remote, GCUBEScopeManager, org.gcube.common.core.security.GCUBESecurityManager...)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||