org.jasig.portlet.test.mvc.tests
Class ExceptionThrowingTest

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.portlet.context.PortletApplicationObjectSupport
          extended by org.springframework.web.portlet.handler.PortletContentGenerator
              extended by org.springframework.web.portlet.mvc.AbstractController
                  extended by org.jasig.portlet.test.mvc.tests.ExceptionThrowingTest
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.portlet.context.PortletContextAware, org.springframework.web.portlet.mvc.Controller

public class ExceptionThrowingTest
extends org.springframework.web.portlet.mvc.AbstractController

Provides a way to throw exceptions and base the excpetion being thrown on a request parameter, portlet scoped session attribute, or application scoped session attribute.

Version:
$Revision$
Author:
Eric Dalquist

Field Summary
static java.lang.String THROW_EXCEPTION_PARAMETER
           
static java.lang.String THROW_EXECEPTION_APPLICATION_SESSION
           
static java.lang.String THROW_EXECEPTION_PORTLET_SESSION
           
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
ExceptionThrowingTest()
           
 
Method Summary
protected  void doExceptionThrowing(javax.portlet.PortletRequest request)
           
protected  java.lang.String getFormattedDate()
           
protected  void handleActionRequestInternal(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
protected  org.springframework.web.portlet.ModelAndView handleRenderRequestInternal(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
 
Methods inherited from class org.springframework.web.portlet.mvc.AbstractController
handleActionRequest, handleRenderRequest, isRenderWhenMinimized, isSynchronizeOnSession, setRenderWhenMinimized, setSynchronizeOnSession
 
Methods inherited from class org.springframework.web.portlet.handler.PortletContentGenerator
applyCacheSeconds, cacheForSeconds, check, checkAndPrepare, checkAndPrepare, getCacheSeconds, isRequireSession, preventCaching, setCacheSeconds, setRequireSession
 
Methods inherited from class org.springframework.web.portlet.context.PortletApplicationObjectSupport
getPortletContext, getTempDir, isContextRequired, setPortletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THROW_EXECEPTION_APPLICATION_SESSION

public static final java.lang.String THROW_EXECEPTION_APPLICATION_SESSION
See Also:
Constant Field Values

THROW_EXECEPTION_PORTLET_SESSION

public static final java.lang.String THROW_EXECEPTION_PORTLET_SESSION
See Also:
Constant Field Values

THROW_EXCEPTION_PARAMETER

public static final java.lang.String THROW_EXCEPTION_PARAMETER
See Also:
Constant Field Values
Constructor Detail

ExceptionThrowingTest

public ExceptionThrowingTest()
Method Detail

handleActionRequestInternal

protected void handleActionRequestInternal(javax.portlet.ActionRequest request,
                                           javax.portlet.ActionResponse response)
                                    throws java.lang.Exception
Overrides:
handleActionRequestInternal in class org.springframework.web.portlet.mvc.AbstractController
Throws:
java.lang.Exception

handleRenderRequestInternal

protected org.springframework.web.portlet.ModelAndView handleRenderRequestInternal(javax.portlet.RenderRequest request,
                                                                                   javax.portlet.RenderResponse response)
                                                                            throws java.lang.Exception
Overrides:
handleRenderRequestInternal in class org.springframework.web.portlet.mvc.AbstractController
Throws:
java.lang.Exception

doExceptionThrowing

protected void doExceptionThrowing(javax.portlet.PortletRequest request)
                            throws javax.portlet.PortletException
Throws:
javax.portlet.PortletException

getFormattedDate

protected java.lang.String getFormattedDate()


Copyright © 2010 Jasig. All Rights Reserved.