wicket.protocol.http
Class HttpSessionStore

java.lang.Object
  extended by wicket.protocol.http.AbstractHttpSessionStore
      extended by wicket.protocol.http.HttpSessionStore
All Implemented Interfaces:
ISessionStore

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 wicket.protocol.http.AbstractHttpSessionStore
AbstractHttpSessionStore.SessionBindingListener
 
Field Summary
 
Fields inherited from class wicket.protocol.http.AbstractHttpSessionStore
application, log
 
Constructor Summary
HttpSessionStore()
           
 
Method Summary
 java.lang.Object getAttribute(Request request, java.lang.String name)
          Gets the attribute value with the given name
 java.util.List getAttributeNames(Request request)
           
 void removeAttribute(Request request, java.lang.String name)
          Removes the attribute with the given name.
 void setAttribute(Request request, java.lang.String name, java.lang.Object value)
          Adds or replaces the attribute with the given name and value.
 
Methods inherited from class wicket.protocol.http.AbstractHttpSessionStore
bind, getHttpSession, getSessionId, invalidate, lookup, onBind, 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()
Method Detail

setAttribute

public void setAttribute(Request request,
                         java.lang.String name,
                         java.lang.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)

getAttribute

public java.lang.Object getAttribute(Request request,
                                     java.lang.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(wicket.Request, java.lang.String)

removeAttribute

public void removeAttribute(Request request,
                            java.lang.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)

getAttributeNames

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


Copyright © 2004-2007 Wicket developers. All Rights Reserved.