|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContainerServiceInfoAdapter
Adapter for IServiceInfo instances.
Field Summary | |
---|---|
static java.lang.String |
CONTAINER_CONNECT_REQUIRES_PASSWORD
|
static java.lang.String |
CONTAINER_CONNECT_TARGET
|
static java.lang.String |
CONTAINER_CONNECT_TARGET_PATH
|
static java.lang.String |
CONTAINER_CONNECT_TARGET_PROTOCOL
|
static java.lang.String |
CONTAINER_FACTORY_NAME_PROPERTY
ECF Service Property Names |
Method Summary | |
---|---|
java.lang.Boolean |
connectRequiresPassword()
Get whether the target requires password. |
java.lang.String |
getConnectTarget()
Get the targetID for accessing the remote container. |
java.lang.String |
getContainerFactoryName()
Get container name associated with this service info. |
void |
setContainerProperties(java.lang.String containerFactoryName,
java.lang.String connectTarget,
java.lang.Boolean connectRequiresPassword)
Set the container properties. |
void |
setContainerProperties(java.lang.String containerFactoryName,
java.lang.String connectProtocol,
java.lang.String connectPath,
java.lang.Boolean connectRequiresPassword)
Set the container properties. |
Field Detail |
---|
static final java.lang.String CONTAINER_FACTORY_NAME_PROPERTY
static final java.lang.String CONTAINER_CONNECT_TARGET
static final java.lang.String CONTAINER_CONNECT_TARGET_PROTOCOL
static final java.lang.String CONTAINER_CONNECT_TARGET_PATH
static final java.lang.String CONTAINER_CONNECT_REQUIRES_PASSWORD
Method Detail |
---|
java.lang.String getContainerFactoryName()
null
if no
container factory name associated with this service info.java.lang.String getConnectTarget()
IContainer container = ContainerFactory.getDefault().createContainer( this.getContainerFactoryName()); ID targetID = IDFactory.getDefault().createID(container.getConnectNamespace(), this.getConnectTarget()); container.connect(targetID, null);
IContainer.connect(org.eclipse.ecf.core.identity.ID, org.eclipse.ecf.core.security.IConnectContext)
. May return null
if there is incomplete/absent
information for the info.java.lang.Boolean connectRequiresPassword()
null
if undefined.void setContainerProperties(java.lang.String containerFactoryName, java.lang.String connectProtocol, java.lang.String connectPath, java.lang.Boolean connectRequiresPassword)
getConnectTarget()
will
complete the URI in the following way
<connectProtocol>://<IServiceInfo.getLocation().getAuthority()>/<connectPath>See
getConnectTarget()
.
containerFactoryName
- set the containerFactoryName for this info. May not be
null
.connectProtocol
- set the connectProtocol for the target. May not be
null
.connectPath
- set the connect path for the target. May be null
.connectRequiresPassword
- set whether the target requires a password. May be
null
.void setContainerProperties(java.lang.String containerFactoryName, java.lang.String connectTarget, java.lang.Boolean connectRequiresPassword)
getConnectTarget()
.
containerFactoryName
- set the containerFactoryName for this info. May not be
null
.connectTarget
- set the connectProtocol for the target. May not be
null
.connectRequiresPassword
- set whether the target requires a password. May be
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |