Class DirectRedirectResponseValues
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.BaseResponseValues
-
- edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.RedirectResponseValues
-
- edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.DirectRedirectResponseValues
-
- All Implemented Interfaces:
ResponseValues
public class DirectRedirectResponseValues extends RedirectResponseValues
This could be called the "Redirect to where I say, damm it" ResponseValue. It redirects to the URL specified. It does not attempt to add a context node. This is useful when you want to redirect to a URL created by the UrlBuilder which uses statics to sneak a context into the URL strings it creates.
-
-
Constructor Summary
Constructors Constructor Description DirectRedirectResponseValues(String url)This will redirect to the url.DirectRedirectResponseValues(String url, int statusCode)This will redirect to the url.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetRedirectUrl(String url)Does not add context.-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.RedirectResponseValues
getRedirectUrl
-
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
-
DirectRedirectResponseValues
public DirectRedirectResponseValues(String url, int statusCode)
This will redirect to the url. It will not add the context to the url.
-
DirectRedirectResponseValues
public DirectRedirectResponseValues(String url)
This will redirect to the url. It will not add the context to the url.
-
-
Method Detail
-
getRedirectUrl
protected String getRedirectUrl(String url)
Does not add context.- Overrides:
getRedirectUrlin classRedirectResponseValues
-
-