Update license header in appc client-lib files
[appc.git] / appc-client / client-lib / src / main / java / org / onap / appc / client / impl / protocol / ProtocolMessage.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Copyright (C) 2017 Amdocs
8  * =============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * 
21  * ============LICENSE_END=========================================================
22  */
23
24 package org.onap.appc.client.impl.protocol;
25
26 import com.fasterxml.jackson.annotation.JsonProperty;
27 import com.fasterxml.jackson.databind.JsonNode;
28
29 class ProtocolMessage {
30
31     private String version;
32     private String type;
33     private String rpcName;
34     private String correlationID; // correlation-id
35     private String partition; // cambria.partition
36     private JsonNode body;
37
38     @JsonProperty
39     String getVersion() {
40         return version;
41     }
42
43     @JsonProperty
44     void setVersion(String version) {
45         this.version = version;
46     }
47
48     @JsonProperty
49     String getType() {
50         return type;
51     }
52
53     @JsonProperty
54      void setType(String type) {
55         this.type = type;
56     }
57
58     @JsonProperty("rpc-name")
59      String getRpcName() {
60         return rpcName;
61     }
62
63     @JsonProperty("rpc-name")
64      void setRpcName(String rpcName) {
65         this.rpcName = rpcName;
66     }
67
68     @JsonProperty("correlation-id")
69      String getCorrelationID() {
70         return correlationID;
71     }
72
73     @JsonProperty("correlation-id")
74      void setCorrelationID(String correlationID) {
75         this.correlationID = correlationID;
76     }
77
78     @JsonProperty("cambria.partition")
79      String getPartition() {
80         return partition;
81     }
82
83     @JsonProperty("cambria.partition")
84      void setPartition(String partition) {
85         this.partition = partition;
86     }
87
88     @JsonProperty
89     JsonNode getBody() {
90         return body;
91     }
92
93     @JsonProperty
94      void setBody(JsonNode body) {
95         this.body = body;
96     }
97 }