|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.server.ext.CompRepoItem
public class CompRepoItem
Created: Oct 3, 2009 4:39:51 PM
| Field Summary | |
|---|---|
static java.lang.String |
CONN_TYPE_ATTR
|
static java.lang.String |
CONNECTION_TYPE_LABEL
|
static java.lang.String |
DOMAIN_ATTR
|
static java.lang.String |
DOMAIN_NAME_LABEL
|
static java.lang.String |
DOMAIN_PASS_LABEL
|
static java.lang.String |
PASSWORD_ATTR
|
static java.lang.String |
PORT_NO_ATTR
|
static java.lang.String |
PORT_NO_LABEL
|
static java.lang.String |
PROTO_XMLNS_ATTR
|
static java.lang.String |
PROTO_XMLNS_LABEL
|
static java.lang.String |
REMOTE_HOST_ATTR
|
static java.lang.String |
REMOTE_HOST_LABEL
|
static java.lang.String |
REPO_ITEM_ELEM_NAME
|
static java.lang.String |
ROUTINGS_ATTR
|
static java.lang.String |
ROUTINGS_LABEL
|
| Constructor Summary | |
|---|---|
CompRepoItem()
|
|
| Method Summary | |
|---|---|
void |
addCommandFields(Packet packet)
The method is used for handling ad-hoc commands. |
java.lang.String |
getAuthPasswd()
|
ConnectionType |
getConnectionType()
|
java.lang.String |
getDomain()
|
java.lang.String |
getKey()
Returns a unique key for the item in the repository. |
int |
getPort()
|
java.lang.String |
getRemoteHost()
|
java.lang.String[] |
getRoutings()
|
java.lang.String |
getXMLNS()
|
void |
initFromCommand(Packet packet)
The method used for handling ad-hoc commands. |
void |
initFromElement(tigase.xml.Element elem)
The item can be also initialized from a more complex repositories: XML repository or SQL database. |
void |
initFromPropertyString(java.lang.String propString)
The item can be initialized based on the data loaded from a configuration file. |
void |
setDomain(java.lang.String domain)
|
tigase.xml.Element |
toElement()
Item data can be stored in a more comlex form than a simple property string. |
java.lang.String |
toPropertyString()
The item can be initialized based on the data loaded from a configuration file. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REPO_ITEM_ELEM_NAME
public static final java.lang.String DOMAIN_ATTR
public static final java.lang.String REMOTE_HOST_ATTR
public static final java.lang.String CONN_TYPE_ATTR
public static final java.lang.String PORT_NO_ATTR
public static final java.lang.String PASSWORD_ATTR
public static final java.lang.String PROTO_XMLNS_ATTR
public static final java.lang.String ROUTINGS_ATTR
public static final java.lang.String DOMAIN_NAME_LABEL
public static final java.lang.String DOMAIN_PASS_LABEL
public static final java.lang.String CONNECTION_TYPE_LABEL
public static final java.lang.String PORT_NO_LABEL
public static final java.lang.String REMOTE_HOST_LABEL
public static final java.lang.String PROTO_XMLNS_LABEL
public static final java.lang.String ROUTINGS_LABEL
| Constructor Detail |
|---|
public CompRepoItem()
| Method Detail |
|---|
public void initFromPropertyString(java.lang.String propString)
RepositoryItem
initFromPropertyString in interface RepositoryItempropString - is a property string to initialize the RepositoryItem.public java.lang.String toPropertyString()
RepositoryItem
toPropertyString in interface RepositoryItempublic void initFromElement(tigase.xml.Element elem)
RepositoryItem
initFromElement in interface RepositoryItemelem - XML Element with all the item initialization data.public tigase.xml.Element toElement()
RepositoryItem
toElement in interface RepositoryItempublic void addCommandFields(Packet packet)
RepositoryItem
addCommandFields in interface RepositoryItempacket - with empty ad-hoc command to fill with fieldspublic void initFromCommand(Packet packet)
RepositoryItem
initFromCommand in interface RepositoryItempacket - with ad-hoc command filled by the user.public java.lang.String getKey()
RepositoryItem
getKey in interface RepositoryItempublic void setDomain(java.lang.String domain)
public ConnectionType getConnectionType()
public java.lang.String getDomain()
public java.lang.String getRemoteHost()
public int getPort()
public java.lang.String getAuthPasswd()
public java.lang.String[] getRoutings()
public java.lang.String getXMLNS()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||