Class ProxyFactoryBean
java.lang.Object
org.springframework.http.client.support.ProxyFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<Proxy>,org.springframework.beans.factory.InitializingBean
public class ProxyFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<Proxy>, org.springframework.beans.factory.InitializingBean
FactoryBean that creates a java.net.Proxy.- Since:
- 3.0.4
- Author:
- Arjen Poutsma
- See Also:
-
FactoryBeanProxy
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClass<?>booleanvoidsetHostname(String hostname) Set the proxy host name.voidsetPort(int port) Set the proxy port.voidsetType(Proxy.Type type) Set the proxy type.
-
Constructor Details
-
ProxyFactoryBean
public ProxyFactoryBean()
-
-
Method Details
-
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
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
IllegalArgumentException
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<Proxy>
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<Proxy>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<Proxy>
-