本文整理汇总了Java中javax.xml.ws.spi.ServiceDelegate类的典型用法代码示例。如果您正苦于以下问题:Java ServiceDelegate类的具体用法?Java ServiceDelegate怎么用?Java ServiceDelegate使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ServiceDelegate类属于javax.xml.ws.spi包,在下文中一共展示了ServiceDelegate类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doCreateServiceWithReflectivelySetDelegate
import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
private static WinRm doCreateServiceWithReflectivelySetDelegate() {
WinRmService service = doCreateService_1_CreateMinimalServiceInstance();
try {
Field delegateField = javax.xml.ws.Service.class.getDeclaredField("delegate"); //ALLOW CXF SPECIFIC SERVICE DELEGATE ONLY!
delegateField.setAccessible(true);
ServiceDelegate previousDelegate = (ServiceDelegate) delegateField.get(service);
if (!previousDelegate.getClass().getName().contains("cxf")) {
ServiceDelegate serviceDelegate = ((Provider) Class.forName("org.apache.cxf.jaxws.spi.ProviderImpl").newInstance())
.createServiceDelegate(WinRmService.WSDL_LOCATION, WinRmService.SERVICE, service.getClass());
delegateField.set(service, serviceDelegate);
}
} catch (Exception e) {
throw new RuntimeException("Error reflectively setting CXF WS service delegate", e);
}
return doCreateService_2_GetClient(service);
}
示例2: createServiceDelegate
import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
@Override
public ServiceDelegate createServiceDelegate(URL url, QName qname, Class cls)
{
final String busStrategy = ClientBusSelector.getInstance().selectStrategy();
ClassLoader origClassLoader = getContextClassLoader();
boolean restoreTCCL = false;
Bus orig = null;
try
{
restoreTCCL = checkAndFixContextClassLoader(origClassLoader);
orig = BusFactory.getThreadDefaultBus(false);
Bus bus = getOrCreateBus(busStrategy, origClassLoader);
ServiceDelegate serviceDelegate = new JBossWSServiceImpl(bus, url, qname, cls);
setDisableCacheSchema(bus);
return serviceDelegate;
}
finally
{
restoreThreadDefaultBus(busStrategy, orig);
if (restoreTCCL)
setContextClassLoader(origClassLoader);
}
}
示例3: createServiceDelegate
import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
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);
}
示例4: createServiceDelegate
import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
WebServiceFeature ... features) {
if (features.length > 0) {
throw new WebServiceException("Doesn't support any Service specific features");
}
return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
示例5: createServiceDelegate
import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
@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;
}
示例6: createServiceDelegate
import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
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;
}
示例7: ServiceDelegateWrapper
import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
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;
}
}
示例8: createServiceDelegate
import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
@Override
public ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation, QName serviceName, Class<? extends Service> serviceClass)
{
return null;
}
示例9: createServiceDelegate
import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
@Override
public ServiceDelegate createServiceDelegate(URL url, QName qname, Class clazz) {
return createServiceDelegate(url, qname, clazz, (WebServiceFeature[])null);
}
示例10: ServiceDelegateWrapper
import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
public ServiceDelegateWrapper(final ServiceDelegate serviceDelegate) {
this.serviceDelegate = serviceDelegate;
}
示例11: createServiceDelegate
import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
@Override
public ServiceDelegate createServiceDelegate(final URL url, final QName qName, final Class aClass) {
return null;
}
示例12: createServiceDelegate
import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
public ServiceDelegate createServiceDelegate(final URL url, final QName qName, final Class aClass) {
return null;
}