Class VirtualHostRuleContainer
java.lang.Object
org.eclipse.jetty.rewrite.handler.Rule
org.eclipse.jetty.rewrite.handler.RuleContainer
org.eclipse.jetty.rewrite.handler.VirtualHostRuleContainer
Groups rules that apply only to one or more specific virtual hosts.
- 
Nested Class Summary
Nested classes/interfaces inherited from class Rule
Rule.Handler, Rule.HttpURIHandlerNested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainer, Dumpable.DumpAppendable - 
Field Summary
Fields inherited from class RuleContainer
ORIGINAL_QUERYSTRING_ATTRIBUTE_SUFFIX - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddVirtualHost(String virtualHost) Add the virtual host to add to the existing list of virtual hosts.matchAndApply(Rule.Handler input) Processes the rules.voidsetVirtualHosts(List<String> virtualHosts) Sets the virtual hosts to match for the rules within this container to be applied.Methods inherited from class RuleContainer
addRule, clear, dump, getOriginalPathAttribute, getRules, iterator, setOriginalPathAttribute, setRulesMethods inherited from class Rule
isTerminating, setTerminating, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator 
- 
Constructor Details
- 
VirtualHostRuleContainer
public VirtualHostRuleContainer() 
 - 
 - 
Method Details
- 
getVirtualHosts
 - 
setVirtualHosts
 - 
addVirtualHost
Add the virtual host to add to the existing list of virtual hosts.- Parameters:
 virtualHost- the virtual host to add to the existing list of virtual hosts
 - 
matchAndApply
Description copied from class:RuleContainerProcesses the rules.
- Overrides:
 matchAndApplyin classRuleContainer- Parameters:
 input- the inputRequestandHandler- Returns:
 - a 
RequestandHandler, possibly wrapped by rules to implement the rule's logic, ornullif no rule matched - Throws:
 IOException- if applying the rule fails
 
 -