cc-nodejs-sdk
Version:
Node JS SDK for CommandCenter
64 lines (51 loc) • 1.37 kB
JavaScript
class RequestProxy {
_host;
_port;
_user;
_password;
/**
* Creates a RequestProxy class instance with the specified parameters.
* @param {String} host A String containing the hostname or address of the proxy server
* @param {Number} port An Integer containing The port number of the proxy server
* @param {String} user A String containing the user name of the proxy server
* @param {String} password A String containing the password of the proxy server
*/
constructor(host, port, user = null, password = null) {
this._host = host;
this._port = port;
this._user = user;
this._password = password;
}
/**
* This is a getter method to get Proxy host.
* @returns {String}
*/
getHost() {
return this._host;
}
/**
* This is a getter method to get the Proxy port.
* @returns {Number}
*/
getPort() {
return this._port;
}
/**
* This is a getter method to get the Proxy user name.
* @returns {String}
*/
getUser() {
return this._user;
}
/**
* This is a getter method to get the Proxy password.
* @returns {String}
*/
getPassword() {
return this._password;
}
}
module.exports = {
MasterModel: RequestProxy,
RequestProxy: RequestProxy
}