1 17 package org.apache.servicemix.jbi.servicedesc; 18 19 import javax.xml.namespace.QName ; 20 21 import org.w3c.dom.DocumentFragment ; 22 23 27 public class LinkedEndpoint extends AbstractServiceEndpoint { 28 29 32 private static final long serialVersionUID = 4615848436197469611L; 33 34 private final QName fromService; 35 private final String fromEndpoint; 36 private final QName toService; 37 private final String toEndpoint; 38 private final String linkType; 39 40 public LinkedEndpoint(QName fromService, 41 String fromEndpoint, 42 QName toService, 43 String toEndpoint, 44 String linkType) { 45 super(null); 46 this.fromService = fromService; 47 this.fromEndpoint = fromEndpoint; 48 this.toService = toService; 49 this.toEndpoint = toEndpoint; 50 this.linkType = linkType; 51 } 52 53 56 public DocumentFragment getAsReference(QName operationName) { 57 return EndpointReferenceBuilder.getReference(this); 58 } 59 60 63 public String getEndpointName() { 64 return this.fromEndpoint; 65 } 66 67 70 public QName [] getInterfaces() { 71 return null; 72 } 73 74 77 public QName getServiceName() { 78 return this.fromService; 79 } 80 81 85 public String getLinkType() { 86 return linkType; 87 } 88 89 93 public String getToEndpoint() { 94 return toEndpoint; 95 } 96 97 101 public QName getToService() { 102 return toService; 103 } 104 105 } 106 | Popular Tags |