Class AppEndpoint

java.lang.Object
org.javalite.activeweb.websockets.AppEndpoint
Direct Known Subclasses:
JSONListEndpoint, JSONMapEndpoint

public abstract class AppEndpoint extends Object
  • Constructor Details

    • AppEndpoint

      public AppEndpoint()
  • Method Details

    • logInfo

      protected final void logInfo(String info)
    • logDebug

      protected final void logDebug(String info)
    • logWarning

      protected final void logWarning(String info)
    • logWarning

      protected final void logWarning(String info, Throwable e)
    • logError

      protected final void logError(String info)
    • logError

      protected final void logError(Throwable e)
    • logError

      protected final void logError(String info, Throwable e)
    • setHttSession

      public void setHttSession(javax.servlet.http.HttpSession httpSession)
    • sendMessage

      protected final void sendMessage(String message) throws IOException
      Throws:
      IOException
    • getSession

      public javax.websocket.Session getSession()
    • getHttpSession

      public javax.servlet.http.HttpSession getHttpSession()
    • onMessage

      public abstract void onMessage(String message)
    • onClose

      public void onClose(javax.websocket.CloseReason closeReason)
    • onError

      public final void onError(Throwable throwable)