From 726d7d621d21215e3822a31fbbc8a6091d7697ea Mon Sep 17 00:00:00 2001 From: Ganesh Chandrasekaran Date: Thu, 30 Aug 2018 17:55:34 +0900 Subject: refactor restAdaptor and add test for HTTP-PUT Issue-ID: APPC-1181 Change-Id: Ibd70b03db906343c5e9c27439e2da541a54672e2 Signed-off-by: Ganesh Chandrasekaran --- .../src/main/java/org/onap/appc/Constants.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'appc-core/appc-common-bundle') diff --git a/appc-core/appc-common-bundle/src/main/java/org/onap/appc/Constants.java b/appc-core/appc-common-bundle/src/main/java/org/onap/appc/Constants.java index c1a306a8c..5fab6bb31 100644 --- a/appc-core/appc-common-bundle/src/main/java/org/onap/appc/Constants.java +++ b/appc-core/appc-common-bundle/src/main/java/org/onap/appc/Constants.java @@ -6,6 +6,8 @@ * ================================================================================ * Copyright (C) 2017 Amdocs * ============================================================================= + * Modifications Copyright (C) 2018 Samsung + * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -52,6 +54,24 @@ public final class Constants { @SuppressWarnings("nls") public static final String ATTRIBUTE_ERROR_MESSAGE = "error-message"; + /** + * The name for the error message to be set in the context + */ + @SuppressWarnings("nls") + public static final String CONTEXT_ERROR_MESSAGE = "org.openecomp.rest.result.message"; + + @SuppressWarnings("nls") + public static final String CONTEXT_AGENT_ERROR_MESSAGE = "org.openecomp.rest.agent.result.message"; + + /** + * The name for the error code to be set in the context + */ + @SuppressWarnings("nls") + public static final String CONTEXT_ERROR_CODE = "org.openecomp.rest.result.code"; + + @SuppressWarnings("nls") + public static final String CONTEXT_AGENT_ERROR_CODE = "org.openecomp.rest.agent.result.code"; + /** * The name for the success message attribute to be set in the context */ -- cgit 1.2.3-korg