/** * Returns the name of the charset that should be used for URL encoding. This will be <code>null</code> if the * information is not available. The function caches the return value, so it's quick to call it repeatedly. */ String getEffectiveURLEscapingCharset() { if (!cachedURLEscapingCharsetSet) { cachedURLEscapingCharset = getURLEscapingCharset(); if (cachedURLEscapingCharset == null) { cachedURLEscapingCharset = getOutputEncoding(); } cachedURLEscapingCharsetSet = true; } return cachedURLEscapingCharset; }
String s = env.getURLEscapingCharset(); return SimpleScalar.newInstanceOrNull(s);
/** * Returns the name of the charset that should be used for URL encoding. This will be <code>null</code> if the * information is not available. The function caches the return value, so it's quick to call it repeatedly. */ String getEffectiveURLEscapingCharset() { if (!cachedURLEscapingCharsetSet) { cachedURLEscapingCharset = getURLEscapingCharset(); if (cachedURLEscapingCharset == null) { cachedURLEscapingCharset = getOutputEncoding(); } cachedURLEscapingCharsetSet = true; } return cachedURLEscapingCharset; }
/** * Returns the name of the charset that should be used for URL encoding. This will be <code>null</code> if the * information is not available. The function caches the return value, so it's quick to call it repeatedly. */ String getEffectiveURLEscapingCharset() { if (!cachedURLEscapingCharsetSet) { cachedURLEscapingCharset = getURLEscapingCharset(); if (cachedURLEscapingCharset == null) { cachedURLEscapingCharset = getOutputEncoding(); } cachedURLEscapingCharsetSet = true; } return cachedURLEscapingCharset; }
/** * Returns the name of the charset that should be used for URL encoding. * This will be <code>null</code> if the information is not available. * The function caches the return value, so it is quick to call it * repeately. */ String getEffectiveURLEscapingCharset() { if (!urlEscapingCharsetCached) { cachedURLEscapingCharset = getURLEscapingCharset(); if (cachedURLEscapingCharset == null) { cachedURLEscapingCharset = getOutputEncoding(); } urlEscapingCharsetCached = true; } return cachedURLEscapingCharset; }
String s = env.getURLEscapingCharset(); return s != null ? new SimpleScalar(s) : null;
String s = env.getURLEscapingCharset(); return SimpleScalar.newInstanceOrNull(s);
String s = env.getURLEscapingCharset(); return SimpleScalar.newInstanceOrNull(s);