public class ProxyFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<java.net.Proxy>, org.springframework.beans.factory.InitializingBean
FactoryBean
that creates a java.net.Proxy
.FactoryBean
,
Proxy
Constructor and Description |
---|
ProxyFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
java.net.Proxy |
getObject() |
java.lang.Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setHostname(java.lang.String hostname)
Set the proxy host name.
|
void |
setPort(int port)
Set the proxy port.
|
void |
setType(java.net.Proxy.Type type)
Set the proxy type.
|
public void setType(java.net.Proxy.Type type)
Defaults to Proxy.Type.HTTP
.
public void setHostname(java.lang.String hostname)
public void setPort(int port)
public void afterPropertiesSet() throws java.lang.IllegalArgumentException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.IllegalArgumentException
@Nullable public java.net.Proxy getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<java.net.Proxy>
public java.lang.Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<java.net.Proxy>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<java.net.Proxy>