public class VirtualHostRuleContainer extends RuleContainer
Rule.ApplyURI_handling, _terminating_originalPathAttribute, _originalQueryStringAttribute, _rewritePathInfo, _rewriteRequestURI, _rules, ORIGINAL_QUERYSTRING_ATTRIBUTE_SUFFIX| Constructor | Description |
|---|---|
VirtualHostRuleContainer() |
| Modifier and Type | Method | 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,
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(java.lang.String[] virtualHosts) |
Set the virtual hosts that the rules within this container will apply to
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisHandling, isTerminating, setHandling, setTerminating, toStringaddRule, apply, getOriginalPathAttribute, getRules, isRewritePathInfo, isRewriteRequestURI, setOriginalPathAttribute, setRewritePathInfo, setRewriteRequestURI, setRulespublic 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()
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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.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 rulesjava.io.IOException - if unable to match the ruleCopyright © 1995–2018 Webtide. All rights reserved.