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

Method execute

java/org/apache/catalina/ant/JMXGetTask.java:93–106  ·  view source on GitHub ↗

Execute the requested operation. @exception BuildException if an error occurs

()

Source from the content-addressed store, hash-verified

91 * @exception BuildException if an error occurs
92 */
93 @Override
94 public void execute() throws BuildException {
95 super.execute();
96 if (bean == null || attribute == null) {
97 throw new BuildException("Must specify 'bean' and 'attribute' attributes");
98 }
99 log("Getting attribute " + attribute + " in bean " + bean);
100 try {
101 execute("/jmxproxy/?get=" + URLEncoder.encode(bean, getCharset()) + "&att=" +
102 URLEncoder.encode(attribute, getCharset()));
103 } catch (UnsupportedEncodingException e) {
104 throw new BuildException("Invalid 'charset' attribute: " + getCharset());
105 }
106 }
107}

Callers

nothing calls this directly

Calls 4

encodeMethod · 0.95
executeMethod · 0.65
logMethod · 0.65
getCharsetMethod · 0.65

Tested by

no test coverage detected