public class SendingUnsubscribe extends SendingSync<OutgoingUnsubscribeRequestMessage,StreamResponseMessage>
Calls the RemoteGENASubscription.end(org.fourthline.cling.model.gena.CancelReason, org.fourthline.cling.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, toString
getUpnpService, run
protected final RemoteGENASubscription subscription
public SendingUnsubscribe(UpnpService upnpService, RemoteGENASubscription subscription)
protected StreamResponseMessage executeSync() throws RouterException
executeSync
in class SendingSync<OutgoingUnsubscribeRequestMessage,StreamResponseMessage>
RouterException
protected void onUnsubscribe(StreamResponseMessage response)
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.