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

Method getCharacterEncoding

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

Source from the content-addressed store, hash-verified

1039
1040
1041 @Override
1042 public String getCharacterEncoding() {
1043 String characterEncoding = coyoteRequest.getCharsetHolder().getName();
1044
1045 if (characterEncoding == null) {
1046 Context context = getContext();
1047 if (context != null) {
1048 characterEncoding = context.getRequestCharacterEncoding();
1049 }
1050 }
1051
1052 return characterEncoding;
1053 }
1054
1055
1056 private Charset getCharset() {

Callers

nothing calls this directly

Calls 4

getContextMethod · 0.95
getNameMethod · 0.65
getCharsetHolderMethod · 0.45

Tested by

no test coverage detected