Class WebServerNamespace

java.lang.Object
org.springframework.boot.actuate.endpoint.web.WebServerNamespace

public final class WebServerNamespace extends Object
A web server namespace used for disambiguation when multiple web servers are running in the same application (for example a management context running on a different port).
Since:
2.6.0
  • Field Details

  • Method Details

    • getValue

      public String getValue()
      Return the value of the namespace.
      Returns:
      the value
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • from

      public static WebServerNamespace from(@Nullable org.springframework.context.ApplicationContext context)
      Factory method to create a new WebServerNamespace from a value. If the context is null or not a web server context then SERVER is returned.
      Parameters:
      context - the application context
      Returns:
      the web server namespace
      Since:
      4.0.1
    • from

      public static WebServerNamespace from(@Nullable String value)
      Factory method to create a new WebServerNamespace from a value. If the value is empty or null then SERVER is returned.
      Parameters:
      value - the namespace value or null
      Returns:
      the web server namespace