org.efaps.ui.wicket
Class EFapsWebRequestCycle

java.lang.Object
  extended by org.apache.wicket.RequestCycle
      extended by org.apache.wicket.protocol.http.WebRequestCycle
          extended by org.efaps.ui.wicket.EFapsWebRequestCycle

public class EFapsWebRequestCycle
extends org.apache.wicket.protocol.http.WebRequestCycle

This class extends the WebRequestCycle to throw a own ErrorPage and to open/close the Context on begin/end of a Request.

Version:
$Id: EFapsWebRequestCycle.java 2754 2009-07-08 16:05:30Z jan.moxter $
Author:
The eFaps Team

Field Summary
 
Fields inherited from class org.apache.wicket.RequestCycle
application, processor, request, response
 
Constructor Summary
EFapsWebRequestCycle(org.apache.wicket.protocol.http.WebApplication _application, org.apache.wicket.protocol.http.WebRequest _request, org.apache.wicket.Response _response)
          Constructor for a WebRequest.
 
Method Summary
 java.lang.Object getFromCache(java.lang.String _key)
          Retrieve a Component from the ComponentCache.
protected  void logRuntimeException(java.lang.RuntimeException _exception)
           
protected  void onBeginRequest()
          Called when the request cycle object is beginning its response.
protected  void onEndRequest()
          Called when the request cycle object has finished its response.
 org.apache.wicket.Page onRuntimeException(org.apache.wicket.Page _page, java.lang.RuntimeException _exception)
           
 void putIntoCache(java.lang.String _key, java.lang.Object _object)
          This Method stores a Component in the Cache.
 
Methods inherited from class org.apache.wicket.protocol.http.WebRequestCycle
getProcessor, getWebRequest, getWebResponse, getWebSession, isRedirect, newBrowserInfoPage, newClientInfo, redirectTo
 
Methods inherited from class org.apache.wicket.RequestCycle
detach, get, getApplication, getClientInfo, getMetaData, getOriginalResponse, getPageParameters, getRedirect, getRequest, getRequestTarget, getResponse, getResponsePage, getResponsePageClass, getSession, getStartTime, isUrlForNewWindowEncoding, onAfterTargetsDetached, onRequestTargetSet, request, request, request, set, setAutomaticallyClearFeedbackMessages, setMetaData, setRedirect, setRequest, setRequestTarget, setResponse, setResponsePage, setResponsePage, setResponsePage, setResponsePage, setUrlForNewWindowEncoding, toString, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, wasHandled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EFapsWebRequestCycle

public EFapsWebRequestCycle(org.apache.wicket.protocol.http.WebApplication _application,
                            org.apache.wicket.protocol.http.WebRequest _request,
                            org.apache.wicket.Response _response)
Constructor for a WebRequest.

Parameters:
_application - the Webapplication which received the WebRequest
_request - the WebRequest to be used for this RequestCycle
_response - the Response to be used for this RequestCycle
Method Detail

onBeginRequest

protected void onBeginRequest()
Called when the request cycle object is beginning its response. It opens a new Context for the Session.

Overrides:
onBeginRequest in class org.apache.wicket.RequestCycle
See Also:
onEndRequest()

onEndRequest

protected void onEndRequest()
Called when the request cycle object has finished its response. It closses the Context opened for teh Session.

Overrides:
onEndRequest in class org.apache.wicket.RequestCycle
See Also:
onBeginRequest()

onRuntimeException

public org.apache.wicket.Page onRuntimeException(org.apache.wicket.Page _page,
                                                 java.lang.RuntimeException _exception)
Overrides:
onRuntimeException in class org.apache.wicket.RequestCycle
Parameters:
_page - Page that throws the error
_exception - exception that was thrown
Returns:
Page
See Also:
RequestCycle.onRuntimeException(org.apache.wicket.Page, java.lang.RuntimeException)

logRuntimeException

protected void logRuntimeException(java.lang.RuntimeException _exception)
Overrides:
logRuntimeException in class org.apache.wicket.RequestCycle
Parameters:
_exception - RuntimeException
See Also:
RequestCycle.logRuntimeException(java.lang.RuntimeException)

putIntoCache

public void putIntoCache(java.lang.String _key,
                         java.lang.Object _object)
This Method stores a Component in the Cache.

Parameters:
_key - Key the Component should be stored in
_object - Object to be stored
See Also:
#componentcache

getFromCache

public java.lang.Object getFromCache(java.lang.String _key)
Retrieve a Component from the ComponentCache.

Parameters:
_key - Key of the Component to be retrieved
Returns:
Component if found, else null
See Also:
#componentcache


Copyright © 2003-2010 The eFaps Team. All Rights Reserved.