org.springframework.samples.petportal.portlet
Class PetSitesRedirectController

java.lang.Object
  extended by org.springframework.samples.petportal.portlet.PetSitesRedirectController

@Controller
@RequestMapping(value="VIEW")
public class PetSitesRedirectController
extends java.lang.Object

This Controller demonstrates a redirect to a website that is external to the portlet. The 'petsites-portlet' HandlerMapping will map to this view whenever in VIEW mode. See 'WEB-INF/context/petsites-portlet.xml' for details.

Author:
John A. Lewis, Mark Fisher, Juergen Hoeller

Constructor Summary
PetSitesRedirectController()
           
 
Method Summary
 void doRedirect(java.lang.String url, javax.portlet.ActionResponse response)
           
 java.util.Properties getPetSites()
           
 void setPetSites(java.util.Properties petSites)
           
 java.lang.String showPetSites()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PetSitesRedirectController

public PetSitesRedirectController()
Method Detail

setPetSites

public void setPetSites(java.util.Properties petSites)

getPetSites

@ModelAttribute(value="petSites")
public java.util.Properties getPetSites()

showPetSites

@RequestMapping
public java.lang.String showPetSites()

doRedirect

@RequestMapping
public void doRedirect(@RequestParam(value="url")
                                      java.lang.String url,
                                      javax.portlet.ActionResponse response)
                throws java.lang.Exception
Throws:
java.lang.Exception


John A. Lewis, Mark Fisher, Juergen Hoeller - 2007.