Package org.hcjf.io.net.http.proxy
Class RedirectionRule
- java.lang.Object
-
- org.hcjf.io.net.http.proxy.HttpProxyRule
-
- org.hcjf.io.net.http.proxy.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 booleanevaluate(HttpRequest request)Checks whether the request meets the conditions of the rule.ProxyTaskgetTask()Return the proxy task of the rule.
-
-
-
Method Detail
-
evaluate
public boolean evaluate(HttpRequest request)
Description copied from class:HttpProxyRuleChecks whether the request meets the conditions of the rule.- Specified by:
evaluatein classHttpProxyRule- Parameters:
request- Incoming request.- Returns:
- True if the request meets the conditions.
-
getTask
public ProxyTask getTask()
Description copied from class:HttpProxyRuleReturn the proxy task of the rule.- Specified by:
getTaskin classHttpProxyRule- Returns:
- Proxy task.
-
-