public class ExecServiceMethodDescription extends ServiceMethodDescription
| Constructor and Description |
|---|
ExecServiceMethodDescription(String name,
String description)
A new service method with the given name and description.
|
| Modifier and Type | Method and Description |
|---|---|
ExecServiceMethodDescription |
command(String command)
Add a command for the script.
|
ServiceMethod |
createServiceMethod(ServiceDescription serviceDescription)
Creates a service method with the given description.
|
ExecServiceMethodDescription |
queryResult(String name,
String description)
Adds a result for the script; cannot have multiple query results.
|
addArgument, addResultpublic ExecServiceMethodDescription queryResult(String name, String description)
name - the result name; can't be nulldescription - the result description; can't be nullpublic ExecServiceMethodDescription command(String command)
command - the shell command; can't be nullpublic ServiceMethod createServiceMethod(ServiceDescription serviceDescription)
ServiceMethodDescriptionA client should implement this to return their service method implementation.
createServiceMethod in class ServiceMethodDescriptionserviceDescription - service description for the new service methodCopyright © 2015. All rights reserved.