public class ProxyFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<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() |
Proxy |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setHostname(String hostname)
Sets the proxy host name.
|
void |
setPort(int port)
Sets the proxy port.
|
void |
setType(Proxy.Type type)
Sets the proxy type.
|
public void setType(Proxy.Type type)
Proxy.Type.HTTP.public void setHostname(String hostname)
public void setPort(int port)
public void afterPropertiesSet()
throws IllegalArgumentException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanIllegalArgumentExceptionpublic Proxy getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<Proxy>public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<Proxy>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<Proxy>