/** * This call creates a new HTTPConduit for the endpoint. It is equivalent * to calling getConduit without an EndpointReferenceType. */ public Conduit getConduit(EndpointInfo endpointInfo, Bus bus) throws IOException { return getConduit(endpointInfo, endpointInfo.getTarget(), bus); }
private void extractWsdlEprs(EndpointInfo endpoint) { //parse the EPR in wsdl List<ExtensibilityElement> portExtensors = endpoint.getExtensors(ExtensibilityElement.class); if (portExtensors != null) { Iterator<ExtensibilityElement> extensionElements = portExtensors.iterator(); QName wsaEpr = new QName(Names.WSA_NAMESPACE_NAME, "EndpointReference"); while (extensionElements.hasNext()) { ExtensibilityElement ext = extensionElements.next(); if (ext instanceof UnknownExtensibilityElement && wsaEpr.equals(ext.getElementType())) { DOMSource domSource = new DOMSource(((UnknownExtensibilityElement)ext).getElement()); W3CEndpointReference w3cEPR = new W3CEndpointReference(domSource); EndpointReferenceType ref = ProviderImpl.convertToInternal(w3cEPR); endpoint.getTarget().setMetadata(ref.getMetadata()); endpoint.getTarget().setReferenceParameters(ref.getReferenceParameters()); endpoint.getTarget().getOtherAttributes().putAll(ref.getOtherAttributes()); } } } }
@Override public Conduit getConduit(EndpointInfo endpointInfo, Bus bus) throws IOException { return getConduit(endpointInfo, endpointInfo.getTarget(), bus); }
@Override public Conduit getConduit(EndpointInfo endpointInfo, Bus bus) throws IOException { return getConduit(endpointInfo, endpointInfo.getTarget(), bus); }
/** * This call creates a new HTTPConduit for the endpoint. It is equivalent * to calling getConduit without an EndpointReferenceType. */ public Conduit getConduit(EndpointInfo endpointInfo, Bus bus) throws IOException { return getConduit(endpointInfo, endpointInfo.getTarget(), bus); }
@Override public Conduit getConduit(EndpointInfo endpointInfo, Bus bus) throws IOException { return getConduit(endpointInfo, endpointInfo.getTarget(), bus); }
/** * This call creates a new HTTPConduit for the endpoint. It is equivalent * to calling getConduit without an EndpointReferenceType. */ public Conduit getConduit(EndpointInfo endpointInfo) throws IOException { return getConduit(endpointInfo, endpointInfo.getTarget()); }
public Conduit getConduit(EndpointInfo endpointInfo, Bus b) throws IOException { return getConduit(endpointInfo, endpointInfo.getTarget(), b); }
public Conduit getConduit(EndpointInfo endpointInfo, Bus b) throws IOException { return getConduit(endpointInfo, endpointInfo.getTarget(), b); }
public Conduit getConduit(EndpointInfo ei, Bus b) throws IOException { return getConduit(ei, ei.getTarget(), b); }
public Conduit getConduit(EndpointInfo ei, Bus b) throws IOException { return getConduit(ei, ei.getTarget(), b); }
public Conduit getConduit(EndpointInfo endpointInfo, Bus b) throws IOException { return getConduit(endpointInfo, endpointInfo.getTarget(), b); }
private void extractWsdlEprs(EndpointInfo endpoint) { //parse the EPR in wsdl List<ExtensibilityElement> portExtensors = endpoint.getExtensors(ExtensibilityElement.class); if (portExtensors != null) { Iterator<ExtensibilityElement> extensionElements = portExtensors.iterator(); QName wsaEpr = new QName(Names.WSA_NAMESPACE_NAME, "EndpointReference"); while (extensionElements.hasNext()) { ExtensibilityElement ext = extensionElements.next(); if (ext instanceof UnknownExtensibilityElement && wsaEpr.equals(ext.getElementType())) { DOMSource domSource = new DOMSource(((UnknownExtensibilityElement)ext).getElement()); W3CEndpointReference w3cEPR = new W3CEndpointReference(domSource); EndpointReferenceType ref = ProviderImpl.convertToInternal(w3cEPR); endpoint.getTarget().setMetadata(ref.getMetadata()); endpoint.getTarget().setReferenceParameters(ref.getReferenceParameters()); endpoint.getTarget().getOtherAttributes().putAll(ref.getOtherAttributes()); } } } }
/** * @return a conduit for the given endpoint info. */ public Conduit getConduit(EndpointInfo endpointInfo) throws IOException { return getConduit(getModeType(endpointInfo), disableResponse(endpointInfo), endpointInfo.getTarget()); }
/** * @return a conduit for the given endpoint info. */ public Conduit getConduit(EndpointInfo endpointInfo) throws IOException { return getConduit(getModeType(endpointInfo), disableResponse(endpointInfo), endpointInfo.getTarget()); }
@Override public synchronized Conduit selectConduit(Message message) { Conduit conduit = null; EndpointInfo endpointInfo = endpoint.getEndpointInfo(); EndpointReferenceType original = endpointInfo.getTarget(); try { if (null != address) { endpointInfo.setAddress(address); } conduit = super.selectConduit(message); } finally { endpointInfo.setAddress(original); } conduits.clear(); return conduit; } };
@Override public synchronized Conduit selectConduit(Message message) { Conduit conduit = null; EndpointInfo endpointInfo = getEndpoint().getEndpointInfo(); EndpointReferenceType original = endpointInfo.getTarget(); try { if (null != address) { endpointInfo.setAddress(address); } conduit = super.selectConduit(message); } finally { endpointInfo.setAddress(original); } return conduit; } };
/** * Creates an endpoint reference by duplicating the endpoint reference of a given server. * @param server * @param address * @param props * @return */ private static EndpointReferenceType createEPR(Server server, String address, SLProperties props) { EndpointReferenceType sourceEPR = server.getEndpoint().getEndpointInfo().getTarget(); EndpointReferenceType targetEPR = WSAEndpointReferenceUtils.duplicate(sourceEPR); WSAEndpointReferenceUtils.setAddress(targetEPR, address); if (props != null) { addProperties(targetEPR, props); } return targetEPR; }
/** * Creates an endpoint reference by duplicating the endpoint reference of a given server. * @param server * @param address * @param props * @return */ private static EndpointReferenceType createEPR(Server server, String address, SLProperties props) { EndpointReferenceType sourceEPR = server.getEndpoint().getEndpointInfo().getTarget(); EndpointReferenceType targetEPR = WSAEndpointReferenceUtils.duplicate(sourceEPR); WSAEndpointReferenceUtils.setAddress(targetEPR, address); if (props != null) { addProperties(targetEPR, props); } return targetEPR; }