Enum Class ServerProperties.ForwardHeadersStrategy

java.lang.Object
java.lang.Enum<ServerProperties.ForwardHeadersStrategy>
org.springframework.boot.web.server.autoconfigure.ServerProperties.ForwardHeadersStrategy
All Implemented Interfaces:
Serializable, Comparable<ServerProperties.ForwardHeadersStrategy>, Constable
Enclosing class:
ServerProperties

@Deprecated(since="4.2.0", forRemoval=true) public static enum ServerProperties.ForwardHeadersStrategy extends Enum<ServerProperties.ForwardHeadersStrategy>
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.2.0 for removal in 4.4.0 in favor of ForwardedHeaderStrategy
Strategies for supporting forward headers.
Since:
4.0.0
Author:
Dave Syer, Stephane Nicoll, Andy Wilkinson, Ivan Sopov, Marcos Barbero, Eddú Meléndez, Quinten De Swaef, Venil Noronha, Aurélien Leboulanger, Brian Clozel, Olivier Lamy, Chentao Qu, Artsiom Yudovin, Andrew McGhie, Rafiullah Hamedy, Dirk Deyne, HaiTao Zhang, Victor Mandujano, Chris Bono, Parviz Rozikov, Florian Storz, Michael Weidmann, Lasse Wulff
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use Spring's support for handling forwarded headers.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use the underlying container's native support for forwarded headers.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Ignore X-Forwarded-* headers.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the enum constant of this class with the specified name.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NATIVE

      public static final ServerProperties.ForwardHeadersStrategy NATIVE
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use the underlying container's native support for forwarded headers.
    • FRAMEWORK

      public static final ServerProperties.ForwardHeadersStrategy FRAMEWORK
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use Spring's support for handling forwarded headers.
    • NONE

      public static final ServerProperties.ForwardHeadersStrategy NONE
      Deprecated, for removal: This API element is subject to removal in a future version.
      Ignore X-Forwarded-* headers.
  • Method Details

    • values

      public static ServerProperties.ForwardHeadersStrategy[] values()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ServerProperties.ForwardHeadersStrategy valueOf(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null