Package org.jivesoftware.smack.websocket
Class XmppWebSocketTransportModule.XmppWebSocketTransport
- java.lang.Object
-
- org.jivesoftware.smack.c2s.XmppClientToServerTransport
-
- org.jivesoftware.smack.websocket.XmppWebSocketTransportModule.XmppWebSocketTransport
-
- Enclosing class:
- XmppWebSocketTransportModule
public final class XmppWebSocketTransportModule.XmppWebSocketTransport extends XmppClientToServerTransport
Transport class forModularXmppClientToServerConnectionModule
's websocket implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
XmppWebSocketTransportModule.XmppWebSocketTransport.DiscoveredWebSocketEndpoints
ContainsWebSocketRemoteConnectionEndpointLookup.Result
for successfully discovered endpoints.-
Nested classes/interfaces inherited from class org.jivesoftware.smack.c2s.XmppClientToServerTransport
XmppClientToServerTransport.LookupConnectionEndpointsFailed, XmppClientToServerTransport.LookupConnectionEndpointsResult, XmppClientToServerTransport.LookupConnectionEndpointsSuccess, XmppClientToServerTransport.Stats
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.smack.c2s.XmppClientToServerTransport
connectionInternal
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterFiltersClosed()
Notify the transport that new outgoing data is available.protected void
disconnect()
Called by the CloseConnection state.SSLSession
getSslSession()
XmppClientToServerTransport.Stats
getStats()
StreamOpenAndCloseFactory
getStreamOpenAndCloseFactory()
boolean
hasUseableConnectionEndpoints()
boolean
isTransportSecured()
protected void
loadConnectionEndpoints(XmppClientToServerTransport.LookupConnectionEndpointsSuccess lookupConnectionEndpointsSuccess)
protected List<SmackFuture<XmppClientToServerTransport.LookupConnectionEndpointsResult,Exception>>
lookupConnectionEndpoints()
protected void
notifyAboutNewOutgoingElements()
protected void
resetDiscoveredConnectionEndpoints()
-
-
-
Method Detail
-
resetDiscoveredConnectionEndpoints
protected void resetDiscoveredConnectionEndpoints()
- Specified by:
resetDiscoveredConnectionEndpoints
in classXmppClientToServerTransport
-
hasUseableConnectionEndpoints
public boolean hasUseableConnectionEndpoints()
- Specified by:
hasUseableConnectionEndpoints
in classXmppClientToServerTransport
-
lookupConnectionEndpoints
protected List<SmackFuture<XmppClientToServerTransport.LookupConnectionEndpointsResult,Exception>> lookupConnectionEndpoints()
- Specified by:
lookupConnectionEndpoints
in classXmppClientToServerTransport
-
loadConnectionEndpoints
protected void loadConnectionEndpoints(XmppClientToServerTransport.LookupConnectionEndpointsSuccess lookupConnectionEndpointsSuccess)
- Specified by:
loadConnectionEndpoints
in classXmppClientToServerTransport
-
afterFiltersClosed
protected void afterFiltersClosed()
Description copied from class:XmppClientToServerTransport
Notify the transport that new outgoing data is available. Usually this method does not need to be called explicitly, only if the filters are modified so that they potentially produced new data.- Specified by:
afterFiltersClosed
in classXmppClientToServerTransport
-
disconnect
protected void disconnect()
Description copied from class:XmppClientToServerTransport
Called by the CloseConnection state.- Specified by:
disconnect
in classXmppClientToServerTransport
-
notifyAboutNewOutgoingElements
protected void notifyAboutNewOutgoingElements()
- Specified by:
notifyAboutNewOutgoingElements
in classXmppClientToServerTransport
-
getSslSession
public SSLSession getSslSession()
- Specified by:
getSslSession
in classXmppClientToServerTransport
-
isTransportSecured
public boolean isTransportSecured()
- Overrides:
isTransportSecured
in classXmppClientToServerTransport
-
getStats
public XmppClientToServerTransport.Stats getStats()
- Specified by:
getStats
in classXmppClientToServerTransport
-
getStreamOpenAndCloseFactory
public StreamOpenAndCloseFactory getStreamOpenAndCloseFactory()
- Specified by:
getStreamOpenAndCloseFactory
in classXmppClientToServerTransport
-
-