Top Description Constructors Methods
bsh

public Class Remote

extends Object
Class Inheritance
Imports
java.io.*, java.net.*, java.text.*

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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static String
doBsh(String url, String text)

pack-priv static String
doHttp(String postURL, String text)

public static int
eval(String url, String text)

Evaluate text in the interpreter at url, returning a possible integer return value.

pack-priv static String
public static void
main(String[] args)

private static void
sendLine(String line, OutputStream outPipe)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Remoteback to summary
public Remote()

Method Detail

doBshback to summary
pack-priv static String doBsh(String url, String text)
doHttpback to summary
pack-priv static String doHttp(String postURL, String text)
evalback to summary
public static int eval(String url, String text) throws IOException

Evaluate text in the interpreter at url, returning a possible integer return value.

getFileback to summary
pack-priv static String getFile(String name) throws FileNotFoundException, IOException
mainback to summary
public static void main(String[] args) throws Exception
sendLineback to summary
private static void sendLine(String line, OutputStream outPipe) throws IOException