org.apache.wicket.protocol.http
Class WebSession

java.lang.Object
  extended by org.apache.wicket.Session
      extended by org.apache.wicket.protocol.http.WebSession
All Implemented Interfaces:
java.io.Serializable, IClusterable
Direct Known Subclasses:
AuthenticatedWebSession, HangmanSession, LibrarySession, RolesSession, SignIn2Session, SignInSession

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 org.apache.wicket.Session
Session.IPageMapVisitor, Session.PageMapAccessMetaData
 
Field Summary
 
Fields inherited from class org.apache.wicket.Session
PAGEMAP_ACCESS_MDK, SESSION_ATTRIBUTE_NAME
 
Constructor Summary
WebSession(Application application, Request request)
          Deprecated. Use #WebSession(Request) instead
WebSession(Request request)
          Constructor.
WebSession(WebApplication application, Request request)
          Deprecated. Use #WebSession(Request)
 
Method Summary
 void cleanupFeedbackMessages()
          Cleans up all rendered feedback messages and any unrendered, dangling feedback messages there may be left after that.
protected  boolean isCurrentRequestValid(RequestCycle lockedRequestCycle)
          When a regular request on certain page with certain version is being processed, we don't allow ajax requests to same page and version.
 
Methods inherited from class org.apache.wicket.Session
attach, bind, clear, createAutoPageMap, createAutoPageMapName, currentCreateAutoPageMapCounter, detach, dirty, error, exists, findOrCreate, findOrCreate, get, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getAutoPageMapNamePrefix, getAutoPageMapNameSuffix, getClassResolver, getClientInfo, getDefaultPageMap, getFeedbackMessages, getId, getLocale, getMetaData, getPage, getPage, getPageFactory, getPageFactory, getPageMaps, getSessionStore, getSizeInBytes, getStyle, incrementCreateAutoPageMapCounter, info, invalidate, invalidateNow, isSessionInvalidated, isTemporary, newPageMap, nextPageId, nextSequenceValue, pageMapForName, removeAttribute, removePageMap, set, setApplication, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, touch, unset, untouch, update, 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,
                  Request request)
Deprecated. Use #WebSession(Request) instead

Constructor. Note that RequestCycle is not available until this constructor returns.

Parameters:
application - The application
request - The current request

WebSession

public WebSession(WebApplication application,
                  Request request)
Deprecated. Use #WebSession(Request)

Constructor. Note that RequestCycle is not available until this constructor returns.

Parameters:
application - The application
request - The current request

WebSession

public WebSession(Request request)
Constructor. Note that RequestCycle is not available until this constructor returns.

Parameters:
request - The current request
Method Detail

isCurrentRequestValid

protected boolean isCurrentRequestValid(RequestCycle lockedRequestCycle)
Description copied from class: Session
When a regular request on certain page with certain version is being processed, we don't allow ajax requests to same page and version.

Overrides:
isCurrentRequestValid in class Session
Returns:
whether current request is valid or should be discarded
See Also:
Session.isCurrentRequestValid(org.apache.wicket.RequestCycle)

cleanupFeedbackMessages

public void cleanupFeedbackMessages()
Description copied from class: Session
Cleans up all rendered feedback messages and any unrendered, dangling feedback messages there may be left after that.

Specified by:
cleanupFeedbackMessages in class Session
See Also:
Session.cleanupFeedbackMessages()


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