Scripting Interfaces: Flow Related Objects
WSProxyResource:
Synopsis
Used to control a WSProxy service. Allows user to specify the processing element,
input and output stream and service specific parameters.
E.g.
filterService = "cgl.GIS.services.DataFilter";
filterServiceLoc = "http://gf7.ucs.indiana.edu:4700/axis/services/WSSConnector?wsdl";
filterServiceHandler = new WSProxyResource(filterService, filterServiceLoc);
filterServiceHandler.setInput("http://gf8.ucs.indiana.edu:7474/wfs/results.txt");
filterServiceHandler.setOutput("niotcp://localhost:3045/filteredData");
filterServiceHandler.setParameter("Magnitude", MinimumMagnitude);
API
-
WSProxyResource (String service, String serviceLocation)
Creates a new WSProxyResource for the specified service whose
service description (WSDL) may be accessed at the location serviceLocation
E.g.
filterServiceHandler = new WSProxyResource(filterService, filterServiceLoc);
-
setInput (String inputStreamURI)
Specifies the input to the service. The URI is accessed using internal API.
Possible values are topics, files, sockets, web addresses.
Multiple inputstreams can be specified using one call of setInput for each input.
E.g.
filterServiceHandler.setInput("http://gf8.ucs.indiana.edu:7474/wfs/results.txt");
-
setOutput (String outputStreamURI)
Specifies where the output from the service is to sent. The URI is accessed using internal API.
Possible values are topics, files, sockets, web addresses
Multiple outputstreams can be specified using one call of setOutput for each output.
E.g.
filterServiceHandler.setOutput("niotcp://localhost:3045/filteredData");
-
setParameter (String param, String value)
Specifies the parameters as name-value pairs. Multiple parameters can be specified using one call
of setParameter for each parameter.
E.g.
filterServiceHandler.setParameter("Magnitude", MinimumMagnitude);
Status: Implemented
(back to Notes)