Package org.hcjf.io.net.http.proxy
Class HttpProxyRule
- java.lang.Object
-
- org.hcjf.io.net.http.proxy.HttpProxyRule
-
- Direct Known Subclasses:
RedirectionRule
public abstract class HttpProxyRule extends java.lang.ObjectThis 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 booleanevaluate(HttpRequest request)Checks whether the request meets the conditions of the rule.abstract ProxyTaskgetTask()Return the proxy task of the rule.
-
-
-
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.
-
-