@Controller(value="cacheControlTest")
@RequestMapping(value={"VIEW","EDIT","HELP","ABOUT"},
params="currentTest=cacheControlTest")
public class CacheControlTestController
extends BasePortletTest
implements org.springframework.web.portlet.context.PortletContextAware
BasePortletTest for testing CacheControl support.logger| Constructor and Description |
|---|
CacheControlTestController() |
| Modifier and Type | Method and Description |
|---|---|
void |
emptyAction()
Each subclass must of have an empty
ActionMapping annotated method with no value. |
String |
getTestName() |
void |
setPortletContext(javax.portlet.PortletContext portletContext) |
String |
showExpirationTestForm() |
String |
showServletForwardTestForm() |
String |
showValidationTestForm() |
void |
triggerCacheClear()
Empty action; actions (and events) trigger the portlet renderer to clear the output cache
for this portlet.
|
void |
writeJsonContentWithExpirationCaching(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
Writes some simple JSON output.
|
void |
writeJsonContentWithValidationCaching(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response) |
void |
writeServletForwardingTest(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response) |
getTestKey, setBeanNamepublic String getTestName()
getTestName in interface PortletTestpublic void setPortletContext(javax.portlet.PortletContext portletContext)
setPortletContext in interface org.springframework.web.portlet.context.PortletContextAware@RenderMapping public String showExpirationTestForm()
@RenderMapping(params="testname=validation") public String showValidationTestForm()
@RenderMapping(params="testname=servletForward") public String showServletForwardTestForm()
@ResourceMapping(value="jsonExpirationCachingTest")
public void writeJsonContentWithExpirationCaching(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
throws IOException
request - response - IOException@ResourceMapping(value="jsonValidationCachingTest")
public void writeJsonContentWithValidationCaching(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
throws IOException
request - response - IOException@ResourceMapping(value="servletForwardingTest")
public void writeServletForwardingTest(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
throws IOException,
javax.portlet.PortletException
IOExceptionjavax.portlet.PortletException@ActionMapping(value="cacheClear") public void triggerCacheClear()
@ActionMapping public void emptyAction()
ActionMapping annotated method with no value.
Method does not have to do anything; it's triggered when a person selects a different
test from the drop down list.Copyright © 2016 Jasig. All Rights Reserved.