MCPcopy Create free account
hub / github.com/apache/tomcat / getCharset

Method getCharset

java/org/apache/catalina/connector/Request.java:1056–1071  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1054
1055
1056 private Charset getCharset() {
1057 Charset charset = coyoteRequest.getCharsetHolder().getCharset();
1058
1059 if (charset == null) {
1060 Context context = getContext();
1061 if (context != null) {
1062 charset = CharsetHolder.getInstance(context.getRequestCharacterEncoding()).getCharset();
1063 }
1064 }
1065
1066 if (charset == null) {
1067 charset = org.apache.coyote.Constants.DEFAULT_BODY_CHARSET;
1068 }
1069
1070 return charset;
1071 }
1072
1073
1074 @Override

Callers 2

parsePartsMethod · 0.95
doParseParametersMethod · 0.95

Calls 5

getContextMethod · 0.95
getInstanceMethod · 0.95
getCharsetMethod · 0.65
getCharsetHolderMethod · 0.45

Tested by

no test coverage detected