MCPcopy Index your code
hub / github.com/apache/tomcat / getCharacterEncoding

Method getCharacterEncoding

java/org/apache/coyote/Request.java:578–585  ·  view source on GitHub ↗

Get the character encoding used for this request. @return The value set via #setCharset(Charset) or if no call has been made to that method try to obtain if from the content type. @deprecated Unused. This method will be removed in Tomcat 12.

()

Source from the content-addressed store, hash-verified

576 * @deprecated Unused. This method will be removed in Tomcat 12.
577 */
578 @Deprecated
579 public String getCharacterEncoding() {
580 if (charsetHolder.getName() == null) {
581 charsetHolder = CharsetHolder.getInstance(getCharsetFromContentType(getContentType()));
582 }
583
584 return charsetHolder.getName();
585 }
586
587
588 /**

Callers 1

getCharsetMethod · 0.95

Calls 4

getInstanceMethod · 0.95
getContentTypeMethod · 0.95
getNameMethod · 0.65

Tested by

no test coverage detected