com.sapportals.portal.ivs.proxy
Interface IProxyServerService
- All Superinterfaces:
- IService
public interface IProxyServerService
- extends IService
KEY
static final String KEY
- See Also:
- Constant Field Values
setProxyServer
void setProxyServer(String protocol,
String proxyServer,
int port,
String proxySet,
String nonProxyHosts)
throws NullPointerException,
IndexOutOfBoundsException
- Set the proxy server and port to use if there is one.
- Parameters:
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.
- Throws:
NullPointerException - thrown if a null reference is sent
IndexOutOfBoundsException
useBasicAuthintication
void useBasicAuthintication(String username,
String password,
HttpURLConnection httpCon)
- Set the connection according the proxy Authorization
validateProxyInitialized
boolean validateProxyInitialized(String protocol)
throws Exception
- Check if the proxy settings of the specific protocol were set.
- Parameters:
protocol - the type of protocol to check (http / https).
- Returns:
- true if successful false if no settings were provided
- Throws:
Exception - thrown if connection to the proxy could not be
established.
validateProxyInitialized
boolean validateProxyInitialized()
throws Exception
- Check if the proxy settings of both protocols (http & https) were set.
- Returns:
- true if successful false if no settings were provided
- Throws:
Exception - thrown if connection to the proxy could not be
established.
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/connectivity/services/api
|
api
|
EP-PIN
|
Copyright 2011 SAP AG Complete Copyright Notice