* ============LICENSE_START=======================================================
* ONAP : APPC
* ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
* See the License for the specific language governing permissions and
* limitations under the License.
*
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
* ============LICENSE_END=========================================================
*/
* Returns an ansible object result. The response code is always the http code 200 (i.e connection successful)
* payload is json string as would be sent back by Ansible Server
**/
- public AnsibleResult Post(String agentUrl, String payload) {
+ public AnsibleResult post(String agentUrl, String payload) {
AnsibleResult result = new AnsibleResult();
try {
* payload is json string as would be sent back by Ansible Server
*
**/
- public AnsibleResult Get(String agentUrl) {
+ public AnsibleResult get(String agentUrl) {
Pattern pattern = Pattern.compile(".*?\\?Id=(.*?)&Type.*");
Matcher matcher = pattern.matcher(agentUrl);
return getResult;
}
- private void rejectRequest(AnsibleResult result, String Message) {
+ private void rejectRequest(AnsibleResult result, String message) {
result.setStatusCode(200);
JSONObject response = new JSONObject();
response.put(STATUS_CODE, AnsibleResultCodes.REJECTED.getValue());
- response.put(STATUS_MESSAGE, Message);
+ response.put(STATUS_MESSAGE, message);
result.setStatusMessage(response.toString());
}