Skip to content

Package: GenericRequestChannel

GenericRequestChannel

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 2020 Eurotech and/or its affiliates and others
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License v1.0
6: * which accompanies this distribution, and is available at
7: * http://www.eclipse.org/legal/epl-v10.html
8: *
9: * Contributors:
10: * Eurotech - initial API and implementation
11: *******************************************************************************/
12: package org.eclipse.kapua.service.device.management.request.message.request;
13:
14: import org.eclipse.kapua.service.device.management.message.request.KapuaRequestChannel;
15: import org.eclipse.kapua.service.device.management.request.GenericRequestXmlRegistry;
16:
17: import javax.xml.bind.annotation.XmlElement;
18: import javax.xml.bind.annotation.XmlElementWrapper;
19: import javax.xml.bind.annotation.XmlType;
20:
21: @XmlType(factoryClass = GenericRequestXmlRegistry.class, factoryMethod = "newRequestChannel")
22: public interface GenericRequestChannel extends KapuaRequestChannel {
23:
24: /**
25: * Get the resources
26: *
27: * @return resources
28: */
29: @XmlElementWrapper(name = "resources")
30: @XmlElement(name = "resource")
31: String[] getResources();
32:
33: /**
34: * Set the resources
35: *
36: * @param resources
37: */
38: void setResources(String[] resources);
39: }