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:
-
FactoryBean
Proxy
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Class<?>
boolean
void
setHostname
(String hostname) Set the proxy host name.void
setPort
(int port) Set the proxy port.void
setType
(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:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
IllegalArgumentException
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<Proxy>
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<Proxy>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<Proxy>
-