Class CookiePatternRule


  • public class CookiePatternRule
    extends PatternRule
    Sets the cookie in the response whenever the rule finds a match.
    See Also:
    Cookie
    • Constructor Detail

      • CookiePatternRule

        public CookiePatternRule()
      • CookiePatternRule

        public CookiePatternRule​(@Name("pattern")
                                 String pattern,
                                 @Name("name")
                                 String name,
                                 @Name("value")
                                 String value)
    • Method Detail

      • setName

        public void setName​(String name)
        Assigns the cookie name.
        Parameters:
        name - a String specifying the name of the cookie.
      • setValue

        public void setValue​(String value)
        Assigns the cookie value.
        Parameters:
        value - a String specifying the value of the cookie
        See Also:
        Cookie.setValue(String)