类 NetworkProxyFactoryBean
java.lang.Object
cn.taketoday.http.client.support.NetworkProxyFactoryBean
- 所有已实现的接口:
cn.taketoday.beans.factory.FactoryBean<Proxy>,cn.taketoday.beans.factory.InitializingBean
public class NetworkProxyFactoryBean
extends Object
implements cn.taketoday.beans.factory.FactoryBean<Proxy>, cn.taketoday.beans.factory.InitializingBean
FactoryBean that creates a java.net.Proxy.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma
- 另请参阅:
-
FactoryBeanProxy
-
字段概要
字段从接口继承的字段 cn.taketoday.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidClass<?>booleanvoidsetHostname(String hostname) Set the proxy host name.voidsetPort(int port) Set the proxy port.voidsetType(Proxy.Type type) Set the proxy type.
-
字段详细资料
-
type
-
hostname
-
port
private int port -
proxy
-
-
构造器详细资料
-
NetworkProxyFactoryBean
public NetworkProxyFactoryBean()
-
-
方法详细资料
-
setType
Set the proxy type.Defaults to
Proxy.Type.HTTP. -
setHostname
Set the proxy host name. -
setPort
public void setPort(int port) Set the proxy port. -
afterPropertiesSet
- 指定者:
afterPropertiesSet在接口中cn.taketoday.beans.factory.InitializingBean- 抛出:
IllegalArgumentException
-
getObject
- 指定者:
getObject在接口中cn.taketoday.beans.factory.FactoryBean<Proxy>
-
getObjectType
- 指定者:
getObjectType在接口中cn.taketoday.beans.factory.FactoryBean<Proxy>
-
isSingleton
public boolean isSingleton()- 指定者:
isSingleton在接口中cn.taketoday.beans.factory.FactoryBean<Proxy>
-