public interface IContainerServiceInfoAdapter
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTAINER_CONNECT_REQUIRES_PASSWORD |
static String |
CONTAINER_CONNECT_TARGET |
static String |
CONTAINER_CONNECT_TARGET_PATH |
static String |
CONTAINER_CONNECT_TARGET_PROTOCOL |
static String |
CONTAINER_FACTORY_NAME_PROPERTY
ECF Service Property Names
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
connectRequiresPassword()
Get whether the target requires password.
|
String |
getConnectTarget()
Get the targetID for accessing the remote container.
|
String |
getContainerFactoryName()
Get container name associated with this service info.
|
void |
setContainerProperties(String containerFactoryName,
String connectTarget,
Boolean connectRequiresPassword)
Set the container properties.
|
void |
setContainerProperties(String containerFactoryName,
String connectProtocol,
String connectPath,
Boolean connectRequiresPassword)
Set the container properties.
|
static final String CONTAINER_FACTORY_NAME_PROPERTY
static final String CONTAINER_CONNECT_TARGET
static final String CONTAINER_CONNECT_TARGET_PROTOCOL
static final String CONTAINER_CONNECT_TARGET_PATH
static final String CONTAINER_CONNECT_REQUIRES_PASSWORD
String getContainerFactoryName()
null if no
container factory name associated with this service info.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.Boolean connectRequiresPassword()
null if undefined.void setContainerProperties(String containerFactoryName, String connectProtocol, String connectPath, 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(String containerFactoryName, String connectTarget, 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.Copyright © 2004–2020 Eclipse Foundation. All rights reserved.