@Controller(value="cookieTest")
@RequestMapping(value={"VIEW","EDIT","HELP","ABOUT"},
params="currentTest=cookieTest")
@SessionAttributes(value="command")
public class CookieTestController
extends BasePortletTest
Controller for testing Portlet Cookie support.logger| Constructor and Description |
|---|
CookieTestController() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createFormCookie(CreateCookieFormBackingObject command,
org.springframework.validation.BindingResult errors,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Creates a cookie from the form.
|
protected void |
createRandomCookie(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Generates a new cookie with random name and value.
|
protected String |
displayCookies(org.springframework.ui.ModelMap model,
javax.portlet.RenderRequest request) |
protected void |
editExistingCookie(CreateCookieFormBackingObject command,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Alter an existing cookie that has the same name as the command object.
|
String |
getTestName() |
protected void |
initBinder(org.springframework.web.bind.WebDataBinder binder)
Sets up a
Validator for the forms in this Controller. |
void |
noopAction() |
getTestKey, setBeanNamepublic String getTestName()
@InitBinder protected void initBinder(org.springframework.web.bind.WebDataBinder binder)
Validator for the forms in this Controller.binder - @RenderMapping protected String displayCookies(org.springframework.ui.ModelMap model, javax.portlet.RenderRequest request)
model - request - @ActionMapping public void noopAction()
@ActionMapping(value="randomCookieAction")
protected void createRandomCookie(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
response - @ActionMapping(value="formCookieAction")
protected void createFormCookie(@ModelAttribute
CreateCookieFormBackingObject command,
org.springframework.validation.BindingResult errors,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
command - errors - response - @ActionMapping(value="editCookieAction") protected void editExistingCookie(CreateCookieFormBackingObject command, javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
command - errors - request - response - Copyright © 2016 Jasig. All Rights Reserved.