org.teleal.cling.protocol.sync
Class SendingUnsubscribe
java.lang.Object
org.teleal.cling.protocol.SendingAsync
org.teleal.cling.protocol.SendingSync<OutgoingUnsubscribeRequestMessage,StreamResponseMessage>
org.teleal.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.teleal.cling.model.gena.CancelReason, org.teleal.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 © 2011 Teleal GmbH, Switzerland. All Rights Reserved.