public class LocalComponentSession extends LocalSession implements ComponentSession
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalComponentSession.LocalExternalComponent
The ExternalComponent acts as a proxy of the remote connected component.
|
ComponentSession.ExternalComponentCHARSET, conn, sessionManager, status, streamManagerMAJOR_VERSION, MINOR_VERSION, STATUS_AUTHENTICATED, STATUS_CLOSED, STATUS_CONNECTED| Constructor and Description |
|---|
LocalComponentSession(String serverName,
Connection conn,
StreamID id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String digest)
Authenticate the external component using a digest method.
|
static LocalComponentSession |
createSession(String serverName,
org.xmlpull.v1.XmlPullParser xpp,
Connection connection)
Returns a newly created session between the server and a component.
|
String |
getAvailableStreamFeatures()
Returns a text with the available stream features.
|
ComponentSession.ExternalComponent |
getExternalComponent() |
close, decodeVersion, deliverRawText, getAddress, getCipherSuiteName, getConnection, getCreationDate, getHostAddress, getHostName, getLanguage, getLastActiveDate, getNumClientPackets, getNumServerPackets, getPeerCertificates, getServerName, getSessionData, getStatus, getStreamID, getStreamManager, incrementClientPacketCount, incrementServerPacketCount, isClosed, isSecure, isUsingSelfSignedCertificate, process, removeSessionData, setAddress, setSessionData, setStatus, toString, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, deliverRawText, getAddress, getCipherSuiteName, getCreationDate, getHostAddress, getHostName, getLanguage, getLastActiveDate, getNumClientPackets, getNumServerPackets, getPeerCertificates, getServerName, getStatus, getStreamID, isClosed, isSecure, process, validatepublic LocalComponentSession(String serverName, Connection conn, StreamID id)
public static LocalComponentSession createSession(String serverName, org.xmlpull.v1.XmlPullParser xpp, Connection connection) throws org.xmlpull.v1.XmlPullParserException
A domain will be binded for the new connecting component. This method is following the JEP-114 where the domain to bind is sent in the TO attribute of the stream header.
serverName - the name of the server where the session is connecting to.xpp - the parser that is reading the provided XML through the connection.connection - the connection with the component.org.xmlpull.v1.XmlPullParserException - if there was an XML error while creating the session.public String getAvailableStreamFeatures()
LocalSessiongetAvailableStreamFeatures in class LocalSessionpublic ComponentSession.ExternalComponent getExternalComponent()
getExternalComponent in interface ComponentSessionpublic boolean authenticate(String digest)
digest - the digest sent in the handshake.Copyright © 2003-2008 Jive Software.