com.atlassian.httpclient.api.factory
Class Host

java.lang.Object
  extended by com.atlassian.httpclient.api.factory.Host

public class Host
extends Object

Represents a host (host name and port).


Constructor Summary
Host(String host, int port)
           
 
Method Summary
 boolean equals(Object o)
           
 String getHost()
           
 int getPort()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Host

public Host(@Nonnull
            String host,
            int port)
Method Detail

getHost

public String getHost()

getPort

public int getPort()

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


Copyright © 2012–2015 Atlassian. All rights reserved.