|
||||||||||
| 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 String |
CONN_TYPE_ATTR
|
static String |
CONNECTION_TYPE_LABEL
|
static String |
DOMAIN_ATTR
|
static String |
DOMAIN_NAME_LABEL
|
static String |
DOMAIN_PASS_LABEL
|
static String |
PASSWORD_ATTR
|
static String |
PORT_NO_ATTR
|
static String |
PORT_NO_LABEL
|
static String |
PROTO_XMLNS_ATTR
|
static String |
PROTO_XMLNS_LABEL
|
static String |
REMOTE_HOST_ATTR
|
static String |
REMOTE_HOST_LABEL
|
static String |
REPO_ITEM_ELEM_NAME
|
static String |
ROUTINGS_ATTR
|
static String |
ROUTINGS_LABEL
|
| Constructor Summary | |
|---|---|
CompRepoItem()
|
|
| Method Summary | |
|---|---|
void |
addCommandFields(Packet packet)
The method is used for handling ad-hoc commands. |
String |
getAuthPasswd()
|
ConnectionType |
getConnectionType()
|
String |
getDomain()
|
String |
getKey()
Returns a unique key for the item in the repository. |
int |
getPort()
|
String |
getRemoteHost()
|
String[] |
getRoutings()
|
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(String propString)
The item can be initialized based on the data loaded from a configuration file. |
void |
setDomain(String domain)
|
tigase.xml.Element |
toElement()
Item data can be stored in a more comlex form than a simple property string. |
String |
toPropertyString()
The item can be initialized based on the data loaded from a configuration file. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String REPO_ITEM_ELEM_NAME
public static final String DOMAIN_ATTR
public static final String REMOTE_HOST_ATTR
public static final String CONN_TYPE_ATTR
public static final String PORT_NO_ATTR
public static final String PASSWORD_ATTR
public static final String PROTO_XMLNS_ATTR
public static final String ROUTINGS_ATTR
public static final String DOMAIN_NAME_LABEL
public static final String DOMAIN_PASS_LABEL
public static final String CONNECTION_TYPE_LABEL
public static final String PORT_NO_LABEL
public static final String REMOTE_HOST_LABEL
public static final String PROTO_XMLNS_LABEL
public static final String ROUTINGS_LABEL
| Constructor Detail |
|---|
public CompRepoItem()
| Method Detail |
|---|
public void initFromPropertyString(String propString)
RepositoryItem
initFromPropertyString in interface RepositoryItempropString - is a property string to initialize the RepositoryItem.public 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 String getKey()
RepositoryItem
getKey in interface RepositoryItempublic void setDomain(String domain)
public ConnectionType getConnectionType()
public String getDomain()
public String getRemoteHost()
public int getPort()
public String getAuthPasswd()
public String[] getRoutings()
public String getXMLNS()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||