2 * ============LICENSE_START=======================================================
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 * ============LICENSE_END=========================================================
25 package org.onap.appc.client.impl.protocol;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.databind.JsonNode;
30 class ProtocolMessage {
32 private String version;
34 private String rpcName;
35 private String correlationID; // correlation-id
36 private String partition; // cambria.partition
37 private JsonNode body;
45 void setVersion(String version) {
46 this.version = version;
55 void setType(String type) {
59 @JsonProperty("rpc-name")
64 @JsonProperty("rpc-name")
65 void setRpcName(String rpcName) {
66 this.rpcName = rpcName;
69 @JsonProperty("correlation-id")
70 String getCorrelationID() {
74 @JsonProperty("correlation-id")
75 void setCorrelationID(String correlationID) {
76 this.correlationID = correlationID;
79 @JsonProperty("cambria.partition")
80 String getPartition() {
84 @JsonProperty("cambria.partition")
85 void setPartition(String partition) {
86 this.partition = partition;
95 void setBody(JsonNode body) {