org.mortbay.jetty.handler.rewrite
public class VirtualHostRuleContainer extends RuleContainer
_handled, _legacy, _originalPathAttribute, _rewritePathInfo, _rewriteRequestURI, _rules
_handling, _terminating
Constructor and Description |
---|
VirtualHostRuleContainer() |
Modifier and Type | Method and Description |
---|---|
void |
addVirtualHost(java.lang.String virtualHost) |
java.lang.String[] |
getVirtualHosts()
Get the virtual hosts that the rules within this container will apply to
|
java.lang.String |
matchAndApply(java.lang.String target,
HttpServletRequest request,
HttpServletResponse response)
Process the contained rules if the request is applicable to the virtual hosts of this rule
|
void |
setVirtualHosts(java.lang.String[] virtualHosts)
Set the virtual hosts that the rules within this container will apply to
|
addRewriteRule, addRule, apply, getOriginalPathAttribute, getRewrite, getRules, isHandled, isRewritePathInfo, isRewriteRequestURI, setHandled, setLegacyRule, setOriginalPathAttribute, setRewrite, setRewritePathInfo, setRewriteRequestURI, setRules
isHandling, isTerminating, setHandling, setTerminating, toString
public void setVirtualHosts(java.lang.String[] virtualHosts)
virtualHosts
- Array of virtual hosts that the rules within this container are applied to.
A null hostname or null/empty array means any hostname is acceptable.public java.lang.String[] getVirtualHosts()
virtualHosts
- Array of virtual hosts that the rules within this container are applied to.
A null hostname or null/empty array means any hostname is acceptable.public void addVirtualHost(java.lang.String virtualHost)
virtualHost
- add a virtual host to the existing list of virtual hosts
A null hostname means any hostname is acceptablepublic java.lang.String matchAndApply(java.lang.String target, HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
matchAndApply
in class RuleContainer
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 rulesjava.io.IOException
- TODOCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.