2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright © 2017 AT&T Intellectual Property.
\r
6 * Copyright © 2017 Amdocs
\r
7 * All rights reserved.
\r
8 * ================================================================================
\r
9 * Licensed under the Apache License, Version 2.0 (the "License");
\r
10 * you may not use this file except in compliance with the License.
\r
11 * You may obtain a copy of the License at
\r
13 * http://www.apache.org/licenses/LICENSE-2.0
\r
15 * Unless required by applicable law or agreed to in writing, software
\r
16 * distributed under the License is distributed on an "AS IS" BASIS,
\r
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
18 * See the License for the specific language governing permissions and
\r
19 * limitations under the License.
\r
20 * ============LICENSE_END=========================================================
\r
22 * ECOMP and OpenECOMP are trademarks
\r
23 * and service marks of AT&T Intellectual Property.
\r
25 package org.openecomp.restclient.client;
\r
27 import javax.ws.rs.core.MultivaluedMap;
\r
29 public class OperationResult {
\r
31 private String result;
\r
32 private String failureCause;
\r
33 private int resultCode;
\r
34 private MultivaluedMap<String, String> headers;
\r
37 * Get the HTTP headers of the response.
\r
39 * @return the HTTP headers of the response.
\r
41 public MultivaluedMap<String, String> getHeaders() {
\r
45 public void setHeaders(MultivaluedMap<String, String> headers) {
\r
46 this.headers = headers;
\r
50 public String getResult() {
\r
54 public void setResult(String result) {
\r
55 this.result = result;
\r
58 public int getResultCode() {
\r
62 public String getFailureCause() {
\r
63 return failureCause;
\r
66 public void setFailureCause(String failureCause) {
\r
67 this.failureCause = failureCause;
\r
70 public void setResultCode(int resultCode) {
\r
71 this.resultCode = resultCode;
\r
74 public OperationResult() {
\r
79 public String toString() {
\r
80 return "OperationResult [result=" + result + ", resultCode=" + resultCode + "]";
\r