Tabnine Logo
HeaderPatternRule
Code IndexAdd Tabnine to your IDE (free)

How to use
HeaderPatternRule
in
org.eclipse.jetty.rewrite.handler

Best Java code snippets using org.eclipse.jetty.rewrite.handler.HeaderPatternRule (Showing top 2 results out of 315)

origin: org.eclipse.jetty/jetty-rewrite

public HeaderPatternRule(@Name("pattern") String pattern, @Name("name") String name, @Name("value") String value)
{
  super(pattern);
  _handling = false;
  _terminating = false;
  _add=false;
  setName(name);
  setValue(value);
}
origin: com.yahoo.athenz/athenz-jetty-container

  HeaderPatternRule disableKeepAliveRule = new HeaderPatternRule();
  disableKeepAliveRule.setPattern("/*");
  disableKeepAliveRule.setName(HttpHeader.CONNECTION.asString());
  disableKeepAliveRule.setValue(HttpHeaderValue.CLOSE.asString());
  rewriteHandler.addRule(disableKeepAliveRule);
HeaderPatternRule hostNameRule = new HeaderPatternRule();
hostNameRule.setPattern("/*");
hostNameRule.setName(HttpHeader.HOST.asString());
hostNameRule.setValue(serverHostName);
rewriteHandler.addRule(hostNameRule);
org.eclipse.jetty.rewrite.handlerHeaderPatternRule

Javadoc

Sets the header in the response whenever the rule finds a match.

Most used methods

  • setName
    Sets the header name.
  • setValue
    Sets the header value. The value can be either a String or int value.
  • <init>
  • setPattern

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Kernel (java.awt.image)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now