Class DefaultAtmosphereResourceSession

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkValid()  
      java.lang.Object getAttribute​(java.lang.String name)
      Returns the object bound with the specified name in this session, or null if no object is bound under the name
      <T> T getAttribute​(java.lang.String name, java.lang.Class<T> type)
      Returns the object bound with the specified name in this session, or null if no object is bound under the name
      java.util.Collection<java.lang.String> getAttributeNames()
      Returns a Collection of Strings containing the names of all the objects bound to this session.
      void invalidate()
      Invalidates this session then unbinds any objects bound to it.
      java.lang.Object setAttribute​(java.lang.String name, java.lang.Object value)
      Binds an object to this session, using the name specified
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultAtmosphereResourceSession

        public DefaultAtmosphereResourceSession()
    • Method Detail

      • setAttribute

        public java.lang.Object setAttribute​(java.lang.String name,
                                             java.lang.Object value)
        Description copied from interface: AtmosphereResourceSession
        Binds an object to this session, using the name specified
        Specified by:
        setAttribute in interface AtmosphereResourceSession
        Parameters:
        name - Attribute name
        value - Attribute value
        Returns:
        the previous value associated with name, or null if there was no mapping for name
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
        Description copied from interface: AtmosphereResourceSession
        Returns the object bound with the specified name in this session, or null if no object is bound under the name
        Specified by:
        getAttribute in interface AtmosphereResourceSession
        Parameters:
        name - Attribute name
        Returns:
        the object with the specified name
      • getAttribute

        public <T> T getAttribute​(java.lang.String name,
                                  java.lang.Class<T> type)
        Description copied from interface: AtmosphereResourceSession
        Returns the object bound with the specified name in this session, or null if no object is bound under the name
        Specified by:
        getAttribute in interface AtmosphereResourceSession
        Parameters:
        name - Attribute name
        type - Attribute type
        Returns:
        the object with the specified name
      • getAttributeNames

        public java.util.Collection<java.lang.String> getAttributeNames()
        Description copied from interface: AtmosphereResourceSession
        Returns a Collection of Strings containing the names of all the objects bound to this session.
        Specified by:
        getAttributeNames in interface AtmosphereResourceSession
        Returns:
        a Collection of Strings containing the names of all the objects bound to this session
      • checkValid

        protected void checkValid()