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