Searched refs:charset (Results 1 - 25 of 29) sorted by relevance

12

/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/util/
H A DCharsetMapper.java168 String charset = null;
171 charset = map.getProperty(locale.toString());
172 if (charset != null)
173 return (charset);
176 charset = map.getProperty(locale.getLanguage());
177 return (charset);
184 * webapp's desired mapping from locale to charset. This method
188 * @param charset The charset to be associated with the locale
190 public void addCharsetMappingFromDeploymentDescriptor(String locale,String charset) { argument
[all...]
H A DRequestUtil.java66 import java.nio.charset.Charset;
67 import java.nio.charset.UnsupportedCharsetException;
212 int start = contentType.indexOf("charset=");
280 * @param encoding The name of a supported charset used to encode
588 * unchecked java.nio.charset.UnsupportedCharsetException.
589 * cf. String.getBytes(String charset) throws UnsupportedEncodingException
594 Charset charset = null;
597 charset = Charsets.lookupCharset(enc);
602 if (charset == null) {
610 return charset;
[all...]
H A DBase64.java61 import java.nio.charset.Charset;
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/logviewer/
H A DWriterOutputStream.java46 import java.nio.charset.CharsetDecoder;
47 import java.nio.charset.CodingErrorAction;
48 import java.nio.charset.CoderResult;
49 import java.nio.charset.Charset;
50 import java.nio.charset.UnsupportedCharsetException;
67 public WriterOutputStream(Writer out, Charset charset) { argument
69 decoder = charset.newDecoder();
/glassfish-3.1.2/admin/util/src/main/java/com/sun/enterprise/admin/util/
H A DLineTokenReplacer.java52 import java.nio.charset.Charset;
69 public LineTokenReplacer(TokenValueSet tokens, String charset) { argument
74 this.charsetName = charset;
86 Charset charset = Charset.forName(charsetName);
87 writer = new BufferedWriter(new OutputStreamWriter(outputStream, charset));
/glassfish-3.1.2/verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/tests/web/runtime/
H A DASLocaleCharsetInfo.java51 import java.nio.charset.*;
81 "FAILED [AS-WEB local-charset-info] Empty "+ defaultLocale +" [ {0} ] is not valid.",
95 "PASSED [AS-WEB locale-charset-info] Properly "+ defaultLocale +" [ {0} ] defined in the war file.",
103 "WARNING [AS-WEB local-charset-info] attribute default_locale [ {0} ] is not valid.",
107 //Test 2: check validity of charset
118 "FAILED [AS-WEB local-charset-map] attribute locale [ {0} ] must be of finite length.",
132 "WARNING [AS-WEB local-charset-map] attribute locale [ {0} ] is not valid.",
138 "PASSED [AS-WEB locale-charset-map] attribute locale [ {0} ] properly defined.",
142 //Test 2.2: check validity of each charset
143 String charset
[all...]
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/fileupload/
H A DPartItem.java67 import java.nio.charset.Charset;
261 * Returns the content charset passed by the agent or <code>null</code> if
264 * @return The content charset passed by the agent or <code>null</code> if
272 return params.get("charset");
364 * @param charset The charset to use.
371 public String getString(final String charset) argument
373 return new String(get(), RequestUtil.lookupCharset(charset));
388 String charset = getCharSet();
389 if (charset
[all...]
H A DByteArrayOutputStream.java66 import java.nio.charset.Charset;
H A DRequestItemIterator.java68 import java.nio.charset.Charset;
/glassfish-3.1.2/admin/config-api/src/main/java/org/glassfish/config/support/
H A DServerReaderFilter.java45 import java.nio.charset.Charset;
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/
H A DUtility.java55 import java.nio.charset.Charset;
56 import java.nio.charset.CharsetDecoder;
57 import java.nio.charset.CharsetEncoder;
58 import java.nio.charset.CharacterCodingException;
59 import java.nio.charset.UnsupportedCharsetException;
454 * Convert the byte array to char array with respect to given charset.
457 * @param charset null or "" means default charset
460 public static char[] convertByteArrayToCharArray(byte[] byteArray, String charset) argument
470 if (charset
[all...]
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/resources/custom/
H A DLogViewerResource.java47 import java.nio.charset.Charset;
95 protected Charset charset; field in class:LogViewerResource
109 @Produces("text/plain;charset=UTF-8")
183 public void initLargeText(final File file, Charset charset, boolean completed) { argument
184 this.charset = charset;
214 return writeLogTo(start, new WriterOutputStream(w, charset));
/glassfish-3.1.2/web/web-naming/src/main/java/org/apache/naming/
H A DUtil.java61 import java.nio.charset.Charset;
62 import java.nio.charset.UnsupportedCharsetException;
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/enterprise/web/
H A DProxyHandlerImpl.java47 import java.nio.charset.Charset;
H A DPEAccessLogValve.java63 import java.nio.charset.Charset;
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/authenticator/
H A DBasicAuthenticator.java69 import java.nio.charset.Charset;
H A DDigestAuthenticator.java71 import java.nio.charset.Charset;
/glassfish-3.1.2/security/core/src/main/java/com/sun/enterprise/security/auth/realm/jdbc/
H A DJDBCRealm.java47 import java.nio.charset.CharacterCodingException;
98 * <li>charset: charset encoding
126 public static final String PARAM_CHARSET = "charset";
170 String charset = props.getProperty(PARAM_CHARSET);
245 if (charset != null) {
246 this.setProperty(PARAM_CHARSET, charset);
259 PARAM_CHARSET + " = " + charset);
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/ssi/
H A DSSIFilter.java68 import java.nio.charset.Charset;
H A DSSIServletExternalResolver.java75 import java.nio.charset.Charset;
/glassfish-3.1.2/admingui/common/src/main/resources/security/realms/
H A DrealmAttrs.inc195 <sun:property id="charset" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18nc.realm.charset}" helpText="$resource{i18nc.realm.charsetHelp}" >
196 <sun:textField id="charset" columns="$int{60}" maxLength="#{sessionScope.fieldLengths['maxLength.realm.charset']}" text="#{attrMap.charset}" />
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/connector/
H A DResponse.java714 * include a charset=ISO-8859-1 component which will also be
850 // Ignore charset if getWriter() has already been called
862 // Check to see if content type contains charset
894 * @param charset String containing the name of the character encoding.
896 public void setCharacterEncoding(String charset) { argument
910 coyoteResponse.setCharacterEncoding(charset);
943 String charset = cm.getCharset( locale );
944 if ( charset != null ){
945 coyoteResponse.setCharacterEncoding(charset);
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/enterprise/web/pwc/connector/coyote/
H A DPwcCoyoteRequest.java58 import java.nio.charset.Charset;
67 * request encoding (charset).
118 * If there is no request charset specified in the request, determines and
119 * sets the request charset using the locale-charset-info,
120 * locale-charset-map, and parameter-encoding elements provided in the
171 * Determines and sets the request charset using the locale-charset-info,
172 * locale-charset-map, and parameter-encoding elements provided in the
/glassfish-3.1.2/web/web-ha/src/main/java/org/glassfish/web/ha/session/management/
H A DCompositeMetadata.java48 import java.nio.charset.Charset;
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/realm/
H A DRealmBase.java84 import java.nio.charset.CharacterCodingException;
150 * The encoding charset for the digest.
280 * Returns the digest encoding charset.
282 * @return The charset (may be null) for platform default
289 * Sets the digest encoding charset.
291 * @param charset The charset (null for platform default)
293 public void setDigestEncoding(String charset) { argument
294 digestEncoding = charset;

Completed in 116 milliseconds

12