use of org.jivesoftware.openfire.server.ServerDialback in project Openfire by igniterealtime.
the class LocalIncomingServerSession method validateSubsequentDomain.
/**
* Returns true if the request of a new domain was valid. Sessions may receive subsequent
* domain validation request. If the validation of the new domain fails then the session and
* the underlying TCP connection will be closed.<p>
*
* For optimization reasons, the same session may be servicing several domains of a
* remote server.
*
* @param dbResult the DOM stanza requesting the domain validation.
* @return true if the requested domain was valid.
*/
public boolean validateSubsequentDomain(Element dbResult) {
final DomainPair domainPair = new DomainPair(getServerName(), fromDomain);
ServerDialback method = new ServerDialback(getConnection(), domainPair);
if (method.validateRemoteDomain(dbResult, getStreamID())) {
// Add the validated domain as a valid domain
addValidatedDomain(dbResult.attributeValue("from"));
return true;
}
return false;
}
Aggregations