wicket.protocol.http
Class WebSession

java.lang.Object
  extended by wicket.Session
      extended by wicket.protocol.http.WebSession
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
WicketPortletSession

public class WebSession
extends Session

A session subclass for the HTTP protocol.

Author:
Jonathan Locke
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class wicket.Session
Session.IPageMapVisitor
 
Field Summary
 
Fields inherited from class wicket.Session
SESSION_ATTRIBUTE_NAME
 
Constructor Summary
WebSession(Application application)
          Constructor
WebSession(WebApplication application)
          Constructor
 
Method Summary
protected  void attach()
          Any attach logic for session subclasses.
protected  void detach()
          Called on the end of handling a request, when the RequestCycle is about to be detached from the current thread.
protected  IRequestCycleFactory getRequestCycleFactory()
           
 void initForRequest()
          Initializes this session for a request.
 void invalidate()
          Invalidates this session at the end of the current request.
 void invalidateNow()
          Invalidates this session immediately.
protected  void update()
          Updates the session, e.g.
 
Methods inherited from class wicket.Session
clear, createAutoPageMap, createAutoPageMapName, dirty, error, exists, get, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getClientInfo, getConverter, getDefaultPageMap, getFeedbackMessages, getId, getLocale, getMetaData, getPage, getPageFactory, getPageFactory, getPageMaps, getSessionStore, getSizeInBytes, getStyle, info, init, newPageMap, newRequestCycle, pageMapForName, removeAttribute, removePageMap, set, setApplication, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, touch, unset, visitPageMaps, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSession

public WebSession(Application application)
Constructor

Parameters:
application - The application

WebSession

public WebSession(WebApplication application)
Constructor

Parameters:
application - The application
Method Detail

invalidate

public void invalidate()
Invalidates this session at the end of the current request. If you need to invalidate the session immediately, you can do this by calling invalidateNow(), however this will remove all Wicket components from this session, which means that you will no longer be able to work with them.

Overrides:
invalidate in class Session

invalidateNow

public void invalidateNow()
Invalidates this session immediately. Calling this method will remove all Wicket components from this session, which means that you will no longer be able to work with them.


attach

protected void attach()
Any attach logic for session subclasses.


detach

protected void detach()
Called on the end of handling a request, when the RequestCycle is about to be detached from the current thread.

Overrides:
detach in class Session
See Also:
Session.detach()

getRequestCycleFactory

protected IRequestCycleFactory getRequestCycleFactory()
Specified by:
getRequestCycleFactory in class Session
Returns:
Request cycle factory for this kind of session.
See Also:
Session.getRequestCycleFactory()

update

protected void update()
Updates the session, e.g. for replication purposes.

Overrides:
update in class Session

initForRequest

public final void initForRequest()
Initializes this session for a request.



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