Skip to content

Package: KuraResponseChannel

KuraResponseChannel

nameinstructionbranchcomplexitylinemethod
KuraResponseChannel(String, String, String)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getParts()
M: 15 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
getReplyPart()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getRequestId()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setReplyPart(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setRequestId(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.device.call.message.kura.app.response;
14:
15: import org.eclipse.kapua.service.device.call.message.app.response.DeviceResponseChannel;
16: import org.eclipse.kapua.service.device.call.message.kura.app.KuraAppChannel;
17:
18: import java.util.List;
19:
20: /**
21: * {@link DeviceResponseChannel} {@link org.eclipse.kapua.service.device.call.kura.Kura} implementation.
22: *
23: * @since 1.0.0
24: */
25: public class KuraResponseChannel extends KuraAppChannel implements DeviceResponseChannel {
26:
27: /**
28: * The reply token.
29: *
30: * @since 1.0.0
31: */
32: private String replyPart;
33:
34: /**
35: * The request id.
36: *
37: * @since 1.0.0
38: */
39: private String requestId;
40:
41: /**
42: * Constructor.
43: *
44: * @param messageClassification The message classification.
45: * @param scopeNamespace The scope namespace.
46: * @param clientId The clientId.
47: * @see org.eclipse.kapua.service.device.call.message.DeviceChannel
48: * @since 1.0.0
49: */
50: public KuraResponseChannel(String messageClassification, String scopeNamespace, String clientId) {
51: super(messageClassification, scopeNamespace, clientId);
52: }
53:
54: @Override
55: public String getReplyPart() {
56: return replyPart;
57: }
58:
59: @Override
60: public void setReplyPart(String replyPart) {
61: this.replyPart = replyPart;
62: }
63:
64: @Override
65: public String getRequestId() {
66: return requestId;
67: }
68:
69: @Override
70: public void setRequestId(String requestId) {
71: this.requestId = requestId;
72: }
73:
74: @Override
75: public List<String> getParts() {
76: List<String> parts = super.getParts();
77: parts.add(getReplyPart());
78: parts.add(getRequestId());
79: return parts;
80: }
81: }