Author: keith
Date: Thu May  1 08:30:35 2008
New Revision: 16442

Log:

Fixing Mashup-770


Modified:
   trunk/mashup/java/xdocs/systemhostobject.html

Modified: trunk/mashup/java/xdocs/systemhostobject.html
==============================================================================
--- trunk/mashup/java/xdocs/systemhostobject.html       (original)
+++ trunk/mashup/java/xdocs/systemhostobject.html       Thu May  1 08:30:35 2008
@@ -1,150 +1,239 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-  <meta http-equiv="content-type" content="">
-  <title>System Host Object</title>
-  <link href="css/mashup-docs.css" rel="stylesheet" type="text/css"
- media="all">
-</head>
-<body>
-<div id="main-content">
-<h1>System Host Object</h1>
-<h3>1.0 Introduction</h3>
-<p>A 'system' hosted global object provides a set of system specific
-utility functions. No explicit instantiation is necessary.</p>
-<h3>1.1 Example</h3>
-<div class="code">
-<pre>system.include("concatscript.js");<br>function add(first, last) {<br>     
print(system.localHostName);<br>        //waits for 1 second<br>        
system.wait(1000);<br>  // concat is a function in the included concatscript.js 
javascript<br>  return concat(first,last);<br>}</pre>
-</div>
-<h3>2.0 System Object</h3>
-<h3>2.1 System Object Interface</h3>
-<p>{<br>
-&nbsp;&nbsp;&nbsp; function void include(string[] scriptPath);<br>
-&nbsp;&nbsp;&nbsp; function void wait([optional int time]);<br>
-&nbsp;&nbsp;&nbsp; readonly property string localHostName;<br>
-&nbsp; &nbsp; function uuid setInterval(<span
- style="font-family: verdana; font-weight: normal;">String
-javascriptCode/Function javascriptFunctionName</span><span
- style="font-weight: normal;">, timeInterval, [optional]
-Array parameters, [optional] Date startTime, [optional] Date endtime);<br>
-&nbsp; &nbsp; function void clearInterval(String uuid);</span><br>
-}</p>
-<h3>2.2 API Documentation&nbsp;</h3>
-<table class="MsoTableGrid"
- style="margin-left: 0.5in; border-collapse: collapse;" border="1"
- cellpadding="5" cellspacing="0">
-  <tbody>
-    <tr>
-      <td> Member</td>
-      <td> Description</td>
-      <td> Supported in version</td>
-    </tr>
-    <tr>
-      <td><b>void include(string scriptPath*</b>);</td>
-      <td> Imports the external scripts given as the arguments. Paths
-of the scripts to be imported can be given using a comma separated list
-as arguments. Imported script files need to be placed in the <a
- 
href="http://www.wso2.org/wiki/display/mashup/scripts+folder+structure+and+deployment";>service.resources
-directory </a> of the mashup service. If the path represents a file it
-should be given relative to the service.resources directory. If a file
-is not found at this location, the path is treated as an URL. The URL
-can be given relative to the services context root (eg: <a
- href="http://127.0.0.1:7762/services";>http://127.0.0.1:7762/services</a>)
-or it can also be an absolute URL to a JavaScript file. <br clear="all">
-&nbsp;&nbsp;&nbsp; <em>system.include("include.js");</em>&nbsp; <br
- clear="all">
-&nbsp;&nbsp;&nbsp; <em>system.include("version?stub&amp;lang=e4x",
-"lib2.js");</em> <br clear="all">
-&nbsp;&nbsp;&nbsp; system.include("http://tempuri.org/js/temp.js";); <br
- clear="all">
-      </td>
-      <td> 0.1</td>
-    </tr>
-    <tr>
-      <td><b>void wait([optional int time])</b></td>
-      <td> Waits for the execution of the script for the given time in
-milliseconds or waits for 10 milliseconds when the time is not given. <br
- clear="all">
-&nbsp;&nbsp;&nbsp; <em>system.wait();</em> <br clear="all">
-      <em>&nbsp;&nbsp;&nbsp; system.wait(1000);</em> </td>
-      <td> 0.1</td>
-    </tr>
-    <tr>
-      <td><b>readonly property string localHostName;</b> </td>
-      <td> Gets the string defining the hostname of the
-system.&nbsp;&nbsp; <br clear="all">
-&nbsp;&nbsp;&nbsp; <em>var hostname = system.localHostName;</em></td>
-      <td> 0.1</td>
-    </tr>
-    <tr>
-      <td><span style="font-weight: bold;">uuid
-setInterval (<br>
-String javascriptCode/Function javascriptFunctionName, <br>
-timeInterval, <br>
-[optional] Array parameters, <br>
-[optional] Date startTime, <br>
-[optional] Date endtime<br>
-); </span></td>
-      <td>This function allows the scheduling of a JavaScript function
-or a String of Javascript code periodically. There are 2 mandatory
-parameters.<br>
-      <ol>
-        <li>A javascript function (or a javascript expression) and </li>
-        <li>the time interval between two consecutive executions. </li>
-      </ol>
-      <br>
-Optionally one can specify a start time, indicating&nbsp;when to begin
-the function execution (after given number of milliseconds in the
-frequency parameter by default). It is also possible to give a start
-time and an end time.<br>
-      <br>
-The function returns a String UUID, which can be used to refer to this
-function scheduling instance.<br>
-&nbsp; &nbsp; &nbsp;<span style="font-style: italic;">var
-id = system.setInterval('myJavaScriptFunction("I am a parameter
-value");', 2000);<br>
-      <br>
-      </span>For a demonstration of this feature, please refer the <span
- style="font-weight: bold; font-style: italic;">TomatoTube</span>
-sample in your WSO2 Mashup Server distribution.<span
- style="font-style: italic;"></span></td>
-      <td>0.2</td>
-    </tr>
-    <tr>
-      <td style="font-weight: bold;">function void clearInterval(uuid);
-      </td>
-      <td>Removes a JavaScript function scheduled for periodic
-execution using the job uuid.<br>
-&nbsp; &nbsp; &nbsp;<span style="font-style: 
italic;">system.clearInterval(uuid);</span>
-      </td>
-      <td>0.2</td>
-    </tr>
-    <tr>
-      <td style="vertical-align: top;"><span style="font-weight: 
bold;">function
-void notifyMonitor(&nbsp;<br>
-string message, <br>
-      </span><span style="font-weight: bold;">[optional] string 
title</span><br>
-      <span style="font-weight: bold;">[optional] int severity)</span><br>
-      </td>
-      <td style="vertical-align: top;">Sends the user a message via the
-desk tray icon of the monitor. The message string is the only mandatory
-parameter, with the title defaulting to 'Message' and the message
-severity defaulting to 'none'. The options for message severity are 0 -
-Informational, 1 - Error, 2 - Warning and 3 - None.<br>
-&nbsp; &nbsp; &nbsp;<span style="font-style: italic;">system.notifyMonitor("My
-Error Message", "Title", 2);</span> </td>
-      <td style="vertical-align: top;"><br>
-      </td>
-    </tr>
-  </tbody>
-</table>
-<h3>3.0 References</h3>
-<ul>
-  <li><a
- 
href="apidocs/org/wso2/mashup/hostobjects/system/SystemHostObject.html">JavaDoc
-for the system host Object</a></li>
-</ul>
-</div>
-<p>&copy; WSO2 Inc.</p>
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+
+  
+  <meta http-equiv="content-type" content="">
+
+  
+  
+  <title>System Host Object</title>
+  <link href="css/mashup-docs.css" rel="stylesheet" type="text/css" 
media="all">
+</head>
+
+
+<body>
+
+<div id="main-content">
+<h1>System Host Object</h1>
+
+<h3>1.0 Introduction</h3>
+
+<p>A 'system' hosted global object provides a set of system specific
+utility functions. No explicit instantiation is necessary.</p>
+
+<h3>1.1 Example</h3>
+
+<div class="code">
+<pre>system.include("concatscript.js");<br>function add(first, last) {<br>     
print(system.localHostName);<br>        //waits for 1 second<br>        
system.wait(1000);<br>  // concat is a function in the included concatscript.js 
javascript<br>  return concat(first,last);<br>}</pre>
+
+</div>
+
+<h3>2.0 System Object</h3>
+
+<h3>2.1 System Object Interface</h3>
+
+<p>{<br>
+
+&nbsp;&nbsp;&nbsp; function void include(string[] scriptPath);<br>
+
+&nbsp;&nbsp;&nbsp; function void wait([optional int time]);<br>
+
+&nbsp;&nbsp;&nbsp; readonly property string localHostName;<br>
+
+&nbsp; &nbsp; function uuid setInterval(<span style="font-family: verdana; 
font-weight: normal;">String
+javascriptCode/Function javascriptFunctionName</span><span style="font-weight: 
normal;">, timeInterval, [optional]
+Array parameters, [optional] Date startTime, [optional] Date endtime);<br>
+
+&nbsp; &nbsp; function void clearInterval(String uuid);</span><br>
+
+}</p>
+
+<h3>2.2 API Documentation&nbsp;</h3>
+
+<table class="MsoTableGrid" style="margin-left: 0.5in; border-collapse: 
collapse;" border="1" cellpadding="5" cellspacing="0">
+
+  <tbody>
+
+    <tr>
+
+      <td> Member</td>
+
+      <td> Description</td>
+
+      <td> Supported in version</td>
+
+    </tr>
+
+    <tr>
+
+      <td><b>void include(string scriptPath*</b>);</td>
+
+      <td> Imports the external scripts given as the arguments. Paths
+of the scripts to be imported can be given using a comma separated list
+as arguments. Imported script files need to be placed in the <a 
href="http://www.wso2.org/wiki/display/mashup/scripts+folder+structure+and+deployment";>service.resources
+directory </a> of the mashup service. If the path represents a file it
+should be given relative to the service.resources directory. If a file
+is not found at this location, the path is treated as an URL. The URL
+can be given relative to the services context root (eg: <a 
href="http://127.0.0.1:7762/services";>http://127.0.0.1:7762/services</a>)
+or it can also be an absolute URL to a JavaScript file. <br clear="all">
+
+&nbsp;&nbsp;&nbsp; <em>system.include("include.js");</em>&nbsp; <br 
clear="all">
+
+&nbsp;&nbsp;&nbsp; <em>system.include("system/version?stub&amp;lang=e4x",
+"lib2.js");</em> <br clear="all">
+
+&nbsp;&nbsp;&nbsp; system.include("http://tempuri.org/js/temp.js";); <br 
clear="all">
+
+      </td>
+
+      <td> 0.1</td>
+
+    </tr>
+
+    <tr>
+
+      <td><b>void wait([optional int time])</b></td>
+
+      <td> Waits for the execution of the script for the given time in
+milliseconds or waits for 10 milliseconds when the time is not given. <br 
clear="all">
+
+&nbsp;&nbsp;&nbsp; <em>system.wait();</em> <br clear="all">
+
+      <em>&nbsp;&nbsp;&nbsp; system.wait(1000);</em> </td>
+
+      <td> 0.1</td>
+
+    </tr>
+
+    <tr>
+
+      <td><b>readonly property string localHostName;</b> </td>
+
+      <td> Gets the string defining the hostname of the
+system.&nbsp;&nbsp; <br clear="all">
+
+&nbsp;&nbsp;&nbsp; <em>var hostname = system.localHostName;</em></td>
+
+      <td> 0.1</td>
+
+    </tr>
+
+    <tr>
+
+      <td><span style="font-weight: bold;">uuid
+setInterval (<br>
+
+String javascriptCode/Function javascriptFunctionName, <br>
+
+timeInterval, <br>
+
+[optional] Array parameters, <br>
+
+[optional] Date startTime, <br>
+
+[optional] Date endtime<br>
+
+); </span></td>
+
+      <td>This function allows the scheduling of a JavaScript function
+or a String of Javascript code periodically. There are 2 mandatory
+parameters.<br>
+
+      
+      <ol>
+
+        <li>A javascript function (or a javascript expression) and </li>
+
+        <li>the time interval between two consecutive executions. </li>
+
+      
+      </ol>
+
+      <br>
+
+Optionally one can specify a start time, indicating&nbsp;when to begin
+the function execution (after given number of milliseconds in the
+frequency parameter by default). It is also possible to give a start
+time and an end time.<br>
+
+      <br>
+
+The function returns a String UUID, which can be used to refer to this
+function scheduling instance.<br>
+
+&nbsp; &nbsp; &nbsp;<span style="font-style: italic;">var
+id = system.setInterval('myJavaScriptFunction("I am a parameter
+value");', 2000);<br>
+
+      <br>
+
+      </span>For a demonstration of this feature, please refer the <span 
style="font-weight: bold; font-style: italic;">TomatoTube</span>
+sample in your WSO2 Mashup Server distribution.<span style="font-style: 
italic;"></span></td>
+
+      <td>0.2</td>
+
+    </tr>
+
+    <tr>
+
+      <td style="font-weight: bold;">function void clearInterval(uuid);
+      </td>
+
+      <td>Removes a JavaScript function scheduled for periodic
+execution using the job uuid.<br>
+
+&nbsp; &nbsp; &nbsp;<span style="font-style: 
italic;">system.clearInterval(uuid);</span>
+      </td>
+
+      <td>0.2</td>
+
+    </tr>
+
+    <tr>
+
+      <td style="vertical-align: top;"><span style="font-weight: 
bold;">function
+void notifyMonitor(&nbsp;<br>
+
+string message, <br>
+
+      </span><span style="font-weight: bold;">[optional] string 
title</span><br>
+
+      <span style="font-weight: bold;">[optional] int severity)</span><br>
+
+      </td>
+
+      <td style="vertical-align: top;">Sends the user a message via the
+desk tray icon of the monitor. The message string is the only mandatory
+parameter, with the title defaulting to 'Message' and the message
+severity defaulting to 'none'. The options for message severity are 0 -
+Informational, 1 - Error, 2 - Warning and 3 - None.<br>
+
+&nbsp; &nbsp; &nbsp;<span style="font-style: italic;">system.notifyMonitor("My
+Error Message", "Title", 2);</span> </td>
+
+      <td style="vertical-align: top;"><br>
+
+      </td>
+
+    </tr>
+
+  
+  </tbody>
+</table>
+
+<h3>3.0 References</h3>
+
+<ul>
+
+  <li><a 
href="apidocs/org/wso2/mashup/hostobjects/system/SystemHostObject.html">JavaDoc
+for the system host Object</a></li>
+
+</ul>
+
+</div>
+
+<p>� WSO2 Inc.</p>
+
+</body>
+</html>

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to