public abstract class AbstractRequest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<RQLObjectBuilder> |
_objectBuilders |
protected java.lang.String |
_project |
protected java.lang.String |
_robotURL |
| Constructor and Description |
|---|
AbstractRequest() |
| Modifier and Type | Method and Description |
|---|---|
RQLObjectBuilder |
createInputVariable(java.lang.String name)
Creates a new Input Object with the specified name, and returns an
RQLObjectBuilder that can be used to build the object. |
void |
createInputVariable(java.lang.String name,
RQLObject object)
Creates a new Input Object with the specified name, from an RQLObject.
|
abstract RQLResult |
execute()
Executes this request and blocks until the robot has completed or an error occurs.
|
abstract void |
execute(RobotResponseHandler handler)
Executes this request asynchronously and uses the handler to call back with results
and status updates.
|
protected RQLObjects |
getInputObjects()
Returns the currently configured input objects, as a list of
RQLObjects. |
java.lang.String |
getProject()
Get the project for this request
|
java.lang.String |
getRobotURL()
Returns the currently configured
robotURL property. |
AbstractRequest |
setProject(java.lang.String project)
Set the project name that this request.
|
void |
setRobotURL(java.lang.String robotURL)
Returns the currently configured
robotURL property. |
abstract void |
setStopRobotOnApiException(boolean stopOnError)
When set, the robot will be stopped on RoboServer after the first API exception is sent back to the client.
|
protected java.lang.String _robotURL
protected java.util.List<RQLObjectBuilder> _objectBuilders
protected java.lang.String _project
public abstract RQLResult execute() throws RQLException
RQLException - if the execution failspublic abstract void execute(RobotResponseHandler handler) throws RQLException
handler - the response handler to useRQLException - in case the immediate execution failspublic abstract void setStopRobotOnApiException(boolean stopOnError)
stopOnError - true if the robot should stop after the robot generates an API exception, false if you want the robot to continue execution
even id the Robot generates API exceptions. The Default is truepublic java.lang.String getRobotURL()
robotURL property.
The robot URL specifies to RoboServer where to look for the robot to execute. A robot URL can be use a library protocol, which looks like this:
library:/google.robot. When RoboServer receives such a URL, it looks up the robot in the configured library.
robotURL property.public void setRobotURL(java.lang.String robotURL)
robotURL property.
The robot URL specifies to RoboServer where to look for the robot to execute. A robot URL can be use a library protocol, which looks like this:
library:/google.robot. When RoboServer receives such a URL, it looks up the robot in the configured library.
robotURL - the new URL to the robot.public RQLObjectBuilder createInputVariable(java.lang.String name)
RQLObjectBuilder that can be used to build the object.name - the name of the input object.RQLObjectBuilder that can be used to build the object.public void createInputVariable(java.lang.String name,
RQLObject object)
name - the name of the input object.object - the rql objectpublic java.lang.String getProject()
public AbstractRequest setProject(java.lang.String project)
project - the project nameprotected RQLObjects getInputObjects()
RQLObjects.RQLObjects.RoboSuite Java API, v11.4.7880