Search in sources :

Example 6 with AddressType

use of org.apache.cxf.wsdl.http.AddressType in project cxf by apache.

the class LocalTransportFactory method getDestination.

protected LocalDestination getDestination(EndpointInfo ei, EndpointReferenceType reference, Bus bus) throws IOException {
    String addr = reference.getAddress().getValue();
    if (addr == null) {
        AddressType tp = ei.getExtensor(AddressType.class);
        if (tp != null) {
            addr = tp.getLocation();
        }
    }
    if (addr == null) {
        addr = NULL_ADDRESS;
    }
    LocalDestination d = destinations.get(addr);
    if (d == null) {
        d = createDestination(ei, reference, bus);
        LocalDestination tmpD = destinations.putIfAbsent(addr, d);
        if (tmpD != null) {
            d = tmpD;
        }
    }
    return d;
}
Also used : AddressType(org.apache.cxf.wsdl.http.AddressType)

Aggregations

AddressType (org.apache.cxf.wsdl.http.AddressType)6 EndpointInfo (org.apache.cxf.service.model.EndpointInfo)3 Definition (javax.wsdl.Definition)2 Port (javax.wsdl.Port)2 ExtensibilityElement (javax.wsdl.extensions.ExtensibilityElement)2 HTTPAddress (javax.wsdl.extensions.http.HTTPAddress)2 QName (javax.xml.namespace.QName)2 WebService (javax.jws.WebService)1 Binding (javax.wsdl.Binding)1 BindingInput (javax.wsdl.BindingInput)1 BindingOperation (javax.wsdl.BindingOperation)1 Service (javax.wsdl.Service)1 SOAPAddress (javax.wsdl.extensions.soap.SOAPAddress)1 SOAP12Address (javax.wsdl.extensions.soap12.SOAP12Address)1 SOAP12Binding (javax.wsdl.extensions.soap12.SOAP12Binding)1 WebServiceException (javax.xml.ws.WebServiceException)1 SOAPBinding (javax.xml.ws.soap.SOAPBinding)1 SoapAddress (org.apache.cxf.binding.soap.wsdl.extensions.SoapAddress)1 SoapBinding (org.apache.cxf.binding.soap.wsdl.extensions.SoapBinding)1 XMLBindingMessageFormat (org.apache.cxf.bindings.xformat.XMLBindingMessageFormat)1