Class AbstractSession

java.lang.Object
org.serviceconnector.service.AbstractSession
Direct Known Subclasses:
Session, Subscription

public abstract class AbstractSession extends Object
The Class AbstractSession.
  • Field Details

    • server

      protected IServer server
      The server.
    • ipAddressList

      protected String ipAddressList
      The ip address list.
  • Constructor Details

    • AbstractSession

      public AbstractSession(String sessionInfo, String ipAddressList)
      Instantiates a new session.
      Parameters:
      sessionInfo - the session info
      ipAddressList - the ip address list
    • AbstractSession

      public AbstractSession(String sessionInfo, String ipAddressList, boolean cascaded)
      Instantiates a new abstract session.
      Parameters:
      sessionInfo - the session info
      ipAddressList - the ip address list
      cascaded - the cascaded
  • Method Details

    • getId

      public String getId()
      Gets the id.
      Returns:
      the id
    • setServer

      public void setServer(IServer server)
      Sets the server.
      Parameters:
      server - the new server
    • getServer

      public IServer getServer()
      Gets the server.
      Returns:
      the server
    • setService

      public void setService(Service service)
      Sets the service.
      Parameters:
      service - the new service
    • getService

      public Service getService()
      Gets the service.
      Returns:
      the service
    • getTimeout

      public ScheduledFuture<TimeoutWrapper> getTimeout()
      Gets the session timeout.
      Returns:
      the session timeout
    • setTimeout

      public void setTimeout(ScheduledFuture<TimeoutWrapper> timeout)
      Sets the session timeout.
      Parameters:
      timeout - the new session timeout
    • getIpAddressList

      public String getIpAddressList()
      Gets the ip address list.
      Returns:
      the ip address list
    • getSessionInfo

      public String getSessionInfo()
      Gets the session info.
      Returns:
      the session info
    • setTimeouterTask

      public void setTimeouterTask(TimeoutWrapper timeouterTask)
      Sets the timeouter task.
      Parameters:
      timeouterTask - the new timeouter task
    • getTimeouterTask

      public TimeoutWrapper getTimeouterTask()
      Gets the timeouter task.
      Returns:
      the timeouter task
    • getCreationTime

      public Date getCreationTime()
      Gets the creation time.
      Returns:
      the creation time
    • isCascaded

      public boolean isCascaded()
      Checks if is cascaded session. Indicates if session has been created by a cascaded client or a real client.
      Returns:
      true, if is cascaded
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string
    • dump

      public abstract void dump(XMLDumpWriter writer) throws Exception
      Dump the session into the xml writer.
      Parameters:
      writer - the writer
      Throws:
      Exception - the exception