org.apache.wicket.protocol.http
Class HttpSessionStore

java.lang.Object
  extended by org.apache.wicket.protocol.http.AbstractHttpSessionStore
      extended by org.apache.wicket.protocol.http.HttpSessionStore
All Implemented Interfaces:
ISessionStore
Direct Known Subclasses:
SecondLevelCacheSessionStore

public class HttpSessionStore
extends AbstractHttpSessionStore

Default web implementation of ISessionStore that uses the HttpSession to store its attributes.

Author:
Eelco Hillenius

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wicket.protocol.http.AbstractHttpSessionStore
AbstractHttpSessionStore.SessionBindingListener
 
Field Summary
 
Fields inherited from class org.apache.wicket.protocol.http.AbstractHttpSessionStore
application
 
Constructor Summary
HttpSessionStore(Application application)
          Construct.
 
Method Summary
 IPageMap createPageMap(String name)
           
 Object getAttribute(Request request, String name)
          Gets the attribute value with the given name
 List<String> getAttributeNames(Request request)
           
 void removeAttribute(Request request, String name)
          Removes the attribute with the given name.
 void setAttribute(Request request, String name, Object value)
          Adds or replaces the attribute with the given name and value.
 
Methods inherited from class org.apache.wicket.protocol.http.AbstractHttpSessionStore
bind, createPageMap, destroy, getHttpSession, getHttpSession, getSessionId, invalidate, lookup, newVersionManager, onBeginRequest, onBind, onEndRequest, onUnbind, toWebRequest, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSessionStore

public HttpSessionStore(Application application)
Construct.

Parameters:
application - The application to construct this store for
Method Detail

createPageMap

public IPageMap createPageMap(String name)
Returns:
The pagemap instance
See Also:
ISessionStore.createPageMap(java.lang.String)

getAttribute

public Object getAttribute(Request request,
                           String name)
Description copied from interface: ISessionStore
Gets the attribute value with the given name

Parameters:
request - the current request
name - The name of the attribute to store
Returns:
The value of the attribute
See Also:
ISessionStore.getAttribute(org.apache.wicket.Request, java.lang.String)

getAttributeNames

public List<String> getAttributeNames(Request request)
Parameters:
request - the current request
Returns:
List of attributes for this session
See Also:
ISessionStore.getAttributeNames(Request)

removeAttribute

public void removeAttribute(Request request,
                            String name)
Description copied from interface: ISessionStore
Removes the attribute with the given name.

Parameters:
request - the current request
name - the name of the attribute to remove
See Also:
ISessionStore.removeAttribute(Request,java.lang.String)

setAttribute

public void setAttribute(Request request,
                         String name,
                         Object value)
Description copied from interface: ISessionStore
Adds or replaces the attribute with the given name and value.

Parameters:
request - the current request
name - the name of the attribute
value - the value of the attribute
See Also:
ISessionStore.setAttribute(Request,java.lang.String, java.lang.Object)


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.