diff options
author | Ganesh Chandrasekaran <ganesh.c@samsung.com> | 2018-08-30 17:55:34 +0900 |
---|---|---|
committer | Takamune Cho <tc012c@att.com> | 2018-09-05 17:52:13 +0000 |
commit | 726d7d621d21215e3822a31fbbc8a6091d7697ea (patch) | |
tree | 01c4fc9df944d2540ea4045a5788e576f567bf24 /appc-core | |
parent | 875d836aeff308645ce59daf0ca59b77e0f13940 (diff) |
refactor restAdaptor and add test for HTTP-PUT
Issue-ID: APPC-1181
Change-Id: Ibd70b03db906343c5e9c27439e2da541a54672e2
Signed-off-by: Ganesh Chandrasekaran <ganesh.c@samsung.com>
Diffstat (limited to 'appc-core')
-rw-r--r-- | appc-core/appc-common-bundle/src/main/java/org/onap/appc/Constants.java | 20 |
1 files changed, 20 insertions, 0 deletions
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 */ |