use of org.apache.cxf.jaxws.binding.http.HTTPBindingImpl 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);
}
}
Aggregations