Class TowSessionAdapter

  • All Implemented Interfaces:
    com.aspectran.core.adapter.SessionAdapter

    public class TowSessionAdapter
    extends com.aspectran.core.adapter.AbstractSessionAdapter
    Adapt HttpServerExchange to Core SessionAdapter.
    Since:
    2011. 3. 13.
    • Field Summary

      • Fields inherited from interface com.aspectran.core.adapter.SessionAdapter

        SESSION_SCOPE_ATTRIBUTE_NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      TowSessionAdapter​(io.undertow.server.HttpServerExchange exchange)
      Instantiates a new TowSessionAdapter.
    • Constructor Detail

      • TowSessionAdapter

        public TowSessionAdapter​(io.undertow.server.HttpServerExchange exchange)
        Instantiates a new TowSessionAdapter.
    • Method Detail

      • getAdaptee

        public <T> T getAdaptee()
        Specified by:
        getAdaptee in interface com.aspectran.core.adapter.SessionAdapter
        Overrides:
        getAdaptee in class com.aspectran.core.adapter.AbstractSessionAdapter
      • newSessionScope

        protected com.aspectran.core.component.bean.scope.SessionScope newSessionScope()
        Specified by:
        newSessionScope in class com.aspectran.core.adapter.AbstractSessionAdapter
      • getId

        public java.lang.String getId()
      • getCreationTime

        public long getCreationTime()
      • getLastAccessedTime

        public long getLastAccessedTime()
      • getMaxInactiveInterval

        public int getMaxInactiveInterval()
      • setMaxInactiveInterval

        public void setMaxInactiveInterval​(int interval)
      • getAttributeNames

        public java.util.Enumeration<java.lang.String> getAttributeNames()
      • getAttribute

        public <T> T getAttribute​(java.lang.String name)
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.Object value)
      • removeAttribute

        public void removeAttribute​(java.lang.String name)
      • invalidate

        public void invalidate()
      • isNew

        public boolean isNew()
      • getSession

        public io.undertow.server.session.Session getSession​(boolean create)