Package tigase.server.xmppserver
Interface S2SConnectionHandlerIfc<IO extends XMPPIOService<?>>
- All Known Implementing Classes:
S2SConnectionManager
public interface S2SConnectionHandlerIfc<IO extends XMPPIOService<?>>
Created: Dec 9, 2010 11:40:28 PM
- Author:
- Artur Hefczyc
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddOutPacket(Packet packet) voidaddTimerTask(TimerTask task, long delay, TimeUnit unit) getCIDConnections(CID cid, boolean createNew) getSecretForDomain(String domain) Returns secret used for particular domaingetServerNameForDomain(String domain) Returns stream features available for particular S2S connection.voidinitNewConnection(Map<String, Object> port_props) booleanbooleanisTlsRequired(String domain) Checks if TLS is required for particular domainbooleanbooleansendVerifyResult(String elem_name, CID connCid, CID keyCid, Boolean valid, String key_sessionId, String serv_sessionId, String cdata, boolean handshakingOnly) booleansendVerifyResult(String elem_name, CID connCid, CID keyCid, Boolean valid, String key_sessionId, String serv_sessionId, String cdata, boolean handshakingOnly, Element errorElem) voidserviceConnected(IO service) voidvalidateCIDConnection(CID cid) voidwritePacketsToSocket(IO serv, Queue<Packet> packets) booleanwritePacketToSocket(IO serv, Packet packet) voidwriteRawData(IO serv, String strError)
-
Method Details
-
getStreamFeatures
Returns stream features available for particular S2S connection.- Parameters:
serv-S2SIOServicefor which stream features should be retrieved- Returns:
- list of stream features
-
addOutPacket
-
addTimerTask
-
getCIDConnections
CIDConnections getCIDConnections(CID cid, boolean createNew) throws NotLocalhostException, LocalhostException -
validateCIDConnection
-
getConnectionOpenerService
CIDConnections.CIDConnectionsOpenerService getConnectionOpenerService() -
getDefHostName
BareJID getDefHostName() -
getSecretForDomain
Returns secret used for particular domain- Parameters:
domain- for which secret should be returned- Returns:
- for particular domain
- Throws:
NotLocalhostException- if the domain is not local
-
getServerNameForDomain
-
initNewConnection
-
isTlsRequired
Checks if TLS is required for particular domain- Parameters:
domain- for which secret should be returned- Returns:
- boolean indicating whether TLS is required
-
isTlsWantClientAuthEnabled
boolean isTlsWantClientAuthEnabled() -
isTlsNeedClientAuthEnabled
boolean isTlsNeedClientAuthEnabled() -
sendVerifyResult
-
sendVerifyResult
-
serviceConnected
-
writePacketToSocket
-
writePacketsToSocket
-
writeRawData
-