public class VirtualHostRuleContainer extends RuleContainer
Rule.ApplyURI_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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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
|
addRule, apply, getLegacyRule, getOriginalPathAttribute, getRules, isRewritePathInfo, isRewriteRequestURI, setLegacyRule, setOriginalPathAttribute, 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()
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, javax.servlet.http.HttpServletRequest request, javax.servlet.http.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 © 1995-2015 Mort Bay Consulting. All Rights Reserved.