com.caucho.portal.generic
Class HttpPortletSession

java.lang.Object
  extended by com.caucho.portal.generic.HttpPortletSession

public class HttpPortletSession
extends java.lang.Object

An adapter to a javax.servlet.HttpSession.


Field Summary
protected static java.util.logging.Logger log
           
 java.lang.String PORTLET_SCOPE_PREFIX
           
 java.lang.String PORTLET_SCOPE_RESERVED_PREFIX
           
 
Constructor Summary
HttpPortletSession()
           
 
Method Summary
 void finish()
          Finish with the HttpSession object.
 java.lang.Object getAttribute(java.lang.String name)
           
 java.lang.Object getAttribute(java.lang.String name, int scope)
           
 java.util.Enumeration getAttributeNames()
           
 java.util.Enumeration getAttributeNames(int scope)
           
 long getCreationTime()
           
 HttpSession getHttpSession()
           
 java.lang.String getId()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 PortletContext getPortletContext()
           
 void invalidate()
           
 boolean isNew()
           
 void removeAttribute(java.lang.String name)
           
 void removeAttribute(java.lang.String name, int scope)
           
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 void setAttribute(java.lang.String name, java.lang.Object value, int scope)
           
 void setMaxInactiveInterval(int interval)
           
 void start(PortletContext portletContext, HttpSession httpSession)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final java.util.logging.Logger log

PORTLET_SCOPE_PREFIX

public final java.lang.String PORTLET_SCOPE_PREFIX
See Also:
Constant Field Values

PORTLET_SCOPE_RESERVED_PREFIX

public final java.lang.String PORTLET_SCOPE_RESERVED_PREFIX
See Also:
Constant Field Values
Constructor Detail

HttpPortletSession

public HttpPortletSession()
Method Detail

start

public void start(PortletContext portletContext,
                  HttpSession httpSession)

finish

public void finish()
Finish with the HttpSession object. After calling this method, this object can be placed into a pool and reused for subsequent requests.


getPortletContext

public PortletContext getPortletContext()

getHttpSession

public HttpSession getHttpSession()

getAttribute

public java.lang.Object getAttribute(java.lang.String name)

getAttribute

public java.lang.Object getAttribute(java.lang.String name,
                                     int scope)

getAttributeNames

public java.util.Enumeration getAttributeNames()

getAttributeNames

public java.util.Enumeration getAttributeNames(int scope)

getCreationTime

public long getCreationTime()

getId

public java.lang.String getId()

getLastAccessedTime

public long getLastAccessedTime()

getMaxInactiveInterval

public int getMaxInactiveInterval()

invalidate

public void invalidate()

isNew

public boolean isNew()

removeAttribute

public void removeAttribute(java.lang.String name)

removeAttribute

public void removeAttribute(java.lang.String name,
                            int scope)

setAttribute

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

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value,
                         int scope)

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)