|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.core.AbstractContainer
org.eclipse.ecf.remoteservice.client.AbstractClientContainer
org.eclipse.ecf.remoteservice.rest.client.RestClientContainer
public class RestClientContainer
A container for REST services.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.ecf.remoteservice.client.AbstractClientContainer |
|---|
alwaysSendDefaultParameters, connectContext, connectedID, connectLock, containerID, parameterSerializer, parameterSerializerLock, registry, remoteResponseDeserializer, remoteResponseDeserializerLock, remoteServiceListeners |
| Constructor Summary | |
|---|---|
RestClientContainer(RestID id)
|
|
| Method Summary | |
|---|---|
protected IRemoteService |
createRemoteService(RemoteServiceClientRegistration registration)
Create an implementer of IRemoteService for the given registration. |
Namespace |
getConnectNamespace()
Get the Namespace for creating a targetID suitable for use as the first parameter in subsequent calls to IContainer.connect(ID, IConnectContext). |
java.lang.String |
prepareEndpointAddress(IRemoteCall call,
IRemoteCallable callable)
Prepare an endpoint address for the given call and callable. |
boolean |
setRemoteServiceCallPolicy(IRemoteServiceCallPolicy policy)
Set the remote service call policy to enable authorization on remote service method calls |
| Methods inherited from class org.eclipse.ecf.core.AbstractContainer |
|---|
addListener, fireContainerEvent, getAdapter, getPasswordFromConnectContext, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ecf.remoteservice.client.IRemoteServiceClientContainerAdapter |
|---|
registerCallables, registerCallables, setParameterSerializer, setResponseDeserializer |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Constructor Detail |
|---|
public RestClientContainer(RestID id)
| Method Detail |
|---|
protected IRemoteService createRemoteService(RemoteServiceClientRegistration registration)
AbstractClientContainerIRemoteService for the given registration.
createRemoteService in class AbstractClientContainerregistration - registration from which to create the associated IRemoteService. Will not be null.
null.public Namespace getConnectNamespace()
IContainerIContainer.connect(ID, IConnectContext).
If this method returns null, then it means that
null is expected as a valid parameter in subsequent calls
to IContainer.connect(ID, IConnectContext). If this method returns a non-null
Namespace, then the targetID parameter in
IContainer.connect(ID, IConnectContext) must be non-null
instance created of the returned Namespace.
getConnectNamespace in interface IContainerIContainer.connect(ID, IConnectContext). If null,
then the targetID instances passed to
IContainer.connect(ID, IConnectContext) may be null.
If not null, then targetID
instances passed to IContainer.connect(ID, IConnectContext) must be
instances of the returned Namespace.
public java.lang.String prepareEndpointAddress(IRemoteCall call,
IRemoteCallable callable)
AbstractClientContainer
prepareEndpointAddress in class AbstractClientContainercall - to create an endpoint for. Will not be null.callable - to create an endpoing for. Will not be null.
null if the
given call should not be completed (i.e. there is no endpoint associated with the given call).public boolean setRemoteServiceCallPolicy(IRemoteServiceCallPolicy policy)
IRemoteServiceContainerAdapter
setRemoteServiceCallPolicy in interface IRemoteServiceContainerAdapterpolicy - Implementation of IRemoteServiceCallPolicy containing authorization specific code
true if the underlying provider supports using the policy, false if
it does not support using the policy.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||