Class RedirectPatternRule

    • Constructor Detail

      • RedirectPatternRule

        public RedirectPatternRule()
      • RedirectPatternRule

        public RedirectPatternRule​(@Name("pattern")
                                   String pattern,
                                   @Name("location")
                                   String location)
    • Method Detail

      • setLocation

        public void setLocation​(String value)
        Sets the redirect location.
        Parameters:
        value - the location to redirect.
      • setStatusCode

        public void setStatusCode​(int statusCode)
        Sets the redirect status code.
        Parameters:
        statusCode - the 3xx redirect status code
      • toString

        public String toString()
        Returns the redirect status code and location.
        Overrides:
        toString in class PatternRule