Renaming openecomp to onap
[aai/rest-client.git] / src / main / java / org / onap / aai / restclient / logging / RestClientMsgs.java
diff --git a/src/main/java/org/onap/aai/restclient/logging/RestClientMsgs.java b/src/main/java/org/onap/aai/restclient/logging/RestClientMsgs.java
new file mode 100644 (file)
index 0000000..09af107
--- /dev/null
@@ -0,0 +1,117 @@
+/**\r
+ * ============LICENSE_START=======================================================\r
+ * org.onap.aai\r
+ * ================================================================================\r
+ * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
+ * Copyright © 2017 Amdocs\r
+ * ================================================================================\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *       http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ============LICENSE_END=========================================================\r
+ *\r
+ * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
+ */\r
+package org.onap.aai.restclient.logging;\r
+\r
+import com.att.eelf.i18n.EELFResourceManager;\r
+import org.openecomp.cl.eelf.LogMessageEnum;\r
+\r
+public enum RestClientMsgs implements LogMessageEnum {\r
+\r
+  /**\r
+   * Arguments: \r
+   *    {0} = HTTP operation \r
+   *    {1} = URL\r
+   */\r
+  HTTP_REQUEST,\r
+\r
+  /**\r
+   * Arguments: \r
+   *    {0} = HTTP operation \r
+   *    {1} = URL \r
+   *    {2} = Attempt count.\r
+   */\r
+  HTTP_REQUEST_WITH_RETRIES,\r
+\r
+  /**\r
+   * Arguments: \r
+   *    {0} = HTTP operation \r
+   *    {1} - URL \r
+   *    {2} - Operation time in ms.\r
+   */\r
+  HTTP_REQUEST_TIME,\r
+\r
+  /**\r
+   * Arguments: \r
+   *    {0} = HTTP operation \r
+   *    {1} - URL \r
+   *    {2} - Operation time in ms. \r
+   *    {3} - Retry count.\r
+   */\r
+  HTTP_REQUEST_TIME_WITH_RETRIES,\r
+\r
+  /**\r
+   * Arguments: \r
+   *    {0} = HTTP operation \r
+   *    {1} - URL \r
+   *    {2} - Error message.\r
+   */\r
+  HTTP_REQUEST_INTERRUPTED,\r
+\r
+  /**\r
+   * Arguments: \r
+   *    {0} = HTTP operation \r
+   *    {1} - URL \r
+   *    {2} - Error message.\r
+   */\r
+  HTTP_REQUEST_ERROR,\r
+\r
+  /**\r
+   * . Arguments: \r
+   *    {0} = Target URL\r
+   */\r
+  HEALTH_CHECK_ATTEMPT,\r
+\r
+  /**\r
+   * . Arguments: \r
+   *    {0} = Target URL\r
+   */\r
+  HEALTH_CHECK_SUCCESS,\r
+\r
+  /**\r
+   * . Arguments: \r
+   *    {0} = Target URL \r
+   *    {1} = failure cause\r
+   */\r
+  HEALTH_CHECK_FAILURE,\r
+\r
+\r
+  /**\r
+   * . Arguments: \r
+   *    {0} = URL \r
+   *    {1} - Response code\r
+   */\r
+  HTTP_RESPONSE,\r
+\r
+  /**\r
+   * . Arguments: \r
+   *     {0} = failure cause\r
+   */\r
+  CLIENT_INITIALIZATION_FAILURE;\r
+\r
+  /**\r
+   * Static initializer to ensure the resource bundles for this class are loaded...\r
+   */\r
+  static {\r
+    EELFResourceManager.loadMessageBundle("logging/RESTClientMsgs");\r
+  }\r
+}\r