public final class InvocationContext extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addHttpResource(String relativePath,
String mimeType,
String[] parameters,
InputStream content)
HTTP resource to be available during execution.
|
String |
invoke()
Invokes the associated method.
|
String |
invoke(int[] time)
Invokes the associated method.
|
void |
setArguments(String... args)
Arguments to pass to the invoked method.
|
void |
setHtmlFragment(String html)
An HTML fragment to be available for the execution.
|
String |
toString()
Obtains textual result of the invocation.
|
public void setHtmlFragment(String html)
Launcher.createBrowser(java.lang.String).html - the html fragmentpublic void setArguments(String... args)
args - textual arguments to pass to the methodpublic void addHttpResource(String relativePath, String mimeType, String[] parameters, InputStream content)
public String invoke() throws IOException
IOException - if execution failspublic String invoke(int[] time) throws IOException
time - one element array to store the length of the invocation
- can be nullIOException - if execution failsCopyright © 2019 API Design. All Rights Reserved.