public class ClientDestination extends Object
| Constructor and Description |
|---|
ClientDestination()
Default constructor
|
ClientDestination(ClientDestination other)
Copy constructor
|
ClientDestination(io.vertx.core.json.JsonObject json)
Create an settings from JSON
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDomain() |
String |
getHostHeader() |
int |
getPort() |
String |
getScheme() |
ClientDestination |
setDomain(String domain)
Set the domain of the http repository
|
ClientDestination |
setHostHeader(String hostHeader)
Set the host header override to be used with a communication to the repository.
|
ClientDestination |
setPort(int port)
Set the HTTP port of the http repository
|
ClientDestination |
setScheme(String scheme)
Set the URL scheme used to communicate with the repository
|
io.vertx.core.json.JsonObject |
toJson()
Convert to JSON
|
public ClientDestination()
public ClientDestination(ClientDestination other)
other - the instance to copypublic ClientDestination(io.vertx.core.json.JsonObject json)
json - the JSONpublic io.vertx.core.json.JsonObject toJson()
public String getScheme()
public ClientDestination setScheme(String scheme)
scheme - an URL scheme (http, https)public String getDomain()
public ClientDestination setDomain(String domain)
domain - a domain of the remote location of the repositorypublic int getPort()
public ClientDestination setPort(int port)
port - a HTTP port of the remote location of the repositorypublic String getHostHeader()
public ClientDestination setHostHeader(String hostHeader)
hostHeader - a host header valueCopyright © 2016–2020. All rights reserved.