public abstract class AbstractRSAClientContainer extends AbstractClientContainer implements IRSAConsumerContainerAdapter
Modifier and Type | Class and Description |
---|---|
class |
AbstractRSAClientContainer.RSAClientRegistration |
alwaysSendDefaultParameters, connectContext, connectedID, connectLock, containerID, parameterSerializer, parameterSerializerLock, registry, remoteResponseDeserializer, remoteResponseDeserializerLock, remoteServiceListeners
Constructor and Description |
---|
AbstractRSAClientContainer(ID containerID) |
Modifier and Type | Method and Description |
---|---|
protected void |
connectToEndpoint(ID connectTargetID) |
protected IRemoteCallable[][] |
createRegistrationCallables(ID targetID,
java.lang.String[] interfaces,
java.util.Dictionary endpointDescriptionProperties) |
protected java.util.Dictionary |
createRegistrationProperties(java.util.Map<java.lang.String,java.lang.Object> endpointDescriptionProperties) |
protected abstract IRemoteService |
createRemoteService(RemoteServiceClientRegistration registration)
Create a remote service for a given remote service registration.
|
protected RemoteServiceClientRegistration |
createRSAClientRegistration(ID targetID,
java.lang.String[] interfaces,
java.util.Map<java.lang.String,java.lang.Object> endpointDescriptionProperties) |
Namespace |
getConnectNamespace()
Get the Namespace for creating a targetID suitable for use as the first
parameter in subsequent calls to
IContainer.connect(ID, IConnectContext) . |
IRemoteServiceReference[] |
importEndpoint(java.util.Map<java.lang.String,java.lang.Object> endpointDescriptionProperties) |
protected java.lang.String |
prepareEndpointAddress(IRemoteCall call,
IRemoteCallable callable)
Prepare an endpoint address for the given call and callable.
|
RemoteServiceClientRegistration |
registerEndpoint(ID targetID,
java.lang.String[] interfaces,
java.util.Map<java.lang.String,java.lang.Object> endpointDescriptionProperties) |
boolean |
setRemoteServiceCallPolicy(IRemoteServiceCallPolicy policy)
Set the remote service call policy to enable authorization on remote service method calls
|
addRemoteServiceListener, asyncGetRemoteServiceReferences, asyncGetRemoteServiceReferences, asyncGetRemoteServiceReferences, connect, createRemoteFilter, createRestServiceRegistration, createRestServiceRegistration, createUriRequest, disconnect, dispose, getAllRemoteServiceReferences, getConnectContextForAuthentication, getConnectedID, getID, getParameterSerializer, getParameterSerializer, getRemoteCallTargetID, getRemoteService, getRemoteServiceID, getRemoteServiceNamespace, getRemoteServiceReference, getRemoteServiceReferences, getRemoteServiceReferences, getRemoteServiceReferences, getResponseDeserializer, getResponseDeserializer, logException, prepareCallParameters, prepareExtraParameters, prepareParameters, processResponse, registerCallables, registerCallables, registerCallables, registerRemoteService, removeRemoteServiceListener, serializeParameter, serializeParameter, setAlwaysSendDefaultParameters, setConnectContextForAuthentication, setParameterSerializer, setResponseDeserializer, ungetRemoteService
addListener, fireContainerEvent, getAdapter, getPasswordFromConnectContext, removeListener
public AbstractRSAClientContainer(ID containerID)
public boolean setRemoteServiceCallPolicy(IRemoteServiceCallPolicy policy)
IRemoteServiceContainerAdapter
setRemoteServiceCallPolicy
in interface IRemoteServiceContainerAdapter
policy
- Implementation of IRemoteServiceCallPolicy
containing authorization specific codetrue
if the underlying provider supports using the policy, false
if
it does not support using the policy.public Namespace getConnectNamespace()
IContainer
IContainer.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 IContainer
IContainer.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.protected void connectToEndpoint(ID connectTargetID) throws ContainerConnectException
ContainerConnectException
protected IRemoteCallable[][] createRegistrationCallables(ID targetID, java.lang.String[] interfaces, java.util.Dictionary endpointDescriptionProperties)
protected java.util.Dictionary createRegistrationProperties(java.util.Map<java.lang.String,java.lang.Object> endpointDescriptionProperties)
protected RemoteServiceClientRegistration createRSAClientRegistration(ID targetID, java.lang.String[] interfaces, java.util.Map<java.lang.String,java.lang.Object> endpointDescriptionProperties)
public RemoteServiceClientRegistration registerEndpoint(ID targetID, java.lang.String[] interfaces, java.util.Map<java.lang.String,java.lang.Object> endpointDescriptionProperties)
public IRemoteServiceReference[] importEndpoint(java.util.Map<java.lang.String,java.lang.Object> endpointDescriptionProperties) throws ContainerConnectException, org.osgi.framework.InvalidSyntaxException
importEndpoint
in interface IRSAConsumerContainerAdapter
ContainerConnectException
org.osgi.framework.InvalidSyntaxException
protected abstract IRemoteService createRemoteService(RemoteServiceClientRegistration registration)
createRemoteService
in class AbstractClientContainer
registration
- the remote service client registration associated with the service
being imported. Will not be null
.null
.protected java.lang.String prepareEndpointAddress(IRemoteCall call, IRemoteCallable callable)
AbstractClientContainer
prepareEndpointAddress
in class AbstractClientContainer
call
- 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).