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

java.lang.Object
  extended by org.jasig.portlet.test.mvc.tests.BasePortletTest
      extended by org.jasig.portlet.test.mvc.tests.ExceptionThrowingTest
All Implemented Interfaces:
PortletTest, org.springframework.beans.factory.BeanNameAware

@Controller(value="exceptionThrowingTest")
@RequestMapping(value={"VIEW","EDIT","HELP","ABOUT"},
                params="currentTest=exceptionThrowingTest")
public class ExceptionThrowingTest
extends BasePortletTest

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 String THROW_EXCEPTION_PARAMETER
           
static String THROW_EXECEPTION_APPLICATION_SESSION
           
static String THROW_EXECEPTION_PORTLET_SESSION
           
 
Fields inherited from class org.jasig.portlet.test.mvc.tests.BasePortletTest
logger
 
Constructor Summary
ExceptionThrowingTest()
           
 
Method Summary
protected  void doExceptionThrowing(javax.portlet.PortletRequest request)
           
protected  String getFormattedDate()
           
 String getTestName()
           
 void handleActionRequestInternal(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
 org.springframework.web.portlet.ModelAndView handleRenderRequestInternal(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
 
Methods inherited from class org.jasig.portlet.test.mvc.tests.BasePortletTest
getTestKey, setBeanName
 
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 String THROW_EXECEPTION_APPLICATION_SESSION
See Also:
Constant Field Values

THROW_EXECEPTION_PORTLET_SESSION

public static final String THROW_EXECEPTION_PORTLET_SESSION
See Also:
Constant Field Values

THROW_EXCEPTION_PARAMETER

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

ExceptionThrowingTest

public ExceptionThrowingTest()
Method Detail

getTestName

public String getTestName()

handleActionRequestInternal

@ActionMapping
public void handleActionRequestInternal(javax.portlet.ActionRequest request,
                                                      javax.portlet.ActionResponse response)
                                 throws Exception
Throws:
Exception

handleRenderRequestInternal

@RenderMapping
public org.springframework.web.portlet.ModelAndView handleRenderRequestInternal(javax.portlet.RenderRequest request,
                                                                                              javax.portlet.RenderResponse response)
                                                                         throws Exception
Throws:
Exception

doExceptionThrowing

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

getFormattedDate

protected String getFormattedDate()


Copyright © 2012 Jasig. All Rights Reserved.