Class RedirectResponseValues
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.BaseResponseValues
-
- edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.RedirectResponseValues
-
- All Implemented Interfaces:
ResponseValues
- Direct Known Subclasses:
DirectRedirectResponseValues
public class RedirectResponseValues extends BaseResponseValues
Also see DirectRedirectResponseValues
-
-
Constructor Summary
Constructors Constructor Description RedirectResponseValues(UrlBuilder.Route redirectUrl)RedirectResponseValues(String redirectUrl)The string redirectUrl will get the context added.RedirectResponseValues(String redirectUrl, int statusCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRedirectUrl()protected StringgetRedirectUrl(String redirectUrl)-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.BaseResponseValues
getContentType, getException, getForwardUrl, getHeader, getMap, getModel, getStatusCode, getTemplateName, setContentType, setStatusCode
-
-
-
-
Constructor Detail
-
RedirectResponseValues
public RedirectResponseValues(String redirectUrl)
The string redirectUrl will get the context added. If you want a redirect for a URL that has the context already added, as is the case if a UrlBuilder was used. use the class DirectRedirectResponseValues. This will attempt to handle an off site redirect by checking for "://" in the URL.
-
RedirectResponseValues
public RedirectResponseValues(String redirectUrl, int statusCode)
-
RedirectResponseValues
public RedirectResponseValues(UrlBuilder.Route redirectUrl)
-
-
Method Detail
-
getRedirectUrl
public String getRedirectUrl()
- Specified by:
getRedirectUrlin interfaceResponseValues- Overrides:
getRedirectUrlin classBaseResponseValues
-
-