protected void checkPublishPermission() { SecurityManager sm = System.getSecurityManager(); boolean checkPublishEndpointPermissionWithSecurityManager = Boolean.parseBoolean( SystemPropertyAction.getProperty( CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY_WITH_SECURITY_MANAGER, "true")); if (checkPublishEndpointPermissionWithSecurityManager && sm != null) { sm.checkPermission(PUBLISH_PERMISSION); } else if (Boolean.getBoolean(CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY)) { AccessController.checkPermission(PUBLISH_PERMISSION); } }
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 setDefaultThreshold(int i) { if (i == -1) { String s = SystemPropertyAction.getProperty("org.apache.cxf.io.CachedOutputStream.Threshold"); if (s == null) { // lookup the deprecated property s = SystemPropertyAction.getProperty("org.apache.cxf.io.CachedWriter.Threshold", "-1"); } i = Integer.parseInt(s); if (i <= 0) { i = 64 * 1024; } } defaultThreshold = i; }
public static void setDefaultMaxSize(long l) { if (l == -1) { String s = SystemPropertyAction.getProperty(CachedConstants.MAX_SIZE_SYS_PROP, "-1"); l = Long.parseLong(s); } defaultMaxSize = l; }
public static void setDefaultThreshold(int i) { if (i == -1) { String s = SystemPropertyAction.getProperty(CachedConstants.THRESHOLD_SYS_PROP, "-1"); i = Integer.parseInt(s); if (i <= 0) { i = 128 * 1024; } else { thresholdSysPropSet = true; } } defaultThreshold = i; }
public static void setDefaultMaxSize(long l) { if (l == -1) { String s = SystemPropertyAction.getProperty(CachedConstants.MAX_SIZE_SYS_PROP, "-1"); l = Long.parseLong(s); } defaultMaxSize = l; }
public static void setDefaultThreshold(int i) { if (i == -1) { String s = SystemPropertyAction.getProperty("org.apache.cxf.io.CachedOutputStream.Threshold", "-1"); i = Integer.parseInt(s); if (i <= 0) { i = 64 * 1024; } } defaultThreshold = i; } public static void setDefaultCipherTransformation(String n) {
private static void nl(StringBuilder buf) { buf.append(SystemPropertyAction.getProperty("line.separator")); }
public static void setDefaultThreshold(int i) { if (i == -1) { String s = SystemPropertyAction.getProperty(CachedConstants.THRESHOLD_SYS_PROP, "-1"); i = Integer.parseInt(s); if (i <= 0) { i = 128 * 1024; } else { thresholdSysPropSet = true; } } defaultThreshold = i; }
public static void setDefaultThreshold(int i) { if (i == -1) { String s = SystemPropertyAction.getProperty("org.apache.cxf.io.CachedOutputStream.Threshold", "-1"); i = Integer.parseInt(s); if (i <= 0) { i = 64 * 1024; } } defaultThreshold = i; } public static void setDefaultCipherTransformation(String n) {
private static void nl(StringBuilder buf) { buf.append(SystemPropertyAction.getProperty("line.separator")); }
private String getLineSep() { String value = properties.get(LINE_SEP_PROPERTY); return value == null ? SystemPropertyAction.getProperty(LINE_SEP_PROPERTY) : value; }
private String getFileSep() { String value = properties.get(FILE_SEP_PROPERTY); return value == null ? SystemPropertyAction.getProperty(FILE_SEP_PROPERTY) : value; }
private static boolean isWindows() { String osName = SystemPropertyAction.getProperty("os.name").toLowerCase(Locale.US); return osName.indexOf("windows") > -1; }
private static boolean isWindows() { String osName = SystemPropertyAction.getProperty("os.name").toLowerCase(Locale.US); return osName.indexOf("windows") > -1; }
private static boolean isWindows() { String osName = SystemPropertyAction.getProperty("os.name").toLowerCase(Locale.US); return osName.indexOf("windows") > -1; }
public static String getKeystoreProvider(String keyStoreProvider, Logger log) { String logMsg = null; if (keyStoreProvider != null) { logMsg = "KEY_STORE_PROVIDER_SET"; } else { keyStoreProvider = SystemPropertyAction.getProperty("javax.net.ssl.keyStoreProvider", null); if (keyStoreProvider == null) { logMsg = "KEY_STORE_PROVIDER_NOT_SET"; } else { logMsg = "KEY_STORE_PROVIDER_SYSTEM_SET"; } } LogUtils.log(log, Level.FINE, logMsg, keyStoreProvider); return keyStoreProvider; }
protected void checkPublishPermission() { SecurityManager sm = System.getSecurityManager(); boolean checkPublishEndpointPermissionWithSecurityManager = Boolean.parseBoolean( SystemPropertyAction.getProperty( CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY_WITH_SECURITY_MANAGER, "true")); if (checkPublishEndpointPermissionWithSecurityManager && sm != null) { sm.checkPermission(PUBLISH_PERMISSION); } else if (Boolean.getBoolean(CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY)) { AccessController.checkPermission(PUBLISH_PERMISSION); } }
@Override public ExtensionManagerBus create(final CreationalContext< ExtensionManagerBus > ctx) { final ExtensionManagerBus instance = injectionTarget.produce(ctx); if ("true".equals(SystemPropertyAction.getProperty("org.apache.cxf.cdi.unwrap.proxies", "true"))) { instance.setProperty(ClassUnwrapper.class.getName(), new CdiClassUnwrapper()); } BusFactory.possiblySetDefaultBus(instance); instance.initialize(); injectionTarget.inject(instance, ctx); injectionTarget.postConstruct(instance); return instance; }
@Override public ExtensionManagerBus create(final CreationalContext< ExtensionManagerBus > ctx) { final ExtensionManagerBus instance = injectionTarget.produce(ctx); if ("true".equals(SystemPropertyAction.getProperty("org.apache.cxf.cdi.unwrap.proxies", "true"))) { instance.setProperty(ClassUnwrapper.class.getName(), new CdiClassUnwrapper()); } BusFactory.possiblySetDefaultBus(instance); instance.initialize(); injectionTarget.inject(instance, ctx); injectionTarget.postConstruct(instance); return instance; }