|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocap.hn.upnp.common.UPnPResponse
org.ocap.hn.upnp.common.UPnPActionResponse
public class UPnPActionResponse
The class represents a response to a successfully completed
UPnP action. It carries only the OUT arguments from the
action. Instances of this class are constructed by the
UPnPActionHandler on a UPnP server, and are
passed to a client in the UPnPActionResponseHandler.
UPnPActionHandler.notifyActionReceived(UPnPActionInvocation),
UPnPActionResponseHandler.notifyUPnPActionResponse(UPnPResponse)| Constructor Summary | |
|---|---|
UPnPActionResponse(String[] argVals,
UPnPActionInvocation actionInvocation)
Constructs a UPnPActionResponse that conforms to
the OUT argument requirements of its associated UPnPAction. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.ocap.hn.upnp.common.UPnPResponse |
|---|
getActionInvocation, getHTTPResponseCode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||