Class ProxiedAddresses

java.lang.Object
com.linecorp.armeria.server.ProxiedAddresses

public final class ProxiedAddresses
extends Object
An interface to provide source and destination addresses delivered from a proxy server.
  • Method Details

    • of

      public static ProxiedAddresses of​(InetSocketAddress sourceAddress)
      Creates a new instance with the specified sourceAddress. Note that port 0 means that the port number is unknown.
    • of

      public static ProxiedAddresses of​(InetSocketAddress sourceAddress, InetSocketAddress destinationAddress)
      Creates a new instance with the specified sourceAddress and destinationAddress. Note that port 0 means that the port number is unknown.
    • of

      public static ProxiedAddresses of​(InetSocketAddress sourceAddress, Iterable<? extends InetSocketAddress> destinationAddresses)
      Creates a new instance with the specified sourceAddress and destinationAddresses. Note that port 0 means that the port number is unknown.
    • sourceAddress

      public InetSocketAddress sourceAddress()
      Returns the source address of the proxied request. Note that port 0 means that the port number is unknown.
    • destinationAddresses

      public List<InetSocketAddress> destinationAddresses()
      Returns the destination addresses of the proxied request. Note that port 0 means that the port number is unknown.
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object