1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.fourthline.cling.model.message.header;
17
18 import org.fourthline.cling.model.types.NotificationSubtype;
19
20
21
22
23 public class STAllHeader extends UpnpHeader<NotificationSubtype> {
24
25 public STAllHeader() {
26 setValue(NotificationSubtype.ALL);
27 }
28
29 public void setString(String s) throws InvalidHeaderException {
30 if (!s.equals(NotificationSubtype.ALL.getHeaderString())) {
31 throw new InvalidHeaderException("Invalid ST header value (not "+NotificationSubtype.ALL+"): " + s);
32 }
33 }
34
35 public String getString() {
36 return getValue().getHeaderString();
37 }
38
39 }