Changing the license and trademark
[aai/rest-client.git] / src / main / java / org / openecomp / restclient / logging / RestClientMsgs.java
1 /**\r
2  * ============LICENSE_START=======================================================\r
3  * org.onap.aai\r
4  * ================================================================================\r
5  * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
6  * Copyright © 2017 Amdocs\r
7  * ================================================================================\r
8  * Licensed under the Apache License, Version 2.0 (the "License");\r
9  * you may not use this file except in compliance with the License.\r
10  * You may obtain a copy of the License at\r
11  *\r
12  *       http://www.apache.org/licenses/LICENSE-2.0\r
13  *\r
14  * Unless required by applicable law or agreed to in writing, software\r
15  * distributed under the License is distributed on an "AS IS" BASIS,\r
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
17  * See the License for the specific language governing permissions and\r
18  * limitations under the License.\r
19  * ============LICENSE_END=========================================================\r
20  *\r
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
22  */\r
23 package org.openecomp.restclient.logging;\r
24 \r
25 import com.att.eelf.i18n.EELFResourceManager;\r
26 import org.openecomp.cl.eelf.LogMessageEnum;\r
27 \r
28 public enum RestClientMsgs implements LogMessageEnum {\r
29 \r
30   /**\r
31    * Arguments: \r
32    *    {0} = HTTP operation \r
33    *    {1} = URL\r
34    */\r
35   HTTP_REQUEST,\r
36 \r
37   /**\r
38    * Arguments: \r
39    *    {0} = HTTP operation \r
40    *    {1} = URL \r
41    *    {2} = Attempt count.\r
42    */\r
43   HTTP_REQUEST_WITH_RETRIES,\r
44 \r
45   /**\r
46    * Arguments: \r
47    *    {0} = HTTP operation \r
48    *    {1} - URL \r
49    *    {2} - Operation time in ms.\r
50    */\r
51   HTTP_REQUEST_TIME,\r
52 \r
53   /**\r
54    * Arguments: \r
55    *    {0} = HTTP operation \r
56    *    {1} - URL \r
57    *    {2} - Operation time in ms. \r
58    *    {3} - Retry count.\r
59    */\r
60   HTTP_REQUEST_TIME_WITH_RETRIES,\r
61 \r
62   /**\r
63    * Arguments: \r
64    *    {0} = HTTP operation \r
65    *    {1} - URL \r
66    *    {2} - Error message.\r
67    */\r
68   HTTP_REQUEST_INTERRUPTED,\r
69 \r
70   /**\r
71    * Arguments: \r
72    *    {0} = HTTP operation \r
73    *    {1} - URL \r
74    *    {2} - Error message.\r
75    */\r
76   HTTP_REQUEST_ERROR,\r
77 \r
78   /**\r
79    * . Arguments: \r
80    *    {0} = Target URL\r
81    */\r
82   HEALTH_CHECK_ATTEMPT,\r
83 \r
84   /**\r
85    * . Arguments: \r
86    *    {0} = Target URL\r
87    */\r
88   HEALTH_CHECK_SUCCESS,\r
89 \r
90   /**\r
91    * . Arguments: \r
92    *    {0} = Target URL \r
93    *    {1} = failure cause\r
94    */\r
95   HEALTH_CHECK_FAILURE,\r
96 \r
97 \r
98   /**\r
99    * . Arguments: \r
100    *    {0} = URL \r
101    *    {1} - Response code\r
102    */\r
103   HTTP_RESPONSE,\r
104 \r
105   /**\r
106    * . Arguments: \r
107    *     {0} = failure cause\r
108    */\r
109   CLIENT_INITIALIZATION_FAILURE;\r
110 \r
111   /**\r
112    * Static initializer to ensure the resource bundles for this class are loaded...\r
113    */\r
114   static {\r
115     EELFResourceManager.loadMessageBundle("logging/RESTClientMsgs");\r
116   }\r
117 }\r