Home
last modified time | relevance | path

Searched refs:charset (Results 1 – 10 of 10) sorted by relevance

/unit/src/java/nginx/unit/websocket/
H A DBasicAuthenticator.java19 import java.nio.charset.Charset;
20 import java.nio.charset.StandardCharsets;
47 Charset charset; in getAuthorization() local
51 charset = StandardCharsets.UTF_8; in getAuthorization()
53 charset = StandardCharsets.ISO_8859_1; in getAuthorization()
56 String base64 = Base64.getEncoder().encodeToString(userPass.getBytes(charset)); in getAuthorization()
H A DDigestAuthenticator.java19 import java.nio.charset.StandardCharsets;
H A DWsSession.java25 import java.nio.charset.CharsetDecoder;
26 import java.nio.charset.CoderResult;
27 import java.nio.charset.CodingErrorAction;
28 import java.nio.charset.StandardCharsets;
H A DWsFrameBase.java22 import java.nio.charset.CharsetDecoder;
23 import java.nio.charset.CoderResult;
24 import java.nio.charset.CodingErrorAction;
H A DWsRemoteEndpointImplBase.java25 import java.nio.charset.CharsetEncoder;
26 import java.nio.charset.CoderResult;
H A DWsWebSocketContainer.java33 import java.nio.charset.StandardCharsets;
/unit/src/java/nginx/unit/
H A DIncludeResponseWrapper.java5 import java.nio.charset.Charset;
6 import java.nio.charset.StandardCharsets;
89 public void setCharacterEncoding(String charset) in setCharacterEncoding() argument
91 trace("setCharacterEncoding " + charset); in setCharacterEncoding()
H A DResponse.java13 import java.nio.charset.Charset;
14 import java.nio.charset.StandardCharsets;
691 public void setCharacterEncoding(String charset) in setCharacterEncoding() argument
693 trace("setCharacterEncoding " + charset); in setCharacterEncoding()
699 if (charset == null) { in setCharacterEncoding()
716 characterEncoding = charset; in setCharacterEncoding()
776 && charset != null in setContentType()
777 && !characterEncoding.equalsIgnoreCase(charset)) in setContentType()
780 charset = characterEncoding; in setContentType()
784 if (charset == null) { in setContentType()
[all …]
H A DRequest.java20 import java.nio.charset.Charset;
21 import java.nio.charset.StandardCharsets;
728 …String charset = (mime == null || mime.getCharset() == null) ? MimeTypes.getCharsetFromContentType… in getContentType() local
729 if (charset != null) { in getContentType()
730 characterEncoding = charset; in getContentType()
892 String charset = null; in getParameters() local
894 charset = MimeTypes.getCharsetFromContentType(p.getContentType()); in getParameters()
904 …String content = new String(os.toByteArray(), charset == null ? def_charset : Charset.forName(char… in getParameters()
/unit/src/java/nginx/unit/websocket/server/
H A DUpgradeUtil.java20 import java.nio.charset.StandardCharsets;