Class RedirectionRule


  • public class RedirectionRule
    extends HttpProxyRule
    Proxy task that implements a redirection rule.
    Author:
    javaito
    • Constructor Summary

      Constructors 
      Constructor Description
      RedirectionRule​(java.lang.String contextRegex, java.net.URL url)  
    • Method Summary

      Modifier and Type Method Description
      boolean evaluate​(HttpRequest request)
      Checks whether the request meets the conditions of the rule.
      ProxyTask getTask()
      Return the proxy task of the rule.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RedirectionRule

        public RedirectionRule​(java.lang.String contextRegex,
                               java.net.URL url)
    • Method Detail

      • evaluate

        public boolean evaluate​(HttpRequest request)
        Description copied from class: HttpProxyRule
        Checks whether the request meets the conditions of the rule.
        Specified by:
        evaluate in class HttpProxyRule
        Parameters:
        request - Incoming request.
        Returns:
        True if the request meets the conditions.