Package org.spincast.core.websocket
Class WebsocketContextBase<W extends WebsocketContext<?>>
java.lang.Object
org.spincast.core.websocket.WebsocketContextBase<W>
- Direct Known Subclasses:
AppWebsocketContextDefault
,DefaultWebsocketContextDefault
The base implementation for a WebSocket context object.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWebsocketContextBase
(String endpointId, String peerId, WebsocketPeerManager peerManager, WebsocketContextBaseDeps<W> deps) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
<T> T
get
(com.google.inject.Key<T> key) <T> T
protected LocaleResolver
protected TimeZoneResolver
com.google.inject.Injector
guice()
json()
void
sendMessageToCurrentPeer
(byte[] bytes) void
sendMessageToCurrentPeer
(String message) xml()
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
WebsocketContextBase
public WebsocketContextBase(String endpointId, String peerId, WebsocketPeerManager peerManager, WebsocketContextBaseDeps<W> deps) Constructor
-
-
Method Details
-
peerManager
-
getEndpointId
-
getPeerId
-
sendMessageToCurrentPeer
-
sendMessageToCurrentPeer
public void sendMessageToCurrentPeer(byte[] bytes) -
closeConnectionWithCurrentPeer
public void closeConnectionWithCurrentPeer() -
json
-
xml
-
templating
-
getInstanceFromGuiceCache
-
guice
public com.google.inject.Injector guice() -
get
-
get
public <T> T get(com.google.inject.Key<T> key) -
getLocaleResolver
-
getLocaleToUse
-
getTimeZoneResolver
-
getTimeZoneToUse
-