2 * //******************************************************************
4 * // Copyright 2016 Samsung Electronics All Rights Reserved.
6 * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
8 * // Licensed under the Apache License, Version 2.0 (the "License");
9 * // you may not use this file except in compliance with the License.
10 * // You may obtain a copy of the License at
12 * // http://www.apache.org/licenses/LICENSE-2.0
14 * // Unless required by applicable law or agreed to in writing, software
15 * // distributed under the License is distributed on an "AS IS" BASIS,
16 * // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * // See the License for the specific language governing permissions and
18 * // limitations under the License.
20 * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
22 package org.iotivity.cloud.rdserver;
24 import java.util.Arrays;
25 import java.util.List;
27 import org.iotivity.cloud.base.OICConstants;
29 public class Constants extends OICConstants {
31 public static final String RD_DB_NAME = "RD_DB";
32 public static final String RD_TABLE = "RD_TABLE";
33 public static final String PRESENCE_TABLE = "PRESENCE_TABLE";
35 public static final String DEVICE_NAME = "n";
36 public static final String DEVICE_ID = "di";
37 public static final String POLICY = "p";
38 public static final String BITMAP = "bm";
39 public static final String INS = "ins";
40 public static final String DEVICE_TTL = "lt";
41 public static final String RESOURCE_TTL = "ttl";
42 public static final String HREF = "href";
43 public static final String RESOURCE_TYPE = "rt";
44 public static final String INTERFACE = "if";
45 public static final String REL = "rel";
46 public static final String TITLE = "title";
47 public static final String ANCHOR = "anchor";
48 public static final String MEDIA_TYPE = "type";
49 public static final String LINKS = "links";
50 public static final String RESOURCE_TYPE_RDPUBLISH = "oic.wk.rdpub";
51 public static final List<String> TAGS = Arrays
52 .asList(DEVICE_NAME, DEVICE_ID, DEVICE_TTL);
54 public static final String SEARCH_TYPE = "st";
55 public static final String SEARCH_TYPE_DEVICE_LIST = "didList";
56 public static final String DEVICE_LIST_KEY = "devices";
58 // for '/oic/prs' resource
59 public static final String PRESENCE_STATE = "state";
60 public static final String PRESENCE_LIST = "prslist";
62 public static final String RS_NON = "non";
63 public static final String RS_TRIGGER = "trg";
65 public static final long OBSERVE_REGISTER = 0;
66 public static final long OBSERVE_DEREGISTER = 1;
68 public static final byte RES_CREATE = 0;
69 public static final byte RES_CHANGE = 1;
70 public static final byte RES_DELETE = 2;