Execute the requested operation. @exception BuildException if an error occurs
()
| 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 | } |
nothing calls this directly
no test coverage detected