javax.xml.ws.spi.ServiceDelegate Java Examples

The following examples show how to use javax.xml.ws.spi.ServiceDelegate. 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: ProviderImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
 
Example #2
Source File: ProviderImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
 
Example #3
Source File: ProviderImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
 
Example #4
Source File: ProviderImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
 
Example #5
Source File: CXFService.java    From cxf with Apache License 2.0 5 votes vote down vote up
private ServiceImpl findDelegate() {
    for (Field f : ReflectionUtil.getDeclaredFields(Service.class)) {
        if (ServiceDelegate.class.equals(f.getType())) {
            ServiceDelegate del = ReflectionUtil.accessDeclaredField(f, this, ServiceDelegate.class);
            if (del instanceof ServiceImpl) {
                return (ServiceImpl)del;
            }
            throw new WebServiceException("Delegate of class " + del.getClass() + " is not a CXF delegate.  "
                                          + " Check the classpath to make sure CXF is loaded first.");
        }
    }
    throw new WebServiceException("Could not find CXF service delegate");
}
 
Example #6
Source File: ProviderImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
 
Example #7
Source File: ProviderImpl.java    From cxf with Apache License 2.0 5 votes vote down vote up
public ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation,
                                             QName serviceName,
                                             @SuppressWarnings("rawtypes") Class serviceClass,
                                             WebServiceFeature ... features) {
    for (WebServiceFeature f : features) {
        if (!f.getClass().getName().startsWith("javax.xml.ws")
            && !(f instanceof Feature)) {
            throw new WebServiceException("Unknown feature error: " + f.getClass().getName());
        }
    }
    return new ServiceImpl(null, wsdlDocumentLocation,
                           serviceName, serviceClass, features);

}
 
Example #8
Source File: ProviderImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
 
Example #9
Source File: JaxWsProviderWrapper.java    From tomee with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
@Override
public ServiceDelegate createServiceDelegate(final URL wsdlDocumentLocation, final QName serviceName, final Class serviceClass) {
    ServiceDelegate serviceDelegate = delegate.createServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
    serviceDelegate = new ServiceDelegateWrapper(serviceDelegate);
    return serviceDelegate;
}
 
Example #10
Source File: ProviderImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
 
Example #11
Source File: ProviderWrapper.java    From tomee with Apache License 2.0 5 votes vote down vote up
public ServiceDelegate createServiceDelegate(final URL wsdlDocumentLocation, final QName serviceName, final Class serviceClass) {
    ServiceDelegate serviceDelegate = delegate.createServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
    // the PortRef list is bound to this thread when using @WebServiceRef injection
    // When using the JAX-WS API we don't need to wrap the ServiceDelegate
    if (threadPortRefs.get() != null) {
        serviceDelegate = new ServiceDelegateWrapper(serviceDelegate);

    }
    return serviceDelegate;
}
 
Example #12
Source File: ProviderImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
 
Example #13
Source File: ProviderWrapper.java    From tomee with Apache License 2.0 5 votes vote down vote up
public ServiceDelegateWrapper(final ServiceDelegate serviceDelegate) {
    this.serviceDelegate = serviceDelegate;
    final ProviderWrapperData providerWrapperData = threadPortRefs.get();
    if (providerWrapperData != null) {
        this.customizer = providerWrapperData.customizer;
        this.configuration = providerWrapperData.properties;
    } else {
        this.customizer = null;
        this.configuration = null;
    }
}
 
Example #14
Source File: JaxWsProviderWrapper.java    From tomee with Apache License 2.0 4 votes vote down vote up
public ServiceDelegateWrapper(final ServiceDelegate serviceDelegate) {
    this.serviceDelegate = serviceDelegate;
}
 
Example #15
Source File: ProviderImpl.java    From cxf with Apache License 2.0 4 votes vote down vote up
public <T> T getPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface,
                     WebServiceFeature... features) {
    ServiceDelegate sd = createServiceDelegate(null, null, serviceEndpointInterface);
    return sd.getPort(endpointReference, serviceEndpointInterface, features);
}
 
Example #16
Source File: JaxWsProviderWrapperTest.java    From tomee with Apache License 2.0 4 votes vote down vote up
@Override
public ServiceDelegate createServiceDelegate(final URL url, final QName qName, final Class aClass) {
    return null;
}
 
Example #17
Source File: ProviderImpl.java    From cxf with Apache License 2.0 4 votes vote down vote up
@Override
public ServiceDelegate createServiceDelegate(URL url, QName qname,
                                             @SuppressWarnings("rawtypes") Class cls) {
    return new ServiceImpl(null, url, qname, cls);
}
 
Example #18
Source File: ProviderImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public ServiceDelegate createServiceDelegate( Source wsdlSource, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlSource, serviceName, serviceClass);
}
 
Example #19
Source File: ProviderImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
 
Example #20
Source File: ProviderWrapperTest.java    From tomee with Apache License 2.0 4 votes vote down vote up
public ServiceDelegate createServiceDelegate(final URL url, final QName qName, final Class aClass) {
    return null;
}
 
Example #21
Source File: ProviderImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
 
Example #22
Source File: ProviderImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public ServiceDelegate createServiceDelegate( Source wsdlSource, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlSource, serviceName, serviceClass);
}
 
Example #23
Source File: ProviderImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
 
Example #24
Source File: ProviderImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public ServiceDelegate createServiceDelegate( Source wsdlSource, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlSource, serviceName, serviceClass);
}
 
Example #25
Source File: ProviderImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
 
Example #26
Source File: ProviderImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public ServiceDelegate createServiceDelegate( Source wsdlSource, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlSource, serviceName, serviceClass);
}
 
Example #27
Source File: ProviderImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
 
Example #28
Source File: ProviderImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public ServiceDelegate createServiceDelegate( Source wsdlSource, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlSource, serviceName, serviceClass);
}
 
Example #29
Source File: ProviderImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
 
Example #30
Source File: ProviderImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public ServiceDelegate createServiceDelegate( Source wsdlSource, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlSource, serviceName, serviceClass);
}