Class ProxyProtocolConfig.BuilderBase.ProxyProtocolConfigImpl

java.lang.Object
io.helidon.webserver.ProxyProtocolConfig.BuilderBase.ProxyProtocolConfigImpl
All Implemented Interfaces:
Prototype.Api, ProxyProtocolConfig
Enclosing class:
ProxyProtocolConfig.BuilderBase<BUILDER extends ProxyProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends ProxyProtocolConfig>

protected static class ProxyProtocolConfig.BuilderBase.ProxyProtocolConfigImpl extends Object implements ProxyProtocolConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • ProxyProtocolConfigImpl

      protected ProxyProtocolConfigImpl(ProxyProtocolConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • enabled

      public boolean enabled()
      Description copied from interface: ProxyProtocolConfig
      Whether PROXY protocol support is enabled.
      Specified by:
      enabled in interface ProxyProtocolConfig
      Returns:
      whether PROXY protocol support is enabled, defaults to true
    • trustedProxies

      public Optional<AllowList> trustedProxies()
      Description copied from interface: ProxyProtocolConfig
      Trusted proxy allow list; required when PROXY protocol support is enabled.

      When PROXY protocol support is enabled, this list must be configured explicitly. Incoming PROXY protocol headers are accepted only from trusted peers.

      Specified by:
      trustedProxies in interface ProxyProtocolConfig
      Returns:
      trusted proxy allow list
    • toString

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object