Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Proxy.Type

public static final enum Proxy.Type
extends Enum<Proxy.Type>

java.lang.Object
   ↳ java.lang.Enum<java.net.Proxy.Type>
     ↳ java.net.Proxy.Type


Enum class for the proxy type. Possible options are DIRECT, HTTP and SOCKS.

Summary

Enum values

Proxy.Type  DIRECT

Direct connection. 

Proxy.Type  HTTP

HTTP type proxy. 

Proxy.Type  SOCKS

SOCKS type proxy. 

Public methods

static Proxy.Type valueOf(String name)
final static Type[] values()

Inherited methods

From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum values

DIRECT

Added in API level 1
Proxy.Type DIRECT

Direct connection. Connect without any proxy.

HTTP

Added in API level 1
Proxy.Type HTTP

HTTP type proxy. It's often used by protocol handlers such as HTTP, HTTPS and FTP.

SOCKS

Added in API level 1
Proxy.Type SOCKS

SOCKS type proxy.

Public methods

valueOf

Added in API level 1
Proxy.Type valueOf (String name)

Parameters
name String
Returns
Proxy.Type

values

Added in API level 1
Type[] values ()

Returns
Type[]
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.