private static HTTPClientPolicy createSystemProxyConfiguration() { // Retrieve system properties (if any) HTTPClientPolicy systemProxyConfiguration = null; String proxyHost = SystemPropertyAction.getPropertyOrNull(HTTP_PROXY_HOST); if (StringUtils.isEmpty(proxyHost)) { proxyHost = null; } if (proxyHost != null) { // System is configured with a proxy, use it systemProxyConfiguration = new HTTPClientPolicy(); systemProxyConfiguration.setProxyServer(proxyHost); systemProxyConfiguration.setProxyServerType(ProxyServerType.HTTP); // 8080 is the default proxy port value as per some documentation String proxyPort = SystemPropertyAction.getProperty(HTTP_PROXY_PORT, "8080"); if (StringUtils.isEmpty(proxyPort)) { proxyPort = "8080"; } systemProxyConfiguration.setProxyServerPort(Integer.parseInt(proxyPort)); // Load non proxy hosts String nonProxyHosts = SystemPropertyAction.getPropertyOrNull(HTTP_NON_PROXY_HOSTS); if (!StringUtils.isEmpty(nonProxyHosts)) { systemProxyConfiguration.setNonProxyHosts(nonProxyHosts); } } return systemProxyConfiguration; }
public static void setDefaultCipherTransformation(String n) { if (n == null) { n = SystemPropertyAction.getPropertyOrNull("org.apache.cxf.io.CachedOutputStream.CipherTransformation"); } defaultCipherTransformation = n; }
public String run() { String mode = SystemPropertyAction.getPropertyOrNull(SPRING_VALIDATION_MODE); if (mode == null) { mode = SystemPropertyAction.getPropertyOrNull("spring.validation.mode"); } return mode; } });
public static void setDefaultCipherTransformation(String n) { if (n == null) { n = SystemPropertyAction.getPropertyOrNull(CachedConstants.CIPHER_TRANSFORMATION_SYS_PROP); } defaultCipherTransformation = n; }
public String run() { String mode = SystemPropertyAction.getPropertyOrNull("org.apache.cxf.spring.validation.mode"); if (mode == null) { mode = SystemPropertyAction.getPropertyOrNull("spring.validation.mode"); } return mode; } });
public static void setDefaultCipherTransformation(String n) { if (n == null) { n = SystemPropertyAction.getPropertyOrNull(CachedConstants.CIPHER_TRANSFORMATION_SYS_PROP); } defaultCipherTransformation = n; }
public String run() { String mode = SystemPropertyAction.getPropertyOrNull("org.apache.cxf.spring.validation.mode"); if (mode == null) { mode = SystemPropertyAction.getPropertyOrNull("spring.validation.mode"); } return mode; } });
public static void setDefaultCipherTransformation(String n) { if (n == null) { n = SystemPropertyAction.getPropertyOrNull(CachedConstants.CIPHER_TRANSFORMATION_SYS_PROP); } defaultCipherTransformation = n; }
public static void setDefaultCipherTransformation(String n) { if (n == null) { n = SystemPropertyAction.getPropertyOrNull("org.apache.cxf.io.CachedOutputStream.CipherTransformation"); } defaultCipherTransformation = n; }
public String run() { String mode = SystemPropertyAction.getPropertyOrNull(SPRING_VALIDATION_MODE); if (mode == null) { mode = SystemPropertyAction.getPropertyOrNull("spring.validation.mode"); } return mode; } });
public static void setDefaultCipherTransformation(String n) { if (n == null) { n = SystemPropertyAction.getPropertyOrNull(CachedConstants.CIPHER_TRANSFORMATION_SYS_PROP); } defaultCipherTransformation = n; }
public String run() { String mode = SystemPropertyAction.getPropertyOrNull(SPRING_VALIDATION_MODE); if (mode == null) { mode = SystemPropertyAction.getPropertyOrNull("spring.validation.mode"); } return mode; } });
private boolean shouldCheckUrl(Bus bus) { Object prop = null; if (bus != null) { prop = bus.getProperty(DO_NOT_CHECK_URL_PROP); } if (prop == null) { prop = SystemPropertyAction.getPropertyOrNull(DO_NOT_CHECK_URL_PROP); } return !PropertyUtils.isTrue(prop); }
public NettyHttpConduitFactory() { io.netty.util.Version.identify(); Object st = SystemPropertyAction.getPropertyOrNull(USE_POLICY); policy = UseAsyncPolicy.getPolicy(st); }
private boolean shouldCheckUrl(Bus bus) { Object prop = null; if (bus != null) { prop = bus.getProperty(DO_NOT_CHECK_URL_PROP); } if (prop == null) { prop = SystemPropertyAction.getPropertyOrNull(DO_NOT_CHECK_URL_PROP); } return !PropertyUtils.isTrue(prop); }
public NettyHttpConduitFactory() { io.netty.util.Version.identify(); Object st = SystemPropertyAction.getPropertyOrNull(USE_POLICY); policy = UseAsyncPolicy.getPolicy(st); }
private boolean shouldCheckUrl(Bus bus) { Object prop = null; if (bus != null) { prop = bus.getProperty(DO_NOT_CHECK_URL_PROP); } if (prop == null) { prop = SystemPropertyAction.getPropertyOrNull(DO_NOT_CHECK_URL_PROP); } return !PropertyUtils.isTrue(prop); }
/** * @param beanFactory */ public ControlledValidationXmlBeanDefinitionReader(BeanDefinitionRegistry beanFactory) { super(beanFactory); tunedDocumentLoader = new TunedDocumentLoader(); this.setDocumentLoader(tunedDocumentLoader); noFastinfoset = SystemPropertyAction.getPropertyOrNull("org.apache.cxf.nofastinfoset") != null || !TunedDocumentLoader.hasFastInfoSet(); }
/** * @param beanFactory */ public ControlledValidationXmlBeanDefinitionReader(BeanDefinitionRegistry beanFactory) { super(beanFactory); tunedDocumentLoader = new TunedDocumentLoader(); this.setDocumentLoader(tunedDocumentLoader); noFastinfoset = SystemPropertyAction.getPropertyOrNull("org.apache.cxf.nofastinfoset") != null || !TunedDocumentLoader.hasFastInfoSet(); }
/** * @param beanFactory */ public ControlledValidationXmlBeanDefinitionReader(BeanDefinitionRegistry beanFactory) { super(beanFactory); tunedDocumentLoader = new TunedDocumentLoader(); this.setDocumentLoader(tunedDocumentLoader); noFastinfoset = SystemPropertyAction.getPropertyOrNull("org.apache.cxf.nofastinfoset") != null || !TunedDocumentLoader.hasFastInfoSet(); }