Class Origin.Address

java.lang.Object
org.eclipse.jetty.client.Origin.Address
Enclosing class:
Origin

public static class Origin.Address extends Object
  • Constructor Details

    • Address

      public Address(String host, int port)
  • Method Details

    • getHost

      public String getHost()
      Returns:
      the host name or IP address
    • getPort

      public int getPort()
      Returns:
      the port number
    • equals

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

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

      public String asString()
      Returns:
      a string representation of this address as host:port
    • getSocketAddress

      public SocketAddress getSocketAddress()
      Returns:
      the socket address for this host and port
    • toString

      public String toString()
      Overrides:
      toString in class Object