Skip to content

Package: KapuaRequestChannelImpl

KapuaRequestChannelImpl

nameinstructionbranchcomplexitylinemethod
KapuaRequestChannelImpl()
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%
getMethod()
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%
getResource()
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%
setMethod(KapuaMethod)
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%
setResource(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) 2017, 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.management.commons.message.request;
14:
15: import org.eclipse.kapua.service.device.management.commons.message.KapuaAppChannelImpl;
16: import org.eclipse.kapua.service.device.management.message.KapuaMethod;
17: import org.eclipse.kapua.service.device.management.message.request.KapuaRequestChannel;
18:
19: /**
20: * {@link KapuaRequestChannel} implementation.
21: *
22: * @since 1.0.0
23: */
24: public class KapuaRequestChannelImpl extends KapuaAppChannelImpl implements KapuaRequestChannel {
25:
26: private static final long serialVersionUID = -7140990471048488667L;
27:
28: protected KapuaMethod method;
29: protected String resource;
30:
31: @Override
32: public KapuaMethod getMethod() {
33: return method;
34: }
35:
36: @Override
37: public void setMethod(KapuaMethod method) {
38: this.method = method;
39: }
40:
41: @Override
42: public String getResource() {
43: return resource;
44: }
45:
46: @Override
47: public void setResource(String resource) {
48: this.resource = resource;
49: }
50: }