Package org.eclipse.ecf.discovery
Interface IContainerServiceInfoAdapter
- 
 public interface IContainerServiceInfoAdapterAdapter for IServiceInfo instances.- Since:
- 3.0
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCONTAINER_CONNECT_REQUIRES_PASSWORDstatic StringCONTAINER_CONNECT_TARGETstatic StringCONTAINER_CONNECT_TARGET_PATHstatic StringCONTAINER_CONNECT_TARGET_PROTOCOLstatic StringCONTAINER_FACTORY_NAME_PROPERTYECF Service Property Names
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description BooleanconnectRequiresPassword()Get whether the target requires password.StringgetConnectTarget()Get the targetID for accessing the remote container.StringgetContainerFactoryName()Get container name associated with this service info.voidsetContainerProperties(String containerFactoryName, String connectTarget, Boolean connectRequiresPassword)Set the container properties.voidsetContainerProperties(String containerFactoryName, String connectProtocol, String connectPath, Boolean connectRequiresPassword)Set the container properties.
 
- 
- 
- 
Field Detail- 
CONTAINER_FACTORY_NAME_PROPERTYstatic final String CONTAINER_FACTORY_NAME_PROPERTY ECF Service Property Names- Since:
- 3.0
- See Also:
- Constant Field Values
 
 - 
CONTAINER_CONNECT_TARGETstatic final String CONTAINER_CONNECT_TARGET - Since:
- 3.0
- See Also:
- Constant Field Values
 
 - 
CONTAINER_CONNECT_TARGET_PROTOCOLstatic final String CONTAINER_CONNECT_TARGET_PROTOCOL - Since:
- 3.0
- See Also:
- Constant Field Values
 
 - 
CONTAINER_CONNECT_TARGET_PATHstatic final String CONTAINER_CONNECT_TARGET_PATH - Since:
- 3.0
- See Also:
- Constant Field Values
 
 - 
CONTAINER_CONNECT_REQUIRES_PASSWORDstatic final String CONTAINER_CONNECT_REQUIRES_PASSWORD - Since:
- 3.0
- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getContainerFactoryNameString getContainerFactoryName() Get container name associated with this service info.- Returns:
- the container factory name. Will return nullif no container factory name associated with this service info.
 
 - 
getConnectTargetString getConnectTarget() Get the targetID for accessing the remote container. The String returned may be used to constuct a targetID for use in the IContainer.connect(targetID) call. For example:IContainer container = ContainerFactory.getDefault().createContainer( this.getContainerFactoryName()); ID targetID = IDFactory.getDefault().createID(container.getConnectNamespace(), this.getConnectTarget()); container.connect(targetID, null);- Returns:
- String for use in connecting to the remote container. The
         returned value should be of proper syntax to be used to create a
         targetID for passing to
         IContainer.connect(org.eclipse.ecf.core.identity.ID, org.eclipse.ecf.core.security.IConnectContext). May returnnullif there is incomplete/absent information for the info.
 
 - 
connectRequiresPasswordBoolean connectRequiresPassword() Get whether the target requires password.- Returns:
- Boolean.TRUE if does require password, Boolean.FALSE if not,
         nullif undefined.
 
 - 
setContainerPropertiesvoid setContainerProperties(String containerFactoryName, String connectProtocol, String connectPath, Boolean connectRequiresPassword) Set the container properties. This method sets an implicit connect target. On the receiver, calls togetConnectTarget()will complete the URI in the following way<connectProtocol>://<IServiceInfo.getLocation().getAuthority()>/<connectPath> SeegetConnectTarget().- Parameters:
- 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.
 
 - 
setContainerPropertiesvoid setContainerProperties(String containerFactoryName, String connectTarget, Boolean connectRequiresPassword) Set the container properties. This method sets an explicit connectTarget. The given connectTarget is assumed to be complete (e.g. ecftcp://user@host:port/path). SeegetConnectTarget().- Parameters:
- 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.
 
 
- 
 
-