Class RoutingRule

  • All Implemented Interfaces:
    Serializable

    public class RoutingRule
    extends Object
    implements Serializable
    Container for one routing rule that identifies a condition and a redirect that applies when the condition is met.
    See Also:
    Serialized Form
    • Constructor Detail

      • RoutingRule

        public RoutingRule()
    • Method Detail

      • setCondition

        public void setCondition​(RoutingRuleCondition condition)
        Set the condition that must be met for the specified redirect to apply.
      • getCondition

        public RoutingRuleCondition getCondition()
        Return the condition that must be met for the specified redirect to apply.
      • withCondition

        public RoutingRule withCondition​(RoutingRuleCondition condition)
        Set the condition that must be met for the specified redirect to apply and returns a reference to this object(RoutingRule) for method chaining.
      • setRedirect

        public void setRedirect​(RedirectRule redirect)
        Set the redirect information.
      • getRedirect

        public RedirectRule getRedirect()
        Return the redirect information.
      • withRedirect

        public RoutingRule withRedirect​(RedirectRule redirect)
        Set the redirect information and returns a reference to this object(RoutingRule) for method chaining.