public class UPnPActionInvocation extends Object
UPnPAction). It is constructed by a
client application and passed to a UPnPService
via the postActionInvocation method in order to
invoke an action on a UPnP server.| Constructor and Description |
|---|
UPnPActionInvocation(String[] argVals,
UPnPAction action)
Constructs a
UPnPActionInvocation that conforms to
the IN argument requirements of its associated UPnPAction. |
| Modifier and Type | Method and Description |
|---|---|
UPnPAction |
getAction()
Gets the
UPnPAction that this UPnPActionInvocation
is associated with. |
String[] |
getArgumentNames()
Gets the argument names specified by this action invocation,
in the order they were specified in the constructor.
|
String |
getArgumentValue(String name)
Gets the value of the specified argument.
|
String |
getName()
Gets the name of the action as specifed by the action name element
in the UPnP service description.
|
public UPnPActionInvocation(String[] argVals, UPnPAction action)
UPnPActionInvocation that conforms to
the IN argument requirements of its associated UPnPAction.
This constructor ensures that the resulting action invocation
provides an argument value, in the proper dataType format,
for each of the IN arguments of the specified UPnP action.
For objects created through this constructor,
getArgumentNames() will report, in order,
the required IN argument names of the specified UPnPAction.
argVals - An array of argument values corresponding,
in order, to the IN arguments of action.action - The UPnP action that this action invocation relates to.IllegalArgumentException - if argVals does not conform
to the IN argument requirements of action.NullPointerException - if action is null,
or argVals or any of its array elements is null.public String getName()
getAction().getName().getAction()public String[] getArgumentNames()
public String getArgumentValue(String name)
name - The name of the argument.IllegalArgumentException - if name does not match one
of the argument names specified for this action invocation.getArgumentNames()public UPnPAction getAction()
UPnPAction that this UPnPActionInvocation
is associated with.UPnPAction that this action invocation is
associated with.Copyright © 2012. All Rights Reserved.