public class NodeAddress extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_PROTOCOL_PREFIX
HTTP protocol URI prefix
|
static String |
HTTPS_PROTOCOL_PREFIX
HTTPS protocol URI prefix
|
| Constructor and Description |
|---|
NodeAddress() |
NodeAddress(String host) |
NodeAddress(String serverName,
String host,
int port,
int secure_port) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
int |
getHttpPort() |
static String |
getHttpProtocolPrefix(boolean secure) |
int |
getHttpsPort() |
String |
getServerName() |
URI |
getURI() |
URI |
getURI(boolean secure) |
void |
setHost(String host) |
void |
setHttpPort(int httpPort) |
void |
setHttpsPort(int httpsPort) |
void |
setServerName(String serverName) |
public static final String HTTP_PROTOCOL_PREFIX
public static final String HTTPS_PROTOCOL_PREFIX
public NodeAddress()
public NodeAddress(String host)
public String getServerName()
public void setServerName(String serverName)
serverName - name of the serverpublic String getHost()
public void setHost(String host)
host - the hostpublic int getHttpPort()
public void setHttpPort(int httpPort)
httpPort - the http portpublic int getHttpsPort()
public void setHttpsPort(int httpsPort)
httpsPort - the port used for httpspublic URI getURI()
public URI getURI(boolean secure)
public static String getHttpProtocolPrefix(boolean secure)
Copyright © 2019. All rights reserved.