public static void deactivateGlobally () { SystemProperties.removePropertyValue (SYSPROP_SOCKS_PROXY_HOST); SystemProperties.removePropertyValue (SYSPROP_SOCKS_PROXY_PORT); }
public static void enableCustomLogger (final boolean bEnable) { if (bEnable) SystemProperties.setPropertyValue (SYS_PROP_POI_LOGGER, POISLF4JLogger.class.getName ()); else SystemProperties.removePropertyValue (SYS_PROP_POI_LOGGER); }
public static int getXMLElementAttributeLimit () { // Default value depends. // JDK 1.7+: 10.0000 String sPropertyValue = SystemProperties.getPropertyValueOrNull (SYSTEM_PROPERTY_JDX_XML_ELEMENT_ATTRIBUTE_LIMIT); if (sPropertyValue == null) sPropertyValue = SystemProperties.getPropertyValueOrNull (SYSTEM_PROPERTY_ELEMENT_ATTRIBUTE_LIMIT); if (sPropertyValue == null) return 10000; return Integer.parseInt (sPropertyValue); }
@Nonnull @Nonempty public String getNewLineString () { return m_eNewLineMode.getText (); }
@Nonnull public Charset getCharacterEncodingObjOrDefault () { Charset ret = getCharacterEncodingObj (); if (ret == null) ret = SystemHelper.getSystemCharset (); return ret; }
public static int getXMLMaxOccur () { // Default value depends. // JDK 1.7+: 5.0000 String sPropertyValue = SystemProperties.getPropertyValueOrNull (SYSTEM_PROPERTY_JDX_XML_MAX_OCCUR); if (sPropertyValue == null) sPropertyValue = SystemProperties.getPropertyValueOrNull (SYSTEM_PROPERTY_MAX_OCCUR); if (sPropertyValue == null) return 5000; return Integer.parseInt (sPropertyValue); }
@Nonnull @Nonempty public final String getNewLineString () { return m_eNewLineMode.getText (); }
public static void deactivateGlobally () { SystemProperties.removePropertyValue (SYSPROP_JAVA_NET_USE_SYSTEM_PROXIES); }
public static int getXMLEntityExpansionLimit () { // Default value depends. // JDK 1.6: 100.000 // JDK 1.7+: 64.0000 // Source: https://docs.oracle.com/javase/tutorial/jaxp/limits/limits.html String sPropertyValue = SystemProperties.getPropertyValueOrNull (SYSTEM_PROPERTY_JDX_XML_ENTITY_EXPANSION_LIMIT); if (sPropertyValue == null) sPropertyValue = SystemProperties.getPropertyValueOrNull (SYSTEM_PROPERTY_ENTITY_EXPANSION_LIMIT); if (sPropertyValue == null) return 64000; return Integer.parseInt (sPropertyValue); }
@Nonnull @Nonempty public String getNewLineString () { return m_eNewLineMode.getText (); }
public static void deactivateGlobally () { for (final EHttpProxyType eProxyType : EHttpProxyType.values ()) { SystemProperties.removePropertyValue (eProxyType.getPropertyNameProxyHost ()); SystemProperties.removePropertyValue (eProxyType.getPropertyNameProxyPort ()); SystemProperties.removePropertyValue (eProxyType.getPropertyNameProxyUserName ()); SystemProperties.removePropertyValue (eProxyType.getPropertyNameProxyPassword ()); SystemProperties.removePropertyValue (eProxyType.getPropertyNameNoProxyHosts ()); } }
public static int getXMLTotalEntitySizeLimit () { // Default value: // JDK 1.7.0_45: 5x10^7 final String sPropertyValue = SystemProperties.getPropertyValueOrNull (SYSTEM_PROPERTY_JDX_XML_TOTAL_ENTITY_SIZE_LIMIT); if (sPropertyValue == null) return 5 * (int) 10e7; return Integer.parseInt (sPropertyValue); }
public static int getXMLMaxGeneralEntitySizeLimit () { // Default value: // JDK 1.7.0_45: 0 final String sPropertyValue = SystemProperties.getPropertyValueOrNull (SYSTEM_PROPERTY_JDX_XML_MAX_GENERAL_ENTITY_SIZE_LIMIT); if (sPropertyValue == null) return 0; return Integer.parseInt (sPropertyValue); }
public static int getXMLMaxParameterEntitySizeLimit () { // Default value: // JDK 1.7.0_45: 0 final String sPropertyValue = SystemProperties.getPropertyValueOrNull (SYSTEM_PROPERTY_JDX_XML_MAX_PARAMETER_ENTITY_SIZE_LIMIT); if (sPropertyValue == null) return 0; return Integer.parseInt (sPropertyValue); } }
/** * @return The current proxy host for SOCKS proxy type. May be * <code>null</code>. */ @Nullable public String getProxyHost () { return SystemProperties.getPropertyValueOrNull (SYSPROP_SOCKS_PROXY_HOST); }
/** * @return The current proxy port for SOCKS proxy type. May be * <code>null</code>. */ @Nullable public String getProxyPort () { return SystemProperties.getPropertyValueOrNull (SYSPROP_SOCKS_PROXY_PORT); }
public boolean isUseSystemProxies () { return StringParser.parseBool (SystemProperties.getPropertyValueOrNull (SYSPROP_JAVA_NET_USE_SYSTEM_PROXIES), false); }
/** * @return The current non-proxy hosts for this HTTP proxy type. May be * <code>null</code>. */ @Nullable default String getNoProxyHosts () { return SystemProperties.getPropertyValueOrNull (getPropertyNameNoProxyHosts ()); } }
/** * @return The current proxy password for this HTTP proxy type. May be * <code>null</code>. */ @Nullable default String getProxyPassword () { return SystemProperties.getPropertyValueOrNull (getPropertyNameProxyPassword ()); }
/** * @return The current proxy user for this HTTP proxy type. May be * <code>null</code>. */ @Nullable default String getProxyUserName () { return SystemProperties.getPropertyValueOrNull (getPropertyNameProxyUserName ()); }