| Modifier and Type | Method and Description |
|---|---|
void |
setProxyServer(String protocol,
String proxyServer,
int port,
String proxySet,
String nonProxyHosts)
Set the proxy server and port to use if there is one.
|
void |
useBasicAuthintication(String username,
String password,
HttpURLConnection httpCon)
Set the connection according the proxy Authorization
|
boolean |
validateProxyInitialized()
Check if the proxy settings of both protocols (http & https) were set.
|
boolean |
validateProxyInitialized(String protocol)
Check if the proxy settings of the specific protocol were set.
|
static final String KEY
void setProxyServer(String protocol, String proxyServer, int port, String proxySet, String nonProxyHosts) throws NullPointerException, IndexOutOfBoundsException
protocol - the protocol to set the proxy to (http, https...).proxyServer - the name or IP address of the proxy server to useport - the port to connect to the proxy server.NullPointerException - thrown if a null reference is sentIndexOutOfBoundsExceptionvoid useBasicAuthintication(String username, String password, HttpURLConnection httpCon)
boolean validateProxyInitialized(String protocol) throws Exception
protocol - the type of protocol to check (http / https).Exception - thrown if connection to the proxy could not be
established.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/connectivity/services/api
|
api
|
EP-PIN
|
Copyright 2021 SAP SE Complete Copyright Notice