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

Method encodeUrl

java/org/apache/tomcat/util/descriptor/web/WebXml.java:2028–2034  ·  view source on GitHub ↗
(String input)

Source from the content-addressed store, hash-verified

2026
2027
2028 private synchronized String encodeUrl(String input) {
2029 try {
2030 return urlEncoder.encodeURL(input, 0, input.length()).toString();
2031 } catch (IOException e) {
2032 throw new IllegalArgumentException(input, e);
2033 }
2034 }
2035
2036
2037 private void appendElement(StringBuilder sb, String indent, String elementName, String value) {

Callers 2

toXmlMethod · 0.95
appendElementMethod · 0.95

Calls 3

lengthMethod · 0.80
toStringMethod · 0.65
encodeURLMethod · 0.65

Tested by

no test coverage detected