目录

Proxy

Class Info

public class Proxy

请求的代理参数。

Public Constructor Summary

Constructor Name

Proxy()

默认的构造方法。

Public Method Summary

Qualifier and Type

Method Name and Description

void

setType(Type type)

设置代理类型。

Type

getType()

获取代理类型。

void

setPort(String port)

设置代理端口号。

String

getPort()

获取代理端口号。

void

setHost(String host)

设置代理IP或者域名。

String

getHost()

获取代理IP或者域名。

void

setUser(String user)

设置代理用户名。

String

getUser()

获取代理用户名。

void

setPasswd(String passwd)

设置代理密码。

String

getPasswd()

获取代理密码。

Inherited Method Summary

Qualifier and Type

Method Name and Description

String

toString()

重写toString方法。

Public Constructors

[h2]Proxy

Constructor

public Proxy()

默认的构造方法。

Public Methods

[h2]setType

Method

public void setType(Type type)

设置代理类型。

Parameters

Name

Description

type

代理类型。

[h2]getType

Method

public Type getType()

获取代理类型。

Returns

Type

Description

Type

返回代理类型。返回类型范围:UNKNOWN、HTTP、SOCKS。

[h2]setPort

Method

public void setPort(String port)

设置代理端口号。

Parameters

Name

Description

port

代理端口号。

[h2]getPort

Method

public String getPort()

获取代理端口号。

Returns

Type

Description

String

返回代理端口号。

[h2]setHost

Method

public void setHost(String host)

设置代理IP或者域名。

Parameters

Name

Description

host

代理IP或者域名。

[h2]getHost

Method

public String getHost()

获取代理IP或者域名。

Returns

Type

Description

String

返回代理IP或者域名。

[h2]setUser

Method

public void setUser(String user)

设置代理用户名。

Parameters

Name

Description

user

代理用户名。

[h2]getUser

Method

public String getUser()

获取代理用户名。

Returns

Type

Description

String

返回代理用户名。

[h2]setPasswd

Method

public void setPasswd(String passwd)

设置代理密码。

Parameters

Name

Description

passwd

代理密码。

[h2]getPasswd

Method

public String getPasswd()

获取代理密码。

Returns

Type

Description

String

返回代理密码。