Java Code Examples for com.sun.xml.internal.ws.api.EndpointAddress#create()

The following examples show how to use com.sun.xml.internal.ws.api.EndpointAddress#create() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WSServiceDelegate.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private QName addPortEpr(WSEndpointReference wsepr) {
    if (wsepr == null)
        throw new WebServiceException(ProviderApiMessages.NULL_EPR());
    QName eprPortName = getPortNameFromEPR(wsepr, null);
    //add Port, if it does n't exist;
    // TODO: what if it has different epr address?
    {
        PortInfo portInfo = new PortInfo(this, (wsepr.getAddress() == null) ? null : EndpointAddress.create(wsepr.getAddress()), eprPortName,
                getPortModel(wsdlService, eprPortName).getBinding().getBindingId());
        if (!ports.containsKey(eprPortName)) {
            ports.put(eprPortName, portInfo);
        }
    }
    return eprPortName;
}
 
Example 2
Source File: WSServiceDelegate.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private QName addPortEpr(WSEndpointReference wsepr) {
    if (wsepr == null)
        throw new WebServiceException(ProviderApiMessages.NULL_EPR());
    QName eprPortName = getPortNameFromEPR(wsepr, null);
    //add Port, if it does n't exist;
    // TODO: what if it has different epr address?
    {
        PortInfo portInfo = new PortInfo(this, (wsepr.getAddress() == null) ? null : EndpointAddress.create(wsepr.getAddress()), eprPortName,
                getPortModel(wsdlService, eprPortName).getBinding().getBindingId());
        if (!ports.containsKey(eprPortName)) {
            ports.put(eprPortName, portInfo);
        }
    }
    return eprPortName;
}
 
Example 3
Source File: Packet.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void setEndPointAddressString(String s) {
    if (s == null) {
        this.endpointAddress = null;
    } else {
        this.endpointAddress = EndpointAddress.create(s);
    }
}
 
Example 4
Source File: RequestContext.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void setEndPointAddressString(String s) {
    if (s == null) {
        throw new IllegalArgumentException();
    } else {
        this.endpointAddress = EndpointAddress.create(s);
    }
}
 
Example 5
Source File: WSServiceDelegate.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private QName addPortEpr(WSEndpointReference wsepr) {
    if (wsepr == null)
        throw new WebServiceException(ProviderApiMessages.NULL_EPR());
    QName eprPortName = getPortNameFromEPR(wsepr, null);
    //add Port, if it does n't exist;
    // TODO: what if it has different epr address?
    {
        PortInfo portInfo = new PortInfo(this, (wsepr.getAddress() == null) ? null : EndpointAddress.create(wsepr.getAddress()), eprPortName,
                getPortModel(wsdlService, eprPortName).getBinding().getBindingId());
        if (!ports.containsKey(eprPortName)) {
            ports.put(eprPortName, portInfo);
        }
    }
    return eprPortName;
}
 
Example 6
Source File: Packet.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void setEndPointAddressString(String s) {
    if (s == null) {
        this.endpointAddress = null;
    } else {
        this.endpointAddress = EndpointAddress.create(s);
    }
}
 
Example 7
Source File: RequestContext.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void setEndPointAddressString(String s) {
    if (s == null) {
        throw new IllegalArgumentException();
    } else {
        this.endpointAddress = EndpointAddress.create(s);
    }
}
 
Example 8
Source File: WSServiceDelegate.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private QName addPortEpr(WSEndpointReference wsepr) {
    if (wsepr == null)
        throw new WebServiceException(ProviderApiMessages.NULL_EPR());
    QName eprPortName = getPortNameFromEPR(wsepr, null);
    //add Port, if it does n't exist;
    // TODO: what if it has different epr address?
    {
        PortInfo portInfo = new PortInfo(this, (wsepr.getAddress() == null) ? null : EndpointAddress.create(wsepr.getAddress()), eprPortName,
                getPortModel(wsdlService, eprPortName).getBinding().getBindingId());
        if (!ports.containsKey(eprPortName)) {
            ports.put(eprPortName, portInfo);
        }
    }
    return eprPortName;
}
 
Example 9
Source File: Packet.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void setEndPointAddressString(String s) {
    if (s == null) {
        this.endpointAddress = null;
    } else {
        this.endpointAddress = EndpointAddress.create(s);
    }
}
 
Example 10
Source File: RequestContext.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void setEndPointAddressString(String s) {
    if (s == null) {
        throw new IllegalArgumentException();
    } else {
        this.endpointAddress = EndpointAddress.create(s);
    }
}
 
Example 11
Source File: Packet.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void setEndPointAddressString(String s) {
    if (s == null) {
        this.endpointAddress = null;
    } else {
        this.endpointAddress = EndpointAddress.create(s);
    }
}
 
Example 12
Source File: Packet.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void setEndPointAddressString(String s) {
    if (s == null) {
        this.endpointAddress = null;
    } else {
        this.endpointAddress = EndpointAddress.create(s);
    }
}
 
Example 13
Source File: RequestContext.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void setEndPointAddressString(String s) {
    if (s == null) {
        throw new IllegalArgumentException();
    } else {
        this.endpointAddress = EndpointAddress.create(s);
    }
}
 
Example 14
Source File: WSServiceDelegate.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private QName addPortEpr(WSEndpointReference wsepr) {
    if (wsepr == null)
        throw new WebServiceException(ProviderApiMessages.NULL_EPR());
    QName eprPortName = getPortNameFromEPR(wsepr, null);
    //add Port, if it does n't exist;
    // TODO: what if it has different epr address?
    {
        PortInfo portInfo = new PortInfo(this, (wsepr.getAddress() == null) ? null : EndpointAddress.create(wsepr.getAddress()), eprPortName,
                getPortModel(wsdlService, eprPortName).getBinding().getBindingId());
        if (!ports.containsKey(eprPortName)) {
            ports.put(eprPortName, portInfo);
        }
    }
    return eprPortName;
}
 
Example 15
Source File: Packet.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void setEndPointAddressString(String s) {
    if (s == null) {
        this.endpointAddress = null;
    } else {
        this.endpointAddress = EndpointAddress.create(s);
    }
}
 
Example 16
Source File: RequestContext.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void setEndPointAddressString(String s) {
    if (s == null) {
        throw new IllegalArgumentException();
    } else {
        this.endpointAddress = EndpointAddress.create(s);
    }
}
 
Example 17
Source File: WSServiceDelegate.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private QName addPortEpr(WSEndpointReference wsepr) {
    if (wsepr == null)
        throw new WebServiceException(ProviderApiMessages.NULL_EPR());
    QName eprPortName = getPortNameFromEPR(wsepr, null);
    //add Port, if it does n't exist;
    // TODO: what if it has different epr address?
    {
        PortInfo portInfo = new PortInfo(this, (wsepr.getAddress() == null) ? null : EndpointAddress.create(wsepr.getAddress()), eprPortName,
                getPortModel(wsdlService, eprPortName).getBinding().getBindingId());
        if (!ports.containsKey(eprPortName)) {
            ports.put(eprPortName, portInfo);
        }
    }
    return eprPortName;
}
 
Example 18
Source File: Packet.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void setEndPointAddressString(String s) {
    if (s == null) {
        this.endpointAddress = null;
    } else {
        this.endpointAddress = EndpointAddress.create(s);
    }
}
 
Example 19
Source File: RequestContext.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void setEndPointAddressString(String s) {
    if (s == null) {
        throw new IllegalArgumentException();
    } else {
        this.endpointAddress = EndpointAddress.create(s);
    }
}
 
Example 20
Source File: WSServiceDelegate.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private QName addPortEpr(WSEndpointReference wsepr) {
    if (wsepr == null)
        throw new WebServiceException(ProviderApiMessages.NULL_EPR());
    QName eprPortName = getPortNameFromEPR(wsepr, null);
    //add Port, if it does n't exist;
    // TODO: what if it has different epr address?
    {
        PortInfo portInfo = new PortInfo(this, (wsepr.getAddress() == null) ? null : EndpointAddress.create(wsepr.getAddress()), eprPortName,
                getPortModel(wsdlService, eprPortName).getBinding().getBindingId());
        if (!ports.containsKey(eprPortName)) {
            ports.put(eprPortName, portInfo);
        }
    }
    return eprPortName;
}