Class WsData


  • public class WsData
    extends WsData
    • Method Detail

      • logout

        public void logout()
        Logout and invalidate Session.
      • setSessionToken

        public void setSessionToken​(java.lang.String sessionToken)
        Sets the Session Token.
        Parameters:
        sessionToken - the Session Token
      • getSessionToken

        public java.lang.String getSessionToken()
        Gets the Session Token.
        Returns:
        the Session Token
      • setUser

        public void setUser​(User user)
        Sets the User.
        Parameters:
        user - the User
      • unsetUser

        public void unsetUser()
        Unsets the User.
      • getUser

        public java.util.Optional<User> getUser()
        Gets the User.
        Returns:
        the Optional User
      • toString

        public java.lang.String toString()
        Description copied from class: WsData
        Provides a specific toString method.
        Specified by:
        toString in class WsData
        Returns:
        a specific string for this instance
      • scheduleWithFixedDelay

        protected java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay​(java.lang.Runnable command,
                                                                                 long initialDelay,
                                                                                 long delay,
                                                                                 java.util.concurrent.TimeUnit unit)
        Description copied from class: WsData
        Execute a Runnable.
        Specified by:
        scheduleWithFixedDelay in class WsData
        Parameters:
        command - the Runnable