First part of onap rename
[appc.git] / appc-client / client-lib / src / main / java / org / openecomp / appc / client / impl / protocol / ProtocolMessage.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017 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  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25 package org.onap.appc.client.impl.protocol;
26
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.databind.JsonNode;
29
30 class ProtocolMessage {
31
32     private String version;
33     private String type;
34     private String rpcName;
35     private String correlationID; // correlation-id
36     private String partition; // cambria.partition
37     private JsonNode body;
38
39     @JsonProperty
40     String getVersion() {
41         return version;
42     }
43
44     @JsonProperty
45     void setVersion(String version) {
46         this.version = version;
47     }
48
49     @JsonProperty
50     String getType() {
51         return type;
52     }
53
54     @JsonProperty
55      void setType(String type) {
56         this.type = type;
57     }
58
59     @JsonProperty("rpc-name")
60      String getRpcName() {
61         return rpcName;
62     }
63
64     @JsonProperty("rpc-name")
65      void setRpcName(String rpcName) {
66         this.rpcName = rpcName;
67     }
68
69     @JsonProperty("correlation-id")
70      String getCorrelationID() {
71         return correlationID;
72     }
73
74     @JsonProperty("correlation-id")
75      void setCorrelationID(String correlationID) {
76         this.correlationID = correlationID;
77     }
78
79     @JsonProperty("cambria.partition")
80      String getPartition() {
81         return partition;
82     }
83
84     @JsonProperty("cambria.partition")
85      void setPartition(String partition) {
86         this.partition = partition;
87     }
88
89     @JsonProperty
90     JsonNode getBody() {
91         return body;
92     }
93
94     @JsonProperty
95      void setBody(JsonNode body) {
96         this.body = body;
97     }
98 }