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,
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
|
addRule, apply, getLegacyRule, getOriginalPathAttribute, getRules, isRewritePathInfo, isRewriteRequestURI, setLegacyRule, setOriginalPathAttribute, setRewritePathInfo, setRewriteRequestURI, setRules
isHandling, isTerminating, setHandling, setTerminating, toString
public 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, HttpServletRequest request, HttpServletResponse response) throws 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 rulesIOException
Copyright © 1995-2015 Webtide. All Rights Reserved.