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(String virtualHost) |
String[] |
getVirtualHosts()
Get the virtual hosts that the rules within this container will apply to
|
String |
matchAndApply(String target,
HttpServletRequest request,
HttpServletResponse response)
Process the contained rules if the request is applicable to the virtual hosts of this rule
|
void |
setVirtualHosts(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, setRulesisHandling, isTerminating, setHandling, setTerminating, toStringpublic void setVirtualHosts(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 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(String virtualHost)
virtualHost - add a virtual host to the existing list of virtual hosts
A null hostname means any hostname is acceptablepublic String matchAndApply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException
matchAndApply in class RuleContainertarget - 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 rulesIOException - TODOCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.