Class ConfiguredHeadersCustomizer

java.lang.Object
io.deephaven.server.jetty11.ConfiguredHeadersCustomizer
All Implemented Interfaces:
org.eclipse.jetty.server.HttpConfiguration.Customizer

public class ConfiguredHeadersCustomizer extends Object implements org.eclipse.jetty.server.HttpConfiguration.Customizer
Applies configured http headers to every outgoing response.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of the customizer, applying the given headers to every outgoing response.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(org.eclipse.jetty.server.Connector connector, org.eclipse.jetty.server.HttpConfiguration channelConfig, org.eclipse.jetty.server.Request request)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.server.HttpConfiguration.Customizer

    customize
  • Constructor Details

    • ConfiguredHeadersCustomizer

      public ConfiguredHeadersCustomizer(Map<String,String> configuredHeaders)
      Creates a new instance of the customizer, applying the given headers to every outgoing response.
      Parameters:
      configuredHeaders - the headers to add to every response
  • Method Details

    • customize

      public void customize(org.eclipse.jetty.server.Connector connector, org.eclipse.jetty.server.HttpConfiguration channelConfig, org.eclipse.jetty.server.Request request)