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

Method isValidEncoding

java/org/apache/catalina/ssi/SSIEcho.java:88–92  ·  view source on GitHub ↗

Checks if the given encoding name is one of the supported encodings. @param encoding the encoding name to check @return true if the encoding is valid

(String encoding)

Source from the content-addressed store, hash-verified

86 * @return true if the encoding is valid
87 */
88 protected boolean isValidEncoding(String encoding) {
89 return encoding.equalsIgnoreCase(SSIMediator.ENCODING_URL) ||
90 encoding.equalsIgnoreCase(SSIMediator.ENCODING_ENTITY) ||
91 encoding.equalsIgnoreCase(SSIMediator.ENCODING_NONE);
92 }
93}

Callers 1

processMethod · 0.95

Calls 1

equalsIgnoreCaseMethod · 0.45

Tested by

no test coverage detected