public static final class ActionCallback.Default extends ActionCallback
ActionInvocation.ActionCallback.DefaultactionInvocation, 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, toStringpublic Default(ActionInvocation actionInvocation, ControlPoint controlPoint)
public void success(ActionInvocation invocation)
ActionCallbacksuccess in class ActionCallbackinvocation - The successful invocation, call its getOutput() method for results.public void failure(ActionInvocation invocation, UpnpResponse operation, String defaultMsg)
ActionCallbackfailure in class ActionCallbackinvocation - 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.jupnp.model.action.ActionInvocation, org.jupnp.model.message.UpnpResponse)Copyright © 2023 jUPnP.org. All rights reserved.