Class HttpProxyRule

  • Direct Known Subclasses:
    RedirectionRule

    public abstract class HttpProxyRule
    extends java.lang.Object
    This class analyze the requests and return a set of redirection task to be executed for the http proxy.
    Author:
    javaito
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpProxyRule()  
    • Method Summary

      Modifier and Type Method Description
      abstract boolean evaluate​(HttpRequest request)
      Checks whether the request meets the conditions of the rule.
      abstract 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

      • HttpProxyRule

        public HttpProxyRule()
    • Method Detail

      • evaluate

        public abstract boolean evaluate​(HttpRequest request)
        Checks whether the request meets the conditions of the rule.
        Parameters:
        request - Incoming request.
        Returns:
        True if the request meets the conditions.
      • getTask

        public abstract ProxyTask getTask()
        Return the proxy task of the rule.
        Returns:
        Proxy task.