public class UPnPActionResponse extends UPnPResponse
UPnPActionHandler on a UPnP server, and are
passed to a client in the UPnPActionResponseHandler.| Constructor and Description |
|---|
UPnPActionResponse(String[] argVals,
UPnPActionInvocation actionInvocation)
Constructs a
UPnPActionResponse that conforms to
the OUT argument requirements of its associated UPnPAction. |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getArgumentNames()
Gets the output argument names specified by this action response,
in the order they were specified in the constructor.
|
String |
getArgumentValue(String name)
Gets the value of the specified argument.
|
String[] |
getArgumentValues()
Gets the output argument values specified by this action response,
in the order they were specified in the constructor.
|
getActionInvocation, getHTTPResponseCodepublic UPnPActionResponse(String[] argVals, UPnPActionInvocation actionInvocation)
UPnPActionResponse that conforms to
the OUT argument requirements of its associated UPnPAction.
This constructor ensures that the resulting action response
provides an argument value, in the proper dataType format,
for each of the OUT arguments of the UPnP action reported by
actionInvocation.getAction().
For objects created through this constructor,
getArgumentNames() will report, in order,
the required OUT argument names of the associated UPnP action.
argVals - An array of argument values corresponding,
in order, to the OUT arguments of
actionInvocation.getAction().actionInvocation - The action invocation that this action response
relates to.IllegalArgumentException - if argVals does not conform
to the OUT argument requirements of actionInvocation.getAction().NullPointerException - if action is null,
or argVals or any of its array elements is null.public String[] getArgumentNames()
public String[] getArgumentValues()
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 response.getArgumentNames()Copyright © 2013 CableLabs. All rights reserved.