Connector.ConnectedHandler, Connector.DisconnectedHandler, Connector.EncryptionEstablishedHandler, Connector.ErrorHandler, Connector.StanzaReceivedHandler, Connector.StanzaSendingHandler, Connector.State, Connector.StateChangedHandler, Connector.StreamTerminatedHandlerCOMPRESSED_KEY, CONNECTOR_STAGE_KEY, DISABLE_KEEPALIVE_KEY, ENCRYPTED_KEY, EXTERNAL_KEEPALIVE_KEY, SEE_OTHER_HOST_KEY, TRUST_MANAGERS_KEY| Constructor and Description |
|---|
ConnectorWrapper() |
| Modifier and Type | Method and Description |
|---|---|
XmppSessionLogic |
createSessionLogic(XmppModulesManager modulesManager,
PacketWriter writer)
Returns instance of XmppSessionLogic to work with this
connector.
|
Connector |
getConnector()
Returns wrapped connector.
|
Connector.State |
getState()
Returns current State of connector.
|
boolean |
isCompressed()
Returns XML Stream compression state.
|
boolean |
isSecure()
Returns connection security state.
|
void |
keepalive()
Whitespace ping.
|
void |
restartStream()
Sends new XML Stream header.
|
void |
send(Element stanza)
Sends given XML Element to server.
|
void |
setConnector(Connector connector)
Sets connector to be wrapped.
|
void |
start()
Starts connector.
|
void |
stop()
Stops connector and closes connections.
|
void |
stop(boolean terminate)
Stops connector.
|
public XmppSessionLogic createSessionLogic(XmppModulesManager modulesManager, PacketWriter writer)
ConnectorcreateSessionLogic in interface ConnectormodulesManager - module managerwriter - writerpublic Connector getConnector()
public Connector.State getState()
Connectorpublic boolean isCompressed()
ConnectorisCompressed in interface Connectortrue> if XML Stream is compressed.public boolean isSecure()
Connectorpublic void keepalive()
throws JaxmppException
Connectorkeepalive in interface ConnectorJaxmppExceptionpublic void restartStream()
throws XMLException,
JaxmppException
ConnectorrestartStream in interface ConnectorXMLExceptionJaxmppExceptionpublic void send(Element stanza) throws XMLException, JaxmppException
Connectorsend in interface Connectorstanza - XML element to send.XMLExceptionJaxmppExceptionpublic void setConnector(Connector connector)
connector - connector.public void start()
throws XMLException,
JaxmppException
Connectorstart in interface ConnectorXMLExceptionJaxmppExceptionpublic void stop()
throws XMLException,
JaxmppException
Connectorstop in interface ConnectorXMLExceptionJaxmppExceptionpublic void stop(boolean terminate)
throws XMLException,
JaxmppException
Connectorstop in interface Connectorterminate - if
true then connection will be terminated immediatelly and connector will be stopped.XMLExceptionJaxmppExceptionCopyright © 2006–2015 Tigase. All rights reserved.