2 * ============LICENSE_START=======================================================
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
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 * ============LICENSE_END=========================================================
24 package org.onap.appc.client.impl.protocol;
26 import com.fasterxml.jackson.annotation.JsonProperty;
27 import com.fasterxml.jackson.databind.JsonNode;
29 class ProtocolMessage {
31 private String version;
33 private String rpcName;
34 private String correlationID; // correlation-id
35 private String partition; // cambria.partition
36 private JsonNode body;
44 void setVersion(String version) {
45 this.version = version;
54 void setType(String type) {
58 @JsonProperty("rpc-name")
63 @JsonProperty("rpc-name")
64 void setRpcName(String rpcName) {
65 this.rpcName = rpcName;
68 @JsonProperty("correlation-id")
69 String getCorrelationID() {
73 @JsonProperty("correlation-id")
74 void setCorrelationID(String correlationID) {
75 this.correlationID = correlationID;
78 @JsonProperty("cambria.partition")
79 String getPartition() {
83 @JsonProperty("cambria.partition")
84 void setPartition(String partition) {
85 this.partition = partition;
94 void setBody(JsonNode body) {