GoogleProxy

public final class GoogleProxy extends Object

Encapsulates an @{link Proxy} object and the token for proxy authentication.

Nested Class Summary

class GoogleProxy.Builder Builder for GoogleProxy

Constant Summary

String TRANSPORT_PROXY_HOSTNAME_KEY
String TRANSPORT_PROXY_PASSWORD_KEY
String TRANSPORT_PROXY_PORT_KEY
String TRANSPORT_PROXY_USERNAME_KEY

Public Method Summary

boolean
equals(Object other)
static GoogleProxy
fromConfiguration()
Creates an GoogleProxy instance based on proxy configuration.
HttpRequestInitializer
getHttpRequestInitializer()
Gets an HttpRequestInitializer that sets the http header for proxy authorization.
HttpTransport
getHttpTransport()
Gets an HttpTransport that contains the proxy configuration.
Proxy
int

Inherited Method Summary

Constants

public static final String TRANSPORT_PROXY_HOSTNAME_KEY

Constant Value: "transport.proxy.hostname"

public static final String TRANSPORT_PROXY_PASSWORD_KEY

Constant Value: "transport.proxy.password"

public static final String TRANSPORT_PROXY_PORT_KEY

Constant Value: "transport.proxy.port"

public static final String TRANSPORT_PROXY_USERNAME_KEY

Constant Value: "transport.proxy.username"

Public Methods

public boolean equals (Object other)

Parameters
other

public static GoogleProxy fromConfiguration ()

Creates an GoogleProxy instance based on proxy configuration.

public HttpRequestInitializer getHttpRequestInitializer ()

Gets an HttpRequestInitializer that sets the http header for proxy authorization.

public HttpTransport getHttpTransport ()

Gets an HttpTransport that contains the proxy configuration.

Throws
IOException
GeneralSecurityException

public Proxy getProxy ()

public int hashCode ()

Skicka feedback om ...