public interface UPnPAction
Modifier and Type | Method and Description |
---|---|
String[] |
getInputArgumentNames()
Lists all input arguments for this action.
|
String |
getName()
Returns the action name.
|
String[] |
getOutputArgumentNames()
List all output arguments for this action.
|
String |
getReturnArgumentName()
Returns the name of the designated return argument.
|
UPnPStateVariable |
getStateVariable(String argumentName)
Finds the state variable associated with an argument name.
|
Dictionary<String,Object> |
invoke(Dictionary<String,Object> args)
Invokes the action.
|
String getName()
name
field in the
actionList
of the service description.
X_
nor A_
.X_
.This method must continue to return the action name after the UPnP action has been removed from the network.
String getReturnArgumentName()
One of the output arguments can be flagged as a designated return argument.
This method must continue to return the action return argument name after the UPnP action has been removed from the network.
null
if
none is marked.String[] getInputArgumentNames()
Each action may have zero or more input arguments.
This method must continue to return the action input argument names after the UPnP action has been removed from the network.
null
if no input
arguments.UPnPStateVariable
String[] getOutputArgumentNames()
This method must continue to return the action output argument names after the UPnP action has been removed from the network.
null
if there are no
output arguments.UPnPStateVariable
UPnPStateVariable getStateVariable(String argumentName)
argumentName
- The name of the UPnP action argument.null
if there is no such argument.IllegalStateException
- if the UPnP action has been removed from
the network.UPnPStateVariable
Dictionary<String,Object> invoke(Dictionary<String,Object> args) throws Exception
Dictionary
objects. Each entry in the Dictionary
object has a String
object as key representing the argument name and the value is the
argument itself. The class of an argument value must be assignable from
the class of the associated UPnP state variable.
The input argument Dictionary
object must contain exactly those
arguments listed by getInputArguments
method. The output argument
Dictionary
object will contain exactly those arguments listed by
getOutputArguments
method.args
- A Dictionary
of arguments. Must contain the correct
set and type of arguments for this action. May be null
if
no input arguments exist.Dictionary
with the output arguments. null
if
the action has no output arguments.UPnPException
- A UPnP error has occurred.IllegalStateException
- if the UPnP action has been removed from
the network.Exception
- The execution fails for some reason.UPnPStateVariable
Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0