static public method O2GTransport.setProxy

Brief

Configures the proxy server settings.

Declaration
Java
static void  setProxy (String host, int port, String user, String password)

Parameters
host

The host name or IP address of the proxy.

port

The proxy port.

user

If the proxy requires authorization, specify the user name in this parameter. If the proxy does not require authorization, please specify null in this parameter.

password

If the proxy requires authorization, specify the password in this parameter. If the proxy does not require authorization, please specify null in this parameter.

Details

The specified proxy settings affect all connections which will be established after calling this method.

Declared in O2GTransport

back