private boolean isCXF() { return Provider.provider().getClass().getName().contains(".cxf"); } public void unregister(Endpoint endpoint, Object service) throws EndpointRegistrationException {
/** * @since 2.2 */ public static Endpoint create(Object implementor, WebServiceFeature ... features) { return Provider.provider().createEndpoint(null, implementor, features); } /**
/** * @since 2.2 */ public static Endpoint create(String bindingId, Object implementor, WebServiceFeature ... features) { return Provider.provider().createEndpoint(bindingId, implementor, features); }
public W3CEndpointReference build() { return Provider.provider().createW3CEndpointReference(address, serviceName, endpointName, metadataElements, wsdlDocumentLocation, referenceParameters); }
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName, WebServiceFeature ... features) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass(), features); }
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass()); }
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass()); }
/** * @since 2.2 */ protected Service(URL wsdlDocumentLocation, QName serviceName, WebServiceFeature... features) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, getClass(), features); }
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName, WebServiceFeature ... features) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass(), features); }
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass()); }
protected Service(URL wsdlDocumentLocation, QName serviceName) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, getClass()); } /**
public static Endpoint publish(String address, Object implementor) { return Provider.provider().createAndPublishEndpoint(address, implementor); } /**
public static Endpoint create(String bindingId, Object implementor) { return Provider.provider().createEndpoint(bindingId, implementor); } /**
public static EndpointReference readFrom(Source eprInfoset) { return Provider.provider().readEndpointReference(eprInfoset); }
public static Endpoint create(String bindingId, Object implementor) { return Provider.provider().createEndpoint(bindingId, implementor); }
public <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features) { return Provider.provider().getPort(this, serviceEndpointInterface, features); }
public static EndpointReference readFrom(Source eprInfoset) { return Provider.provider().readEndpointReference(eprInfoset); }
private static synchronized void createInstance() { if (instance != null) { return; } Provider p = Provider.provider(); if (p.getClass().getName().contains("apache.cxf")) { instance = new CXFWSNHelper(); } else { instance = new WSNHelper(); } }
private Endpoint publish(String address, Object implementor) { Provider provider = Provider.provider(); if (provider.getClass().getName().startsWith("weblogic.")) { // workaround for WebLogic address = address + "/"; } Endpoint endpoint = Endpoint.publish(address, implementor); SOAPBinding binding = (SOAPBinding) endpoint.getBinding(); binding.setMTOMEnabled(true); return endpoint; } }
@Override public void start(final Deployment dep) { if (BusFactory.getDefaultBus(false) == null) { //Make sure the default bus is created and set for client side usage //(i.e. no server side integration contribution in it) JBossWSBusFactory.getDefaultBus(Provider.provider().getClass().getClassLoader()); } startDeploymentBus(dep); }