|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SeeOtherHostIfc
| Nested Class Summary | |
|---|---|
static class |
SeeOtherHostIfc.Phase
|
| Field Summary | |
|---|---|
static String |
CM_SEE_OTHER_HOST_ACTIVE
|
static String |
CM_SEE_OTHER_HOST_CLASS_PROP_DEF_VAL
|
static String |
CM_SEE_OTHER_HOST_CLASS_PROP_DEF_VAL_CLUSTER
|
static String |
CM_SEE_OTHER_HOST_CLASS_PROP_KEY
|
static String |
CM_SEE_OTHER_HOST_CLASS_PROPERTY
|
static String |
CM_SEE_OTHER_HOST_DEFAULT_HOST
|
static String |
CM_SEE_OTHER_HOST_DEFAULT_PORT
|
| Method Summary | |
|---|---|
tigase.xmpp.BareJID |
findHostForJID(tigase.xmpp.BareJID jid,
tigase.xmpp.BareJID host)
Finds an appropriate host for a given JID |
void |
getDefaults(Map<String,Object> defs,
Map<String,Object> params)
|
tigase.xml.Element |
getStreamError(String xmlns,
tigase.xmpp.BareJID destination)
Returns Element object containing stream:error message |
boolean |
isEnabled(SeeOtherHostIfc.Phase ph)
Performs check whether redirect is enabled in the given phase by default see-other-host redirect is only active in stream:open phase |
void |
setNodes(List<tigase.xmpp.BareJID> nodes)
Sets list of available nodes in cluster environment |
void |
setProperties(Map<String,Object> props)
|
| Field Detail |
|---|
static final String CM_SEE_OTHER_HOST_CLASS_PROPERTY
static final String CM_SEE_OTHER_HOST_CLASS_PROP_KEY
static final String CM_SEE_OTHER_HOST_CLASS_PROP_DEF_VAL
static final String CM_SEE_OTHER_HOST_CLASS_PROP_DEF_VAL_CLUSTER
static final String CM_SEE_OTHER_HOST_DEFAULT_HOST
static final String CM_SEE_OTHER_HOST_DEFAULT_PORT
static final String CM_SEE_OTHER_HOST_ACTIVE
| Method Detail |
|---|
tigase.xmpp.BareJID findHostForJID(tigase.xmpp.BareJID jid,
tigase.xmpp.BareJID host)
jid - is a user JID extracted from the stream open attributeshost - is "this" host to which the user is now connected and which calls
the method
void setNodes(List<tigase.xmpp.BareJID> nodes)
nodes - current list of nodes
void getDefaults(Map<String,Object> defs,
Map<String,Object> params)
void setProperties(Map<String,Object> props)
tigase.xml.Element getStreamError(String xmlns,
tigase.xmpp.BareJID destination)
xmlns - xml namespace of the elementdestination - BareJID address of the redirect destination
boolean isEnabled(SeeOtherHostIfc.Phase ph)
ph - phase for which the check should be performed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||