Search in sources :

Example 1 with DefaultBindingImpl

use of org.apache.cxf.jaxws.binding.DefaultBindingImpl in project cxf by apache.

the class JaxWsEndpointImpl method createJaxwsBinding.

final void createJaxwsBinding() {
    if (getBinding() instanceof SoapBinding) {
        jaxwsBinding = new SOAPBindingImpl(getEndpointInfo().getBinding(), this);
        MTOMFeature mtomFeature = getMTOMFeature();
        if (mtomFeature != null && mtomFeature.isEnabled()) {
            ((SOAPBinding) jaxwsBinding).setMTOMEnabled(true);
        }
    } else if (getBinding() instanceof XMLBinding) {
        jaxwsBinding = new HTTPBindingImpl(getEndpointInfo().getBinding(), this);
    } else {
        // REVISIT: Should not get here, though some bindings like JBI
        // did not implement their own Binding type.
        jaxwsBinding = new DefaultBindingImpl(this);
    }
}
Also used : MTOMFeature(javax.xml.ws.soap.MTOMFeature) SOAPBinding(javax.xml.ws.soap.SOAPBinding) DefaultBindingImpl(org.apache.cxf.jaxws.binding.DefaultBindingImpl) SOAPBindingImpl(org.apache.cxf.jaxws.binding.soap.SOAPBindingImpl) XMLBinding(org.apache.cxf.binding.xml.XMLBinding) SoapBinding(org.apache.cxf.binding.soap.SoapBinding) HTTPBindingImpl(org.apache.cxf.jaxws.binding.http.HTTPBindingImpl)

Aggregations

MTOMFeature (javax.xml.ws.soap.MTOMFeature)1 SOAPBinding (javax.xml.ws.soap.SOAPBinding)1 SoapBinding (org.apache.cxf.binding.soap.SoapBinding)1 XMLBinding (org.apache.cxf.binding.xml.XMLBinding)1 DefaultBindingImpl (org.apache.cxf.jaxws.binding.DefaultBindingImpl)1 HTTPBindingImpl (org.apache.cxf.jaxws.binding.http.HTTPBindingImpl)1 SOAPBindingImpl (org.apache.cxf.jaxws.binding.soap.SOAPBindingImpl)1