Class ForceRequestHeaderValueRule

java.lang.Object
org.eclipse.jetty.rewrite.handler.Rule
org.eclipse.jetty.rewrite.handler.ForceRequestHeaderValueRule

public class ForceRequestHeaderValueRule extends Rule
  • Constructor Details

    • ForceRequestHeaderValueRule

      public ForceRequestHeaderValueRule()
  • Method Details

    • getHeaderName

      public String getHeaderName()
    • setHeaderName

      public void setHeaderName(String headerName)
    • getHeaderValue

      public String getHeaderValue()
    • setHeaderValue

      public void setHeaderValue(String headerValue)
    • matchAndApply

      public Rule.Handler matchAndApply(Rule.Handler input) throws IOException
      Description copied from class: Rule

      Tests whether the given input Handler (which wraps a Request) matches the rule, and if so returns an output Handler that applies the rule logic.

      If the input does not match, null is returned.

      Specified by:
      matchAndApply in class Rule
      Parameters:
      input - the input Handler that wraps the Request
      Returns:
      an output Handler that wraps the input Handler, or null if the rule does not match
      Throws:
      IOException - if applying the rule fails