org.apache.wicket.protocol.http
Class HttpSessionStore
java.lang.Object
org.apache.wicket.protocol.http.AbstractHttpSessionStore
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
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 |
HttpSessionStore
public HttpSessionStore(Application application)
- Construct.
- Parameters:
application
- The application to construct this store for
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 requestname
- 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 requestname
- 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 requestname
- the name of the attributevalue
- 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.