public class SendingUnsubscribe extends SendingSync<OutgoingUnsubscribeRequestMessage,StreamResponseMessage>
Calls the RemoteGENASubscription.end(org.jupnp.model.gena.CancelReason, org.jupnp.model.message.UpnpResponse)
method if the subscription request was responded to correctly. No CancelReason
will be provided if the unsubscribe procedure completed as expected, otherwise UNSUBSCRIBE_FAILED
is used. The response might be null if no response was received from the remote host.
| Modifier and Type | Field and Description |
|---|---|
protected RemoteGENASubscription |
subscription |
outputMessage| Constructor and Description |
|---|
SendingUnsubscribe(UpnpService upnpService,
RemoteGENASubscription subscription) |
| Modifier and Type | Method and Description |
|---|---|
protected StreamResponseMessage |
executeSync() |
protected void |
onUnsubscribe(StreamResponseMessage response) |
execute, getInputMessage, getOutputMessage, toStringgetUpnpService, runprotected final RemoteGENASubscription subscription
public SendingUnsubscribe(UpnpService upnpService, RemoteGENASubscription subscription)
protected StreamResponseMessage executeSync() throws RouterException
executeSync in class SendingSync<OutgoingUnsubscribeRequestMessage,StreamResponseMessage>RouterExceptionprotected void onUnsubscribe(StreamResponseMessage response)
Copyright © 2023 jUPnP.org. All rights reserved.