public class ClientId extends CloneableDataObject
Title: Service Event Fabric Client
Description: Defines a Client ID.
name
, value
).
It is auxiliary object which can be converted to name of the FabricConnection
.
The name format is name1=value1,...,nameN=valueN
, colon symbol can be used instead of equality symbol.
<Name>[@<Domain>]
(e.g. Bob@RedSquare or Bob)ou=<OrganizationUnit>
(e.g. ou=AssetManagers)resource=<Resource>
(e.g. resource=console)Note that '.' character is replaced with '_' character in all places.
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
ClientId()
Creates a new id.
|
ClientId(java.lang.String stringForm)
Creates a new id using the specified string form (
name1=value1,...,nameN=valueN ). |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String name,
java.lang.String value)
Adds the specified (
name ,value ) pair to the internal map. |
void |
clear()
Clears the object (sets all values to
null ). |
java.lang.String |
get(java.lang.String name)
Returns the value of the pair with the specified name from the internal map.
|
java.lang.String |
getDomain() |
java.lang.String |
getName() |
java.lang.String |
getOrganizationUnit() |
java.lang.String |
getResource() |
java.util.List |
listNames()
Returns a list all names of the internal map.
|
void |
remove(java.lang.String name)
Removes the pair with the specified name from the internal map.
|
void |
setDomain(java.lang.String domain) |
void |
setName(java.lang.String name) |
void |
setOrganizationUnit(java.lang.String organizationUnit) |
void |
setResource(java.lang.String resource) |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String equalsSign) |
clone, getSerialVersionUID
public ClientId()
public ClientId(java.lang.String stringForm) throws FabricConnectionException
name1=value1,...,nameN=valueN
).stringForm
- the string form of the id.FabricConnectionException
- if the specified string has invalid format.public void setName(java.lang.String name)
public java.lang.String getName()
public void setDomain(java.lang.String domain)
public java.lang.String getDomain()
public void setOrganizationUnit(java.lang.String organizationUnit)
public java.lang.String getOrganizationUnit()
public void setResource(java.lang.String resource)
public java.lang.String getResource()
public void add(java.lang.String name, java.lang.String value)
name
,value
) pair to the internal map.
This method works only for non-null and non-empty name
and value
.name
- the name of the pair to be added.value
- the value of the pair to be added.public void remove(java.lang.String name)
name
- the name of the pair to be removed.public java.lang.String get(java.lang.String name)
name
- the specified pair name.null
if the pair is not found.public java.util.List listNames()
public void clear()
null
).public java.lang.String toString(java.lang.String equalsSign)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.