Package: KeystoreRequestMessage
KeystoreRequestMessage
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
KeystoreRequestMessage(Class) |
|
|
|
|
|
||||||||||||||||||||
getRequestClass() |
|
|
|
|
|
Coverage
1: /*******************************************************************************
2: * Copyright (c) 2021, 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.keystore.internal.message.request;
14:
15: import org.eclipse.kapua.message.internal.KapuaMessageImpl;
16: import org.eclipse.kapua.service.device.management.keystore.model.DeviceKeystore;
17: import org.eclipse.kapua.service.device.management.message.request.KapuaRequestMessage;
18:
19: /**
20: * {@link DeviceKeystore} {@code abstract} {@link KapuaRequestMessage} implementation.
21: *
22: * @since 1.5.0
23: */
24: public abstract class KeystoreRequestMessage<M extends KeystoreRequestMessage> extends KapuaMessageImpl<KeystoreRequestChannel, KeystoreRequestPayload>
25: implements KapuaRequestMessage<KeystoreRequestChannel, KeystoreRequestPayload> {
26:
27: private static final long serialVersionUID = 3593350285989405174L;
28:
29: private final Class<M> requestClass;
30:
31: /**
32: * Constructor.
33: *
34: * @param requestClass The {@link KeystoreRequestMessage} sub-type
35: * @since 1.5.0
36: */
37: protected KeystoreRequestMessage(Class<M> requestClass) {
38: this.requestClass = requestClass;
39: }
40:
41: @Override
42: public Class<M> getRequestClass() {
43: return requestClass;
44: }
45: }