tigase.server.xmppclient
Class SeeOtherHostHashed
java.lang.Object
tigase.server.xmppclient.SeeOtherHostHashed
- All Implemented Interfaces:
- SeeOtherHostIfc
- Direct Known Subclasses:
- SeeOtherHostDB
public class SeeOtherHostHashed
- extends Object
- implements SeeOtherHostIfc
Default and basic implementation of SeeOtherHost returning same host as the
initial one
- Author:
- Wojtek
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaulHost
protected List<tigase.xmpp.BareJID> defaulHost
connectedNodes
protected List<tigase.xmpp.BareJID> connectedNodes
SeeOtherHostHashed
public SeeOtherHostHashed()
findHostForJID
public tigase.xmpp.BareJID findHostForJID(tigase.xmpp.BareJID jid,
tigase.xmpp.BareJID host)
- Description copied from interface:
SeeOtherHostIfc
- Finds an appropriate host for a given JID
- Specified by:
findHostForJID in interface SeeOtherHostIfc
- Parameters:
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
- Returns:
- BareJID of possible host to which the user should connect or NULL
getDefaults
public void getDefaults(Map<String,Object> defs,
Map<String,Object> params)
- Specified by:
getDefaults in interface SeeOtherHostIfc
setProperties
public void setProperties(Map<String,Object> props)
- Specified by:
setProperties in interface SeeOtherHostIfc
setNodes
public void setNodes(List<tigase.xmpp.BareJID> connectedNodes)
- Specified by:
setNodes in interface SeeOtherHostIfc
Copyright © 2012 Tigase. All Rights Reserved.