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.ExternalComponent
CHARSET, conn, sessionManager, status
MAJOR_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, getLastActiveDate, getNumClientPackets, getNumServerPackets, getServerName, getSessionData, getStatus, getStreamID, incrementClientPacketCount, incrementServerPacketCount, isClosed, isSecure, isUsingSelfSignedCertificate, process, removeSessionData, setAddress, setSessionData, setStatus, toString, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, deliverRawText, getAddress, getCipherSuiteName, getCreationDate, getHostAddress, getHostName, getLastActiveDate, getNumClientPackets, getNumServerPackets, getServerName, getStatus, getStreamID, isClosed, isSecure, process, validate
public 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()
LocalSession
getAvailableStreamFeatures
in class LocalSession
public ComponentSession.ExternalComponent getExternalComponent()
getExternalComponent
in interface ComponentSession
public boolean authenticate(String digest)
digest
- the digest sent in the handshake.Copyright © 2003-2008 Jive Software.