for (ServiceInfo si : service.getServiceInfos()) { for (EndpointInfo ei : si.getEndpoints()) { String bindingID = BindingID.getJaxwsBindingID(ei.getTransportId()); addPort(ei.getName(), bindingID, ei.getAddress());
@ManagedAttribute(description = "TransportId Attribute", currencyTimeLimit = 60) public String getTransportId() { return endpoint.getEndpointInfo().getTransportId(); }
/** * Extracts the transportId from a Server. * @param server * @return */ private static String getTransportId(Server server) { return server.getEndpoint().getEndpointInfo().getTransportId(); }
/** * Extracts the transportId from a Server. * @param server * @return */ private static String getTransportId(Server server) { return server.getEndpoint().getEndpointInfo().getTransportId(); }
@ManagedAttribute(description = "TransportId Attribute", currencyTimeLimit = 60) public String getTransportId() { return endpoint.getEndpointInfo().getTransportId(); }
@ManagedAttribute(description = "TransportId Attribute", currencyTimeLimit = 60) public String getTransportId() { return endpoint.getEndpointInfo().getTransportId(); }
@ManagedAttribute(description = "TransportId Attribute", currencyTimeLimit = 60) public String getTransportId() { return endpoint.getEndpointInfo().getTransportId(); }
public static EndpointInfo findBestEndpointInfo(QName qn, List<ServiceInfo> serviceInfos) { for (ServiceInfo serviceInfo : serviceInfos) { Collection<EndpointInfo> eps = serviceInfo.getEndpoints(); for (EndpointInfo ep : eps) { if (ep.getInterface().getName().equals(qn)) { return ep; } } } EndpointInfo best = null; for (ServiceInfo serviceInfo : serviceInfos) { Collection<EndpointInfo> eps = serviceInfo.getEndpoints(); for (EndpointInfo ep : eps) { if (best == null) { best = ep; } if ("http://schemas.xmlsoap.org/wsdl/soap/".equals(ep.getTransportId())) { return ep; } } } return best; }
public static EndpointInfo findBestEndpointInfo(QName qn, List<ServiceInfo> serviceInfos) { for (ServiceInfo serviceInfo : serviceInfos) { Collection<EndpointInfo> eps = serviceInfo.getEndpoints(); for (EndpointInfo ep : eps) { if (ep.getInterface().getName().equals(qn)) { return ep; } } } EndpointInfo best = null; for (ServiceInfo serviceInfo : serviceInfos) { Collection<EndpointInfo> eps = serviceInfo.getEndpoints(); for (EndpointInfo ep : eps) { if (best == null) { best = ep; } if ("http://schemas.xmlsoap.org/wsdl/soap/".equals(ep.getTransportId())) { return ep; } } } return best; }
public static EndpointInfo findBestEndpointInfo(QName qn, List<ServiceInfo> serviceInfos) { for (ServiceInfo serviceInfo : serviceInfos) { Collection<EndpointInfo> eps = serviceInfo.getEndpoints(); for (EndpointInfo ep : eps) { if (ep.getInterface().getName().equals(qn)) { return ep; } } } EndpointInfo best = null; for (ServiceInfo serviceInfo : serviceInfos) { Collection<EndpointInfo> eps = serviceInfo.getEndpoints(); for (EndpointInfo ep : eps) { if (best == null) { best = ep; } if (ep.getTransportId().equals("http://schemas.xmlsoap.org/wsdl/soap/")) { return ep; } } } return best; }
public Destination getDestination(EndpointInfo ei, Bus bus) throws IOException { String address = ei.getAddress(); BindingInfo bi = ei.getBinding(); String transId = ei.getTransportId(); if (bi instanceof SoapBindingInfo) { transId = ((SoapBindingInfo)bi).getTransportURI(); if (transId == null) { transId = ei.getTransportId();
public static EndpointInfo findBestEndpointInfo(QName qn, List<ServiceInfo> serviceInfos) { for (ServiceInfo serviceInfo : serviceInfos) { Collection<EndpointInfo> eps = serviceInfo.getEndpoints(); for (EndpointInfo ep : eps) { if (ep.getInterface().getName().equals(qn)) { return ep; } } } EndpointInfo best = null; for (ServiceInfo serviceInfo : serviceInfos) { Collection<EndpointInfo> eps = serviceInfo.getEndpoints(); for (EndpointInfo ep : eps) { if (best == null) { best = ep; } if (ep.getTransportId().equals("http://schemas.xmlsoap.org/wsdl/soap/")) { return ep; } } } return best; }
public Destination getDestination(EndpointInfo ei, Bus bus) throws IOException { String address = ei.getAddress(); BindingInfo bi = ei.getBinding(); String transId = ei.getTransportId(); if (bi instanceof SoapBindingInfo) { transId = ((SoapBindingInfo)bi).getTransportURI(); if (transId == null) { transId = ei.getTransportId();
public Conduit getConduit(EndpointInfo ei, EndpointReferenceType target, Bus bus) throws IOException { String address = target == null ? ei.getAddress() : target.getAddress().getValue(); BindingInfo bi = ei.getBinding(); String transId = ei.getTransportId(); if (bi instanceof SoapBindingInfo) { transId = ((SoapBindingInfo)bi).getTransportURI(); if (transId == null) { transId = ei.getTransportId(); } } ConduitInitiator conduitInit; try { ConduitInitiatorManager mgr = bus.getExtension(ConduitInitiatorManager.class); if (StringUtils.isEmpty(address) || address.startsWith("http") || address.startsWith("jms") || address.startsWith("soap.udp")) { conduitInit = mgr.getConduitInitiator(mapTransportURI(transId, address)); } else { conduitInit = mgr.getConduitInitiatorForUri(address); } if (conduitInit == null) { throw new RuntimeException(String.format(CANNOT_GET_CONDUIT_ERROR, address, transId)); } return conduitInit.getConduit(ei, target, bus); } catch (BusException e) { throw new RuntimeException(String.format(CANNOT_GET_CONDUIT_ERROR, address, transId)); } }
public Conduit getConduit(EndpointInfo ei, EndpointReferenceType target, Bus bus) throws IOException { String address = target == null ? ei.getAddress() : target.getAddress().getValue(); BindingInfo bi = ei.getBinding(); String transId = ei.getTransportId(); if (bi instanceof SoapBindingInfo) { transId = ((SoapBindingInfo)bi).getTransportURI(); if (transId == null) { transId = ei.getTransportId(); } } ConduitInitiator conduitInit; try { ConduitInitiatorManager mgr = bus.getExtension(ConduitInitiatorManager.class); if (StringUtils.isEmpty(address) || address.startsWith("http") || address.startsWith("jms") || address.startsWith("soap.udp")) { conduitInit = mgr.getConduitInitiator(mapTransportURI(transId, address)); } else { conduitInit = mgr.getConduitInitiatorForUri(address); } if (conduitInit == null) { throw new RuntimeException(String.format(CANNOT_GET_CONDUIT_ERROR, address, transId)); } return conduitInit.getConduit(ei, target, bus); } catch (BusException e) { throw new RuntimeException(String.format(CANNOT_GET_CONDUIT_ERROR, address, transId)); } }
.getDestinationFactory(ei.getTransportId());
.getDestinationFactory(ei.getTransportId());
.getDestinationFactory(ei.getTransportId());
buildBindingInfo(si, protocol); EndpointInfo aei = applicationEndpoint.getEndpointInfo(); String transportId = aei.getTransportId(); EndpointInfo ei = new EndpointInfo(si, transportId); if (d != null) {
Exchange exchange = message.getExchange(); EndpointInfo ei = endpoint.getEndpointInfo(); String transportID = ei.getTransportId(); try { ConduitInitiatorManager conduitInitiatorMgr = exchange.getBus()