Skip to content

Package: EndChainEndPoint

EndChainEndPoint

nameinstructionbranchcomplexitylinemethod
EndChainEndPoint()
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%
getEndPoint(Exchange, Object, String, Map)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
matches(Exchange, Object, String, Map)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
toLog(StringBuffer, String)
M: 5 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.broker.core.router;
14:
15: import java.util.Map;
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.XmlTransient;
21: import javax.xml.bind.annotation.XmlType;
22:
23: import org.apache.camel.Exchange;
24:
25: @XmlRootElement(name = "endChainEndPoint")
26: @XmlAccessorType(XmlAccessType.PROPERTY)
27: @XmlType(propOrder = {
28: })
29: public class EndChainEndPoint implements EndPoint {
30:
31: @Override
32: @XmlTransient
33: public boolean matches(Exchange exchange, Object value, String previous, Map<String, Object> properties) {
34: return true;
35: }
36:
37: @Override
38: @XmlTransient
39: public String getEndPoint(Exchange exchange, Object value, String previous, Map<String, Object> properties) {
40: return null;
41: }
42:
43: @Override
44: public void toLog(StringBuffer buffer, String prefix) {
45: buffer.append("End chain");
46: }
47:
48: }