Class 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 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.