Skip to content

Package: EndpointInfoCreator

EndpointInfoCreator

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.endpoint;
14:
15: import org.eclipse.kapua.model.KapuaEntityCreator;
16:
17: import javax.xml.bind.annotation.XmlAccessType;
18: import javax.xml.bind.annotation.XmlAccessorType;
19: import javax.xml.bind.annotation.XmlRootElement;
20: import javax.xml.bind.annotation.XmlType;
21: import java.util.Set;
22:
23: /**
24: * {@link EndpointInfo} creator definition.<br>
25: * It is used to create a new {@link EndpointInfo}.
26: *
27: * @since 1.0.0
28: */
29: @XmlRootElement(name = "endpointInfoCreator")
30: @XmlAccessorType(XmlAccessType.PROPERTY)
31: @XmlType(factoryClass = EndpointInfoXmlRegistry.class, factoryMethod = "newCreator")
32: public interface EndpointInfoCreator extends KapuaEntityCreator<EndpointInfo> {
33:
34: String getSchema();
35:
36: void setSchema(String schema);
37:
38: String getDns();
39:
40: void setDns(String dns);
41:
42: int getPort();
43:
44: void setPort(int port);
45:
46: boolean getSecure();
47:
48: void setSecure(boolean secure);
49:
50: Set<EndpointUsage> getUsages();
51:
52: void setUsages(Set<EndpointUsage> usages);
53:
54: String getEndpointType();
55:
56: void setEndpointType(String endpointType);
57:
58: }