2 * Copyright 2015 Samsung Electronics All Rights Reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package oic.simulator.clientcontroller.utils;
19 import org.oic.simulator.serviceprovider.AutomationType;
22 * This class maintains all constants which are used throughout the client
25 public class Constants {
26 public static final String FIND_PAGE_TITLE = "Find Resources";
28 public static final String FIND_PAGE_MESSAGE = "Select the resource type of the resources to be discovered";
30 public static final int FIND_RESOURCES_TIMEOUT = 10;
32 public static final String RESOURCE_URI = "Resource URI";
33 public static final String CONNECTIVITY_TYPE = "Connectivity Type";
34 public static final String OBSERVABLE = "Observable";
35 public static final String RESOURCE_TYPES = "Resource Types";
36 public static final String RESOURCE_INTERFACES = "Resource Interfaces";
38 public static final String[] META_PROPERTIES = {
39 RESOURCE_URI, CONNECTIVITY_TYPE, OBSERVABLE, RESOURCE_TYPES,
40 RESOURCE_INTERFACES };
42 public static final int META_PROPERTY_COUNT = META_PROPERTIES.length;
44 public static final AutomationType DEFAULT_AUTOMATION_TYPE = AutomationType.NORMAL;
46 public static final int DEFAULT_AUTOMATION_INTERVAL = 500;
48 public static final String YES = "Yes";
49 public static final String NO = "No";
51 public static final String GET = "Get";
52 public static final String PUT = "Put";
53 public static final String POST = "Post";
55 public static final String ENABLE = "Enable";
56 public static final String DISABLE = "Disable";
57 public static final String ENABLED = "Enabled";
58 public static final String DISABLED = "Disabled";
60 public static final String NOT_AVAILABLE = "Not Available";
62 public static final int PROPER_LOG_TIME_TOKEN_LENGTH = 3;
64 public static final int LOG_SIZE = 1000;
66 public static final String INFO_LOG = "info_log";
67 public static final String WARNING_LOG = "warning_log";
68 public static final String ERROR_LOG = "error_log";
69 public static final String DEBUG_LOG = "debug_log";
70 public static final String UNKNOWN_LOG = "unknown_log";
72 public static final String CHECKED = "Checked";
73 public static final String UNCHECKED = "Unchecked";
75 public static final String INFO = "Info";
76 public static final String WARNING = "Warning";
77 public static final String ERROR = "Error";
78 public static final String DEBUG = "Debug";
79 public static final String UNKNOWN = "Unknown";
81 public static final String[] BROWSE_RAML_FILTER_EXTENSIONS = new String[] {
83 public static final String[] SAVE_LOG_FILTER_EXTENSIONS = new String[] {
86 public static final int GET_AUTOMATION_INDEX = 0;
87 public static final int PUT_AUTOMATION_INDEX = 1;
88 public static final int POST_AUTOMATION_INDEX = 2;
89 public static final int DELETE_AUTOMATION_INDEX = 3;
91 public static final String OIC_R_LIGHT = "oic.r.light";