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

Method getCharset

java/org/apache/coyote/Request.java:598–606  ·  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. @throws UnsupportedEncodingException If the user agent has specified an invalid character encoding

()

Source from the content-addressed store, hash-verified

596 * @deprecated Unused. This method will be removed in Tomcat 12.
597 */
598 @Deprecated
599 public Charset getCharset() throws UnsupportedEncodingException {
600 if (charsetHolder.getName() == null) {
601 // Populates charsetHolder
602 getCharacterEncoding();
603 }
604
605 return charsetHolder.getValidatedCharset();
606 }
607
608
609 /**

Callers

nothing calls this directly

Calls 3

getCharacterEncodingMethod · 0.95
getValidatedCharsetMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected