Package bsh
Class Remote
- java.lang.Object
-
- bsh.Remote
-
public class Remote extends Object
Remote executor class. Posts a script from the command line to a BshServlet or embedded interpreter using (respectively) HTTP or the bsh telnet service. Output is printed to stdout and a numeric return value is scraped from the result.
-
-
Constructor Summary
Constructors Constructor Description Remote()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
eval(String url, String text)
Evaluate text in the interpreter at url, returning a possible integer return value.static void
main(String[] args)
-
-
-
Method Detail
-
eval
public static int eval(String url, String text) throws IOException
Evaluate text in the interpreter at url, returning a possible integer return value.- Throws:
IOException
-
-