Class Endpoint
- java.lang.Object
-
- com.yahoo.vespa.http.client.config.Endpoint
-
- All Implemented Interfaces:
Serializable
public final class Endpoint extends Object implements Serializable
Represents an endpoint, in most cases a JDisc container in a Vespa cluster configured withdocument-api
.- Author:
- Einar M R Rosenvinge
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Endpoint
create(String hostname)
Creates an Endpoint with the default port and without using SSLstatic Endpoint
create(String hostname, int port, boolean useSsl)
Creates an Endpoint with the given hostname, port and SSL setting.static Endpoint
create(URL url)
boolean
equals(Object o)
String
getHostname()
int
getPort()
int
hashCode()
boolean
isUseSsl()
String
toString()
-
-
-
Method Detail
-
getHostname
public String getHostname()
-
getPort
public int getPort()
-
isUseSsl
public boolean isUseSsl()
-
create
public static Endpoint create(String hostname)
Creates an Endpoint with the default port and without using SSL
-
create
public static Endpoint create(String hostname, int port, boolean useSsl)
Creates an Endpoint with the given hostname, port and SSL setting.
-
-