PageRenderTime 60ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/bsh/Remote.html

#
HTML | 270 lines | 221 code | 37 blank | 12 comment | 0 complexity | 35ed3fa3879f09b1cdd408010ba11b92 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:13:50 GMT-08:00 2008 -->
  6. <TITLE>
  7. Remote (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.bsh.Remote class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
  11. <NOSCRIPT>
  12. </NOSCRIPT>
  13. </HEAD>
  14. <BODY BGCOLOR="white" >
  15. <!-- ========= START OF TOP NAVBAR ======= -->
  16. <A NAME="navbar_top"><!-- --></A>
  17. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  18. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  19. <TR>
  20. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  21. <A NAME="navbar_top_firstrow"><!-- --></A>
  22. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  23. <TR ALIGN="center" VALIGN="top">
  24. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  25. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  26. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Remote.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  32. </TR>
  33. </TABLE>
  34. </TD>
  35. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  36. </EM>
  37. </TD>
  38. </TR>
  39. <TR>
  40. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  41. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/ReflectManager.html" title="class in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/StringUtil.html" title="class in org.gjt.sp.jedit.bsh"><B>NEXT CLASS</B></A></FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../../index.html?org/gjt/sp/jedit/bsh/Remote.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="Remote.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  46. &nbsp;
  47. <NOSCRIPT>
  48. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  49. </NOSCRIPT>
  50. </FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  54. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  55. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  56. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  57. </TR>
  58. </TABLE>
  59. <A NAME="skip-navbar_top"></A>
  60. <!-- ========= END OF TOP NAVBAR ========= -->
  61. <HR>
  62. <!-- ======== START OF CLASS DATA ======== -->
  63. <H2>
  64. <FONT SIZE="-1">
  65. org.gjt.sp.jedit.bsh</FONT>
  66. <BR>
  67. Class Remote</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.bsh.Remote</B>
  71. </PRE>
  72. <HR>
  73. <DL>
  74. <DT><PRE>public class <B>Remote</B><DT>extends java.lang.Object</DL>
  75. </PRE>
  76. <P>
  77. Remote executor class. Posts a script from the command line to a BshServlet
  78. or embedded interpreter using (respectively) HTTP or the bsh telnet
  79. service. Output is printed to stdout and a numeric return value is scraped
  80. from the result.
  81. <P>
  82. <P>
  83. <HR>
  84. <P>
  85. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  86. <A NAME="constructor_summary"><!-- --></A>
  87. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  88. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  89. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  90. <B>Constructor Summary</B></FONT></TH>
  91. </TR>
  92. <TR BGCOLOR="white" CLASS="TableRowColor">
  93. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Remote.html#Remote()">Remote</A></B>()</CODE>
  94. <BR>
  95. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  96. </TR>
  97. </TABLE>
  98. &nbsp;
  99. <!-- ========== METHOD SUMMARY =========== -->
  100. <A NAME="method_summary"><!-- --></A>
  101. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  102. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  103. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  104. <B>Method Summary</B></FONT></TH>
  105. </TR>
  106. <TR BGCOLOR="white" CLASS="TableRowColor">
  107. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  108. <CODE>static&nbsp;int</CODE></FONT></TD>
  109. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Remote.html#eval(java.lang.String, java.lang.String)">eval</A></B>(java.lang.String&nbsp;url,
  110. java.lang.String&nbsp;text)</CODE>
  111. <BR>
  112. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Evaluate text in the interpreter at url, returning a possible integer
  113. return value.</TD>
  114. </TR>
  115. <TR BGCOLOR="white" CLASS="TableRowColor">
  116. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  117. <CODE>static&nbsp;void</CODE></FONT></TD>
  118. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Remote.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;args)</CODE>
  119. <BR>
  120. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  121. </TR>
  122. </TABLE>
  123. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  124. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  125. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  126. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  127. </TR>
  128. <TR BGCOLOR="white" CLASS="TableRowColor">
  129. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  130. </TR>
  131. </TABLE>
  132. &nbsp;
  133. <P>
  134. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  135. <A NAME="constructor_detail"><!-- --></A>
  136. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  137. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  138. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  139. <B>Constructor Detail</B></FONT></TH>
  140. </TR>
  141. </TABLE>
  142. <A NAME="Remote()"><!-- --></A><H3>
  143. Remote</H3>
  144. <PRE>
  145. public <B>Remote</B>()</PRE>
  146. <DL>
  147. </DL>
  148. <!-- ============ METHOD DETAIL ========== -->
  149. <A NAME="method_detail"><!-- --></A>
  150. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  151. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  152. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  153. <B>Method Detail</B></FONT></TH>
  154. </TR>
  155. </TABLE>
  156. <A NAME="main(java.lang.String[])"><!-- --></A><H3>
  157. main</H3>
  158. <PRE>
  159. public static void <B>main</B>(java.lang.String[]&nbsp;args)
  160. throws java.lang.Exception</PRE>
  161. <DL>
  162. <DD><DL>
  163. <DT><B>Throws:</B>
  164. <DD><CODE>java.lang.Exception</CODE></DL>
  165. </DD>
  166. </DL>
  167. <HR>
  168. <A NAME="eval(java.lang.String, java.lang.String)"><!-- --></A><H3>
  169. eval</H3>
  170. <PRE>
  171. public static int <B>eval</B>(java.lang.String&nbsp;url,
  172. java.lang.String&nbsp;text)
  173. throws java.io.IOException</PRE>
  174. <DL>
  175. <DD>Evaluate text in the interpreter at url, returning a possible integer
  176. return value.
  177. <P>
  178. <DD><DL>
  179. <DT><B>Throws:</B>
  180. <DD><CODE>java.io.IOException</CODE></DL>
  181. </DD>
  182. </DL>
  183. <!-- ========= END OF CLASS DATA ========= -->
  184. <HR>
  185. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  186. <A NAME="navbar_bottom"><!-- --></A>
  187. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  188. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  189. <TR>
  190. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  191. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  192. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  193. <TR ALIGN="center" VALIGN="top">
  194. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  195. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  196. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  197. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Remote.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  198. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  199. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  200. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  201. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  202. </TR>
  203. </TABLE>
  204. </TD>
  205. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  206. </EM>
  207. </TD>
  208. </TR>
  209. <TR>
  210. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  211. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/ReflectManager.html" title="class in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>&nbsp;
  212. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/StringUtil.html" title="class in org.gjt.sp.jedit.bsh"><B>NEXT CLASS</B></A></FONT></TD>
  213. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  214. <A HREF="../../../../../index.html?org/gjt/sp/jedit/bsh/Remote.html" target="_top"><B>FRAMES</B></A> &nbsp;
  215. &nbsp;<A HREF="Remote.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  216. &nbsp;
  217. <NOSCRIPT>
  218. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  219. </NOSCRIPT>
  220. </FONT></TD>
  221. </TR>
  222. <TR>
  223. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  224. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  225. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  226. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  227. </TR>
  228. </TABLE>
  229. <A NAME="skip-navbar_bottom"></A>
  230. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  231. <HR>
  232. </BODY>
  233. </HTML>