c9d0f9c28f81642e33384c47655718daeb29ffdc
[aai/rest-client.git] / src / main / java / org / openecomp / restclient / client / OperationResult.java
1 /**\r
2  * ============LICENSE_START=======================================================\r
3  * RestClient\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
12  *\r
13  *    http://www.apache.org/licenses/LICENSE-2.0\r
14  *\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
21  *\r
22  * ECOMP and OpenECOMP are trademarks\r
23  * and service marks of AT&T Intellectual Property.\r
24  */\r
25 package org.openecomp.restclient.client;\r
26 \r
27 import javax.ws.rs.core.MultivaluedMap;\r
28 \r
29 public class OperationResult {\r
30 \r
31   private String result;\r
32   private String failureCause;\r
33   private int resultCode;\r
34   private MultivaluedMap<String, String> headers;\r
35 \r
36   /**\r
37    * Get the HTTP headers of the response.\r
38    *\r
39    * @return the HTTP headers of the response.\r
40    */\r
41   public MultivaluedMap<String, String> getHeaders() {\r
42     return headers;\r
43   }\r
44 \r
45   public void setHeaders(MultivaluedMap<String, String> headers) {\r
46     this.headers = headers;\r
47   }\r
48 \r
49 \r
50   public String getResult() {\r
51     return result;\r
52   }\r
53 \r
54   public void setResult(String result) {\r
55     this.result = result;\r
56   }\r
57 \r
58   public int getResultCode() {\r
59     return resultCode;\r
60   }\r
61 \r
62   public String getFailureCause() {\r
63     return failureCause;\r
64   }\r
65 \r
66   public void setFailureCause(String failureCause) {\r
67     this.failureCause = failureCause;\r
68   }\r
69 \r
70   public void setResultCode(int resultCode) {\r
71     this.resultCode = resultCode;\r
72   }\r
73 \r
74   public OperationResult() {\r
75     super();\r
76   }\r
77 \r
78   @Override\r
79   public String toString() {\r
80     return "OperationResult [result=" + result + ", resultCode=" + resultCode + "]";\r
81   }\r
82 \r
83 }\r