1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.fourthline.cling.model.message.discovery;
17
18 import org.fourthline.cling.model.Location;
19 import org.fourthline.cling.model.message.header.UDNHeader;
20 import org.fourthline.cling.model.message.header.UpnpHeader;
21 import org.fourthline.cling.model.meta.LocalDevice;
22 import org.fourthline.cling.model.types.NotificationSubtype;
23
24
25
26
27 public class OutgoingNotificationRequestUDN extends OutgoingNotificationRequest {
28
29 public OutgoingNotificationRequestUDN(Location location, LocalDevice device, NotificationSubtype type) {
30 super(location, device, type);
31
32 getHeaders().add(UpnpHeader.Type.NT, new UDNHeader(device.getIdentity().getUdn()));
33 getHeaders().add(UpnpHeader.Type.USN, new UDNHeader(device.getIdentity().getUdn()));
34 }
35
36 }