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
()
| 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 | /** |
nothing calls this directly
no test coverage detected