public class SendingRenewal extends SendingSync<OutgoingRenewalRequestMessage,IncomingSubscribeResponseMessage>
This protocol is executed periodically by the local registry, for any established GENA
subscription to a remote service. If renewal failed, the subscription will be removed
from the registry and the
RemoteGENASubscription.end(org.fourthline.cling.model.gena.CancelReason, org.fourthline.cling.model.message.UpnpResponse)
method will be called. The RENEWAL_FAILED reason will be used, however,
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 |
|---|
SendingRenewal(UpnpService upnpService,
RemoteGENASubscription subscription) |
| Modifier and Type | Method and Description |
|---|---|
protected IncomingSubscribeResponseMessage |
executeSync() |
protected void |
onRenewalFailure() |
execute, getInputMessage, getOutputMessage, toStringgetUpnpService, runprotected final RemoteGENASubscription subscription
public SendingRenewal(UpnpService upnpService, RemoteGENASubscription subscription)
protected IncomingSubscribeResponseMessage executeSync() throws RouterException
executeSync in class SendingSync<OutgoingRenewalRequestMessage,IncomingSubscribeResponseMessage>RouterExceptionprotected void onRenewalFailure()
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.