Class RewriteEncodingRule
java.lang.Object
org.eclipse.jetty.rewrite.handler.Rule
org.eclipse.jetty.rewrite.handler.RewriteEncodingRule
Rule that can rewrite a request based on the 
Accept-Encoding header.- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final recordprotected classprotected classNested classes/interfaces inherited from class Rule
Rule.Handler, Rule.HttpURIHandler - 
Constructor Summary
ConstructorsConstructorDescriptionRewriteEncodingRule(BiFunction<Context, String, Resource> getResource) RewriteEncodingRule(BiFunction<Context, String, Resource> getResource, String... encodingsAndExtensions)  - 
Method Summary
Modifier and TypeMethodDescriptionstatic ResourcegetResource(Context context, String pathInContext) matchAndApply(Rule.Handler input) Tests whether the given inputHandler(which wraps aRequest) matches the rule, and if so returns an outputHandlerthat applies the rule logic.protected Rule.HandlernewEncodingHandler(Rule.Handler input, String languagePathInContext, RewriteEncodingRule.Encoding encoding) toString()Methods inherited from class Rule
isTerminating, setTerminating 
- 
Constructor Details
- 
RewriteEncodingRule
public RewriteEncodingRule() - 
RewriteEncodingRule
 - 
RewriteEncodingRule
public RewriteEncodingRule(BiFunction<Context, String, Resource> getResource, String... encodingsAndExtensions)  
 - 
 - 
Method Details
- 
getResource
 - 
matchAndApply
Description copied from class:RuleTests whether the given input
Handler(which wraps aRequest) matches the rule, and if so returns an outputHandlerthat applies the rule logic.If the input does not match,
nullis returned.- Specified by:
 matchAndApplyin classRule- Parameters:
 input- the inputHandlerthat wraps theRequest- Returns:
 - an output 
Handlerthat wraps the inputHandler, ornullif the rule does not match - Throws:
 IOException- if applying the rule fails
 - 
toString
 - 
newEncodingHandler
protected Rule.Handler newEncodingHandler(Rule.Handler input, String languagePathInContext, RewriteEncodingRule.Encoding encoding)  
 -