Implement reconnection and ping-pong between cloud services. Make
[iotivity.git] / cloud / interface / src / main / java / org / iotivity / cloud / ciserver / Constants.java
1 /*
2  * //******************************************************************
3  * //
4  * // Copyright 2016 Samsung Electronics All Rights Reserved.
5  * //
6  * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7  * //
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
11  * //
12  * //      http://www.apache.org/licenses/LICENSE-2.0
13  * //
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.
19  * //
20  * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21  */
22 package org.iotivity.cloud.ciserver;
23
24 import org.iotivity.cloud.base.OICConstants;
25
26 public class Constants extends OICConstants {
27     public static final int    DEFAULT_COAP_PORT               = 5683;
28     public static final int    DEFAULT_RESOURCE_DIRECTORY_PORT = 5684;
29     public static final int    DEFAULT_ACCOUNT_SERVER_PORT     = 5685;
30     public static final int    DEFAULT_MESSAGE_QUEUE_PORT      = 5686;
31     public static final int    DEFAULT_HC_PROXY_PORT           = 80;
32     public static final int    DEFAULT_WEBSOCKET_PORT          = 8000;
33
34     public static final int    MIN_TO_LIVE                     = 10;
35
36     public static final String USER_ID                         = "uid";
37     public static final String DEVICE_ID                       = "di";
38     public static final String PRESENCE_STATE                  = "state";
39
40     public static final String REQ_LOGIN                       = "login";
41
42     public static final String ACCESS_TOKEN                    = "accesstoken";
43     public static final String REFRESH_TOKEN                   = "refreshtoken";
44     public static final String AUTH_CODE                       = "authcode";
45     public static final String AUTH_PROVIDER                   = "authprovider";
46     public static final String EXPIRES_IN                      = "expiresin";
47
48     public static final String REQ_GROUP_MASTER_ID             = "gmid";
49     public static final String REQ_MEMBER_ID                   = "mid";
50     public static final String REQ_MEMBER_LIST                 = "members";
51     public static final String REQ_DEVICE_ID                   = "di";
52     public static final String REQ_DEVICE_ROUTE                = "route";
53     public static final String REQ_DEVICE_LIST                 = "devices";
54     public static final String REQ_INVITE                      = "invite";
55     public static final String REQ_PING_ARRAY                  = "inarray";
56     public static final String REQ_PING                        = "in";
57     public static final String REQ_SEARCH_USER_ID              = "sid";
58     public static final String REQ_REQUEST_METHOD              = "rm";
59     public static final String REQ_REQUEST_URI                 = "uri";
60
61     public static final String REQ_GROUP_DEVICES               = "devices";
62
63     public static final String RESP_GRANT_POLICY               = "gp";
64     public static final String RESP_ACL_ALLOWED                = "Allowed";
65     public static final String RESP_ACL_DENIED                 = "Denied";
66
67     public static final String REQ_LINKS                       = "links";
68     public static final String REQ_HREF                        = "href";
69     public static final String REQ_CRL                         = "crl";
70 }