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.IncomingDatagramMessage;
20 import org.fourthline.cling.model.message.header.UDNHeader;
21 import org.fourthline.cling.model.message.header.UpnpHeader;
22 import org.fourthline.cling.model.meta.LocalDevice;
23
24
25
26
27 public class OutgoingSearchResponseUDN extends OutgoingSearchResponse {
28
29 public OutgoingSearchResponseUDN(IncomingDatagramMessage request,
30 Location location,
31 LocalDevice device) {
32 super(request, location, device);
33
34 getHeaders().add(UpnpHeader.Type.ST, new UDNHeader(device.getIdentity().getUdn()));
35 getHeaders().add(UpnpHeader.Type.USN, new UDNHeader(device.getIdentity().getUdn()));
36 }
37 }