getUpnpService().getConfiguration().getGenaEventProcessor().readBody(requestMessage);
public SendingEvent(UpnpService upnpService, LocalGENASubscription subscription) { super(upnpService, null); // Special case, we actually need to send several messages to each callback URL // TODO: Ugly design! It is critical (concurrency) that we prepare the event messages here, in the constructor thread! subscriptionId = subscription.getSubscriptionId(); requestMessages = new OutgoingEventRequestMessage[subscription.getCallbackURLs().size()]; int i = 0; for (URL url : subscription.getCallbackURLs()) { requestMessages[i] = new OutgoingEventRequestMessage(subscription, url); getUpnpService().getConfiguration().getGenaEventProcessor().writeBody(requestMessages[i]); i++; } currentSequence = subscription.getCurrentSequence(); // Always increment sequence now, as (its value) has already been set on the headers and the // next event will use the incremented value subscription.incrementSequence(); }
public SendingEvent(UpnpService upnpService, LocalGENASubscription subscription) { super(upnpService, null); // Special case, we actually need to send several messages to each callback URL // TODO: Ugly design! It is critical (concurrency) that we prepare the event messages here, in the constructor thread! subscriptionId = subscription.getSubscriptionId(); requestMessages = new OutgoingEventRequestMessage[subscription.getCallbackURLs().size()]; int i = 0; for (URL url : subscription.getCallbackURLs()) { requestMessages[i] = new OutgoingEventRequestMessage(subscription, url); getUpnpService().getConfiguration().getGenaEventProcessor().writeBody(requestMessages[i]); i++; } currentSequence = subscription.getCurrentSequence(); // Always increment sequence now, as (its value) has already been set on the headers and the // next event will use the incremented value subscription.incrementSequence(); }
getUpnpService().getConfiguration().getGenaEventProcessor().readBody(requestMessage);
public SendingEvent(UpnpService upnpService, LocalGENASubscription subscription) { super(upnpService, null); // Special case, we actually need to send several messages to each callback URL // TODO: Ugly design! It is critical (concurrency) that we prepare the event messages here, in the constructor thread! subscriptionId = subscription.getSubscriptionId(); requestMessages = new OutgoingEventRequestMessage[subscription.getCallbackURLs().size()]; int i = 0; for (URL url : subscription.getCallbackURLs()) { requestMessages[i] = new OutgoingEventRequestMessage(subscription, url); getUpnpService().getConfiguration().getGenaEventProcessor().writeBody(requestMessages[i]); i++; } currentSequence = subscription.getCurrentSequence(); // Always increment sequence now, as (its value) has already been set on the headers and the // next event will use the incremented value subscription.incrementSequence(); }
getUpnpService().getConfiguration().getGenaEventProcessor().readBody(requestMessage);