com.sun.im.provider
Interface Redirector
- public interface Redirector
A redirector tells whether a session should be redirected to another host
and if so what is the redirection target.
Field Summary |
static java.lang.String |
REJECTED
|
Method Summary |
java.lang.String |
getOtherHost(java.net.InetAddress client,
java.lang.String uid,
java.lang.String domain)
If the combination of user id and domain should be redirected
to a host different than this one, return this host. |
REJECTED
public static final java.lang.String REJECTED
- See Also:
- Constant Field Values
getOtherHost
public java.lang.String getOtherHost(java.net.InetAddress client,
java.lang.String uid,
java.lang.String domain)
- If the combination of user id and domain should be redirected
to a host different than this one, return this host.
- Parameters:
domain
- user domain. This argument
may be null if the user domain has not yet been gathered by the
server. No domain-based check is done in this case.uid
- unique user id within the domain. This argument
may be null if the user id has not yet been gathered by the
server. No uid based check is done in this case.client
- internet address the client is connecting from.
This attribute may be null if it is unknown by the access point
- Returns:
- host to redirect to, or REJECTED, in case the connection
should be closed but not redirected.