Class WebsocketContextBase<W extends WebsocketContext<?>>

java.lang.Object
org.spincast.core.websocket.WebsocketContextBase<W>
Direct Known Subclasses:
AppWebsocketContextDefault, DefaultWebsocketContextDefault

public abstract class WebsocketContextBase<W extends WebsocketContext<?>> extends Object
The base implementation for a WebSocket context object.
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
  • Constructor Details

  • Method Details

    • peerManager

      public WebsocketPeerManager peerManager()
    • getEndpointId

      public String getEndpointId()
    • getPeerId

      public String getPeerId()
    • sendMessageToCurrentPeer

      public void sendMessageToCurrentPeer(String message)
    • sendMessageToCurrentPeer

      public void sendMessageToCurrentPeer(byte[] bytes)
    • closeConnectionWithCurrentPeer

      public void closeConnectionWithCurrentPeer()
    • json

      public JsonManager json()
    • xml

      public XmlManager xml()
    • templating

      public TemplatingEngine templating()
    • getInstanceFromGuiceCache

      protected Map<com.google.inject.Key<?>,Object> getInstanceFromGuiceCache()
    • guice

      public com.google.inject.Injector guice()
    • get

      public <T> T get(Class<T> clazz)
    • get

      public <T> T get(com.google.inject.Key<T> key)
    • getLocaleResolver

      protected LocaleResolver getLocaleResolver()
    • getLocaleToUse

      public Locale getLocaleToUse()
    • getTimeZoneResolver

      protected TimeZoneResolver getTimeZoneResolver()
    • getTimeZoneToUse

      public TimeZone getTimeZoneToUse()