public static final class ActionCallback.Default extends ActionCallback
ActionInvocation
.ActionCallback.Default
actionInvocation, controlPoint
Constructor and Description |
---|
Default(ActionInvocation actionInvocation,
ControlPoint controlPoint) |
Modifier and Type | Method and Description |
---|---|
void |
failure(ActionInvocation invocation,
UpnpResponse operation,
String defaultMsg)
Called when the action invocation failed.
|
void |
success(ActionInvocation invocation)
Called when the action invocation succeeded.
|
createDefaultFailureMessage, failure, getActionInvocation, getControlPoint, run, setControlPoint, toString
public Default(ActionInvocation actionInvocation, ControlPoint controlPoint)
public void success(ActionInvocation invocation)
ActionCallback
success
in class ActionCallback
invocation
- The successful invocation, call its getOutput()
method for results.public void failure(ActionInvocation invocation, UpnpResponse operation, String defaultMsg)
ActionCallback
failure
in class ActionCallback
invocation
- The failed invocation, call its getFailure()
method for more details.operation
- If the invocation was on a remote service, the response message, otherwise null.defaultMsg
- A user-friendly error message generated from the invocation exception and response.ActionCallback.createDefaultFailureMessage(org.fourthline.cling.model.action.ActionInvocation, org.fourthline.cling.model.message.UpnpResponse)
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.