public int compare(AbstractHTTPDestination o1, AbstractHTTPDestination o2) { InterfaceInfo i1 = o1.getEndpointInfo().getInterface(); InterfaceInfo i2 = o2.getEndpointInfo().getInterface(); if (i1 == null && i2 == null) { return 0; } else if (i1 == null) { return -1; } else if (i2 == null) { return 1; } else { return i1.getName().getLocalPart() .compareTo( i2.getName().getLocalPart()); } } });
private AbstractDestination[] getRestEndpoints(AbstractDestination[] destinations, List<String> privateEndpoints) { List<AbstractDestination> restfulDests = new ArrayList<>(); for (AbstractDestination sd : destinations) { // use some more reasonable check - though this one seems to be the only option at the moment if (null == sd.getEndpointInfo().getInterface() && !isPrivate(sd.getEndpointInfo(), privateEndpoints)) { restfulDests.add(sd); } } return restfulDests.toArray(new AbstractDestination[0]); }
private AbstractDestination[] getSOAPEndpoints(AbstractDestination[] destinations, List<String> privateEndpoints) { List<AbstractDestination> soapEndpoints = new ArrayList<>(); for (AbstractDestination sd : destinations) { if (null != sd.getEndpointInfo().getName() && null != sd.getEndpointInfo().getInterface() && !isPrivate(sd.getEndpointInfo(), privateEndpoints)) { soapEndpoints.add(sd); } } return soapEndpoints.toArray(new AbstractDestination[0]); }
private void writerSoapEndpoint(PrintWriter writer, String basePath, AbstractDestination sd) { String absoluteURL = getAbsoluteAddress(basePath, sd); if (absoluteURL == null) { return; } writer.write("<tr><td>"); writer.write("<span class=\"porttypename\">" + sd.getEndpointInfo().getInterface().getName().getLocalPart() + "</span>"); writer.write("<ul>"); for (OperationInfo oi : sd.getEndpointInfo().getInterface().getOperations()) { if (!Boolean.TRUE.equals(oi.getProperty("operation.is.synthetic"))) { writer.write("<li>" + oi.getName().getLocalPart() + "</li>"); } } writer.write("</ul>"); writer.write("</td><td>"); writer.write("<span class=\"field\">Endpoint address:</span> " + "<span class=\"value\">" + absoluteURL + "</span>"); writer.write("<br/><span class=\"field\">WSDL :</span> " + "<a href=\"" + absoluteURL + "?wsdl\">" + sd.getEndpointInfo().getService().getName() + "</a>"); writer.write("<br/><span class=\"field\">Target namespace:</span> " + "<span class=\"value\">" + sd.getEndpointInfo().getService().getTargetNamespace() + "</span>"); addAtomLinkIfNeeded(absoluteURL, atomMap, writer); writer.write("</td></tr>"); }
private AbstractDestination[] getRestEndpoints(AbstractDestination[] destinations, List<String> privateEndpoints) { List<AbstractDestination> restfulDests = new ArrayList<AbstractDestination>(); for (AbstractDestination sd : destinations) { // use some more reasonable check - though this one seems to be the only option at the moment if (null == sd.getEndpointInfo().getInterface() && !isPrivate(sd.getEndpointInfo(), privateEndpoints)) { restfulDests.add(sd); } } return restfulDests.toArray(new AbstractDestination[restfulDests.size()]); }
private AbstractDestination[] getRestEndpoints(AbstractDestination[] destinations, List<String> privateEndpoints) { List<AbstractDestination> restfulDests = new ArrayList<>(); for (AbstractDestination sd : destinations) { // use some more reasonable check - though this one seems to be the only option at the moment if (null == sd.getEndpointInfo().getInterface() && !isPrivate(sd.getEndpointInfo(), privateEndpoints)) { restfulDests.add(sd); } } return restfulDests.toArray(new AbstractDestination[0]); }
public int compare(AbstractHTTPDestination o1, AbstractHTTPDestination o2) { InterfaceInfo i1 = o1.getEndpointInfo().getInterface(); InterfaceInfo i2 = o2.getEndpointInfo().getInterface(); if (i1 == null && i2 == null) { return 0; } else if (i1 == null) { return -1; } else if (i2 == null) { return 1; } else { return i1.getName().getLocalPart() .compareTo( i2.getName().getLocalPart()); } } });
public int compare(AbstractHTTPDestination o1, AbstractHTTPDestination o2) { InterfaceInfo i1 = o1.getEndpointInfo().getInterface(); InterfaceInfo i2 = o2.getEndpointInfo().getInterface(); if (i1 == null && i2 == null) { return 0; } else if (i1 == null) { return -1; } else if (i2 == null) { return 1; } else { return i1.getName().getLocalPart() .compareTo( i2.getName().getLocalPart()); } } });
private AbstractDestination[] getSOAPEndpoints(AbstractDestination[] destinations, List<String> privateEndpoints) { List<AbstractDestination> soapEndpoints = new ArrayList<>(); for (AbstractDestination sd : destinations) { if (null != sd.getEndpointInfo().getName() && null != sd.getEndpointInfo().getInterface() && !isPrivate(sd.getEndpointInfo(), privateEndpoints)) { soapEndpoints.add(sd); } } return soapEndpoints.toArray(new AbstractDestination[0]); }
private AbstractDestination[] getSOAPEndpoints(AbstractDestination[] destinations, List<String> privateEndpoints) { List<AbstractDestination> soapEndpoints = new ArrayList<AbstractDestination>(); for (AbstractDestination sd : destinations) { if (null != sd.getEndpointInfo().getName() && null != sd.getEndpointInfo().getInterface() && !isPrivate(sd.getEndpointInfo(), privateEndpoints)) { soapEndpoints.add(sd); } } return soapEndpoints.toArray(new AbstractDestination[soapEndpoints.size()]); }
public static QName getServiceQName(EndpointInfo ei) { InterfaceInfo ii = ei.getInterface(); if (ii != null) { return ii.getName(); } else if (ei.getService() != null) { return ei.getService().getName(); } else { return ei.getName(); } } }
public static QName getServiceQName(EndpointInfo ei) { InterfaceInfo ii = ei.getInterface(); if (ii != null) { return ii.getName(); } else if (ei.getService() != null) { return ei.getService().getName(); } else { return ei.getName(); } } }
public static QName getServiceQName(EndpointInfo ei) { InterfaceInfo ii = ei.getInterface(); if (ii != null) { return ii.getName(); } else if (ei.getService() != null) { return ei.getService().getName(); } else { return ei.getName(); } } }
public static QName getServiceQName(EndpointInfo ei) { InterfaceInfo ii = ei.getInterface(); if (ii != null) { return ii.getName(); } else if (ei.getService() != null) { return ei.getService().getName(); } else { return ei.getName(); } } }
public Destination getDestination(EndpointInfo ei) throws IOException { JBIDestination destination = new JBIDestination(ei, JBIDispatcherUtil.getInstance(this, getDeliveryChannel()), getDeliveryChannel()); Configurer configurer = bus.getExtension(Configurer.class); if (null != configurer) { configurer.configureBean(destination); } try { putDestination(ei.getService().getName().toString() + ei.getInterface().getName().toString(), destination); } catch (JBIException e) { throw new IOException(e.getMessage()); } return destination; }
/** * The effective policy for a WSDL endpoint policy subject includes the element policy of the * wsdl11:port element that defines the endpoint merged with the element policy of the * referenced wsdl11:binding element and the element policy of the referenced wsdl11:portType * element that defines the interface of the endpoint. * * @param ei the EndpointInfo object identifying the endpoint * @return the effective policy */ public Policy getEffectivePolicy(EndpointInfo ei, Message m) { Policy p = getElementPolicy(ei); p = mergePolicies(p, getElementPolicy(ei.getBinding())); p = mergePolicies(p, getElementPolicy(ei.getInterface(), true)); return p; }
/** * The effective policy for a WSDL endpoint policy subject includes the element policy of the * wsdl11:port element that defines the endpoint merged with the element policy of the * referenced wsdl11:binding element and the element policy of the referenced wsdl11:portType * element that defines the interface of the endpoint. * * @param ei the EndpointInfo object identifying the endpoint * @return the effective policy */ public Policy getEffectivePolicy(EndpointInfo ei, Message m) { Policy p = getElementPolicy(ei); p = mergePolicies(p, getElementPolicy(ei.getBinding())); p = mergePolicies(p, getElementPolicy(ei.getInterface(), true)); return p; }
protected InterfaceInfo getInterfaceInfo() { if (getEndpointInfo() != null) { return getEndpointInfo().getInterface(); } QName qn = this.getInterfaceName(); for (ServiceInfo si : getService().getServiceInfos()) { if (qn.equals(si.getInterface().getName())) { return si.getInterface(); } } throw new ServiceConstructionException(new Message("COULD_NOT_FIND_PORTTYPE", LOG, qn)); }
protected InterfaceInfo getInterfaceInfo() { if (getEndpointInfo() != null) { return getEndpointInfo().getInterface(); } QName qn = this.getInterfaceName(); for (ServiceInfo si : getService().getServiceInfos()) { if (qn.equals(si.getInterface().getName())) { return si.getInterface(); } } throw new ServiceConstructionException(new Message("COULD_NOT_FIND_PORTTYPE", LOG, qn)); }
protected InterfaceInfo getInterfaceInfo() { if (getEndpointInfo() != null) { return getEndpointInfo().getInterface(); } QName qn = this.getInterfaceName(); for (ServiceInfo si : getService().getServiceInfos()) { if (qn.equals(si.getInterface().getName())) { return si.getInterface(); } } throw new ServiceConstructionException(new Message("COULD_NOT_FIND_PORTTYPE", LOG, qn)); }