Class ClientEndPoint

java.lang.Object
com.iizix.server.client.ClientEndPoint
All Implemented Interfaces:
IEndPoint

public class ClientEndPoint extends Object implements IEndPoint
The main class for an Client session running in the Server.
Author:
Christopher Mindus
  • Method Details

    • getStatistics

      public SessionStatistics getStatistics()
      Returns the session statistics.
    • getWebSocketCommListener

      public IServerWebSocketCommListener getWebSocketCommListener(IWebSocketComm comm)
      Gets the WebSocketCommListener for the end point.
      Specified by:
      getWebSocketCommListener in interface IEndPoint
      Parameters:
      comm - The WebSocket communication instance.
      Returns:
      The WebSocket listener.
    • getTransactionProcessor

      public ClientTransactionProcessor getTransactionProcessor()
      Gets the client transaction processor.
    • getPortConfig

      public PortConfig getPortConfig()
      Gets the port configuration of the connector this end point's connection arrived on (CC-FIX-PORTS-OWN-PORT-CONFIRM): the PortConfig the web server built the connector with, the same instance the connector's IPortController.getConfiguration() answers.
      Returns:
      The port configuration, or null when the connection carries none (a connector built without one).
    • getServerSessionID

      public long getServerSessionID()
      Gets the Server Session ID.
      Specified by:
      getServerSessionID in interface IEndPoint
      Returns:
      The session ID.
    • getServer

      public ServerShell getServer()
      Gets the server instance.
      Specified by:
      getServer in interface IEndPoint
      Returns:
      The server instance.
    • getEndPointType

      public IEndPoint.Type getEndPointType()
      Gets the end point type.
      Specified by:
      getEndPointType in interface IEndPoint
      Returns:
      The endpoint type.
    • getEndPointName

      public String getEndPointName()
      Gets the end point name.
      Specified by:
      getEndPointName in interface IEndPoint
      Returns:
      A short descriptive end-point type name.
    • getSessionInfo

      public SessionInfo getSessionInfo()
      Gets the SessionInfo for this end point.
      Specified by:
      getSessionInfo in interface IEndPoint
      Returns:
      The SessionInfo instance.
    • dispose

      public boolean dispose()
      Disposes of the end point.
      Specified by:
      dispose in interface IEndPoint
      Returns:
      true if disposed, false if already disposed of.
    • isIiziRun

      public boolean isIiziRun()
      Checks if the client is iiziRun on Cordova, which cannot reload a page and restarts the app instead (CC-SERVER-RESTART-UPDATE-V5).
      Returns:
      true when the client environment says iiziRun is present, false for a Browser or before the environment is known.
    • closeForServerExit

      public void closeForServerExit(String text)
      Closes the client for a server exit: the close code GCloseCodes.CC_SERVER_RESTART with the text, then the session is disposed of (CC-SERVER-RESTART-UPDATE-V5).
      Parameters:
      text - The text the client is told, see ServerExitNotice.
    • isDisposed

      public boolean isDisposed()
      Checks if the client end point is disposed of.