org.fourthline.cling.protocol.sync
Class SendingUnsubscribe
java.lang.Object
org.fourthline.cling.protocol.SendingAsync
org.fourthline.cling.protocol.SendingSync<OutgoingUnsubscribeRequestMessage,StreamResponseMessage>
org.fourthline.cling.protocol.sync.SendingUnsubscribe
- All Implemented Interfaces:
- Runnable
public class SendingUnsubscribe
- extends SendingSync<OutgoingUnsubscribeRequestMessage,StreamResponseMessage>
Disconnecting a GENA event subscription with a remote host.
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.
- Author:
- Christian Bauer
subscription
protected final RemoteGENASubscription subscription
SendingUnsubscribe
public SendingUnsubscribe(UpnpService upnpService,
RemoteGENASubscription subscription)
executeSync
protected StreamResponseMessage executeSync()
- Specified by:
executeSync
in class SendingSync<OutgoingUnsubscribeRequestMessage,StreamResponseMessage>
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.