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)
    • getForcedValue

      public String getForcedValue()
    • setForcedValue

      public void setForcedValue(String forcedValue)
    • matchAndApply

      public String matchAndApply(String target, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws IOException
      Description copied from class: Rule
      This method calls tests the rule against the request/response pair and if the Rule applies, then the rule's action is triggered.
      Specified by:
      matchAndApply in class Rule
      Parameters:
      target - The target of the request
      httpServletRequest - the request
      httpServletResponse - the response
      Returns:
      The new target if the rule has matched, else null
      Throws:
      IOException - if unable to match the rule