public class ProxyConfig
extends java.lang.Object
| Constructor and Description |
|---|
ProxyConfig(java.lang.String host,
int port)
Constructs a ProxyConfig object with the specified host and port.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHost()
Gets the hostname or IP address of the proxy server.
|
int |
getPort()
Gets the port number of the proxy server.
|
void |
setHost(java.lang.String host)
Sets the hostname or IP address of the proxy server.
|
void |
setPort(int port)
Sets the port number of the proxy server.
|
void |
validate()
Validates the proxy configuration.
|
public ProxyConfig(java.lang.String host,
int port)
host - The hostname or IP address of the proxy server.port - The port number of the proxy server.public java.lang.String getHost()
public void setHost(java.lang.String host)
host - The hostname or IP address of the proxy server.public int getPort()
public void setPort(int port)
port - The port number of the proxy server.public void validate()
PineconeConfigurationException - If the proxy configuration is invalid.