类 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
另请参阅:
  • 字段详细资料

    • type

      private Proxy.Type type
    • hostname

      @Nullable private String hostname
    • port

      private int port
    • proxy

      @Nullable private Proxy proxy
  • 构造器详细资料

    • NetworkProxyFactoryBean

      public NetworkProxyFactoryBean()
  • 方法详细资料

    • setType

      public void setType(Proxy.Type type)
      Set the proxy type.

      Defaults to Proxy.Type.HTTP.

    • setHostname

      public void setHostname(String hostname)
      Set the proxy host name.
    • setPort

      public void setPort(int port)
      Set the proxy port.
    • afterPropertiesSet

      public void afterPropertiesSet() throws IllegalArgumentException
      指定者:
      afterPropertiesSet 在接口中 cn.taketoday.beans.factory.InitializingBean
      抛出:
      IllegalArgumentException
    • getObject

      @Nullable public Proxy getObject()
      指定者:
      getObject 在接口中 cn.taketoday.beans.factory.FactoryBean<Proxy>
    • getObjectType

      public Class<?> getObjectType()
      指定者:
      getObjectType 在接口中 cn.taketoday.beans.factory.FactoryBean<Proxy>
    • isSingleton

      public boolean isSingleton()
      指定者:
      isSingleton 在接口中 cn.taketoday.beans.factory.FactoryBean<Proxy>