org.mortbay.jetty.handler.rewrite
Class LowThreadsRuleContainer
java.lang.Object
org.mortbay.jetty.handler.rewrite.Rule
org.mortbay.jetty.handler.rewrite.RuleContainer
org.mortbay.jetty.handler.rewrite.LowThreadsRuleContainer
public class LowThreadsRuleContainer
- extends RuleContainer
RuleContainer for when the ThreadPool is low on threads
- Author:
- joakime
| Methods inherited from class org.mortbay.jetty.handler.rewrite.RuleContainer |
addRewriteRule, addRule, apply, getOriginalPathAttribute, getRewrite, getRules, isHandled, isRewritePathInfo, isRewriteRequestURI, setHandled, setLegacyRule, setOriginalPathAttribute, setRewrite, setRewritePathInfo, setRewriteRequestURI, setRules |
LowThreadsRuleContainer
public LowThreadsRuleContainer()
getServer
public org.mortbay.jetty.Server getServer()
setServer
public void setServer(org.mortbay.jetty.Server server)
getThreadPool
public org.mortbay.thread.ThreadPool getThreadPool()
setThreadPool
public void setThreadPool(org.mortbay.thread.ThreadPool pool)
matchAndApply
public String matchAndApply(String target,
HttpServletRequest request,
HttpServletResponse response)
throws IOException
- Process the contained rules if the threadpool is low on threads
- Overrides:
matchAndApply in class RuleContainer
- Parameters:
target - target field to pass on to the contained rulesrequest - request object to pass on to the contained rulesresponse - response object to pass on to the contained rules
- Returns:
- The new target if the rule has matched, else null
- Throws:
IOException - TODO
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.