HPSearch

cgl.hpsearch.shell.flow
Class WSProxyResource

java.lang.Object
  extended byorg.mozilla.javascript.ScriptableObject
      extended bycgl.hpsearch.shell.flow.WSProxyResource
All Implemented Interfaces:
Resource, Scriptable, Serializable

public class WSProxyResource
extends ScriptableObject
implements Resource

Created: Apr 26, 2004

Author:
Harshawardhan Gadgil (hgadgil@grids.ucs.indiana.edu)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
DONTENUM, EMPTY, parent, PERMANENT, prototype, READONLY
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
WSProxyResource()
           
 
Method Summary
 String getClassName()
           
 RequestSpecification getRequestSpec()
          Builds a RequestSpecification for this WSProxyResource
 String getResourceID()
           
static Scriptable jsConstructor(Context cx, Object[] args, Function ctorObj, boolean inNewExpr)
          Constructor used in Java Script.
static String jsFunction_getServiceDescription(Context _cx, Scriptable thisObj, Object[] id, Function funObj)
          Marshal the WebServiceParams object into XML and return it.
static void jsFunction_setErrorHandler(Context _cx, Scriptable thisObj, Object[] id, Function funObj)
          Set service error handling.
static void jsFunction_setInput(Context _cx, Scriptable thisObj, Object[] id, Function funObj)
          Set Service i/p streams
static void jsFunction_setOutput(Context _cx, Scriptable thisObj, Object[] id, Function funObj)
          Set service o/p streams
static void jsFunction_setParameter(Context _cx, Scriptable thisObj, Object[] id, Function funObj)
          Set service parameters
 void usage()
           
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
callMethod, defineClass, defineClass, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, getAllIds, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, has, has, hasInstance, hasProperty, hasProperty, isSealed, put, put, putProperty, putProperty, sealObject, setAttributes, setAttributes, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSProxyResource

public WSProxyResource()
Method Detail

jsFunction_setInput

public static void jsFunction_setInput(Context _cx,
                                       Scriptable thisObj,
                                       Object[] id,
                                       Function funObj)
Set Service i/p streams

Parameters:
_cx -
thisObj -
id -
funObj -

jsFunction_setOutput

public static void jsFunction_setOutput(Context _cx,
                                        Scriptable thisObj,
                                        Object[] id,
                                        Function funObj)
Set service o/p streams

Parameters:
_cx -
thisObj -
id -
funObj -

jsFunction_setParameter

public static void jsFunction_setParameter(Context _cx,
                                           Scriptable thisObj,
                                           Object[] id,
                                           Function funObj)
Set service parameters

Parameters:
_cx -
thisObj -
id -
funObj -

jsFunction_setErrorHandler

public static void jsFunction_setErrorHandler(Context _cx,
                                              Scriptable thisObj,
                                              Object[] id,
                                              Function funObj)
Set service error handling. Catchable exceptions and corresponding actions

Parameters:
_cx -
thisObj -
id -
funObj -

jsConstructor

public static Scriptable jsConstructor(Context cx,
                                       Object[] args,
                                       Function ctorObj,
                                       boolean inNewExpr)
Constructor used in Java Script. Pass in the URI of the Webservice's WSDL

Parameters:
cx -
args -
ctorObj -
inNewExpr -

getClassName

public String getClassName()
Specified by:
getClassName in interface Scriptable

jsFunction_getServiceDescription

public static String jsFunction_getServiceDescription(Context _cx,
                                                      Scriptable thisObj,
                                                      Object[] id,
                                                      Function funObj)
Marshal the WebServiceParams object into XML and return it. This XML 'll then be sent to the orchestrating engines for execution

Returns:
marshalled XML

getRequestSpec

public RequestSpecification getRequestSpec()
Builds a RequestSpecification for this WSProxyResource

Specified by:
getRequestSpec in interface Resource
Returns:
The RequestSpecification for this WSProxyResource

usage

public void usage()
Specified by:
usage in interface Resource

getResourceID

public String getResourceID()
Specified by:
getResourceID in interface Resource

HPSearch

For comments and suggestions please send e-mail to Harshawardhan Gadgil
Last updated: June 9 2006