本文整理汇总了Java中com.sun.xml.internal.ws.api.databinding.DatabindingConfig类的典型用法代码示例。如果您正苦于以下问题:Java DatabindingConfig类的具体用法?Java DatabindingConfig怎么用?Java DatabindingConfig使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DatabindingConfig类属于com.sun.xml.internal.ws.api.databinding包,在下文中一共展示了DatabindingConfig类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: buildRuntimeModel
import com.sun.xml.internal.ws.api.databinding.DatabindingConfig; //导入依赖的package包/类
public SEIModel buildRuntimeModel(QName serviceName, QName portName, Class portInterface, WSDLPort wsdlPort, WebServiceFeatureList features) {
DatabindingFactory fac = DatabindingFactory.newInstance();
DatabindingConfig config = new DatabindingConfig();
config.setContractClass(portInterface);
config.getMappingInfo().setServiceName(serviceName);
config.setWsdlPort(wsdlPort);
config.setFeatures(features);
config.setClassLoader(portInterface.getClassLoader());
config.getMappingInfo().setPortName(portName);
config.setWsdlURL(wsdlURL);
// if ExternalMetadataFeature present, ExternalMetadataReader will be created ...
config.setMetadataReader(getMetadadaReader(features, portInterface.getClassLoader()));
com.sun.xml.internal.ws.db.DatabindingImpl rt = (com.sun.xml.internal.ws.db.DatabindingImpl)fac.createRuntime(config);
return rt.getModel();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:WSServiceDelegate.java
示例2: createSEIModel
import com.sun.xml.internal.ws.api.databinding.DatabindingConfig; //导入依赖的package包/类
private static AbstractSEIModelImpl createSEIModel(WSDLPort wsdlPort,
Class<?> implType, @NotNull QName serviceName, @NotNull QName portName, WSBinding binding,
SDDocumentSource primaryWsdl) {
DatabindingFactory fac = DatabindingFactory.newInstance();
DatabindingConfig config = new DatabindingConfig();
config.setEndpointClass(implType);
config.getMappingInfo().setServiceName(serviceName);
config.setWsdlPort(wsdlPort);
config.setWSBinding(binding);
config.setClassLoader(implType.getClassLoader());
config.getMappingInfo().setPortName(portName);
if (primaryWsdl != null) config.setWsdlURL(primaryWsdl.getSystemId());
config.setMetadataReader(getExternalMetadatReader(implType, binding));
com.sun.xml.internal.ws.db.DatabindingImpl rt = (com.sun.xml.internal.ws.db.DatabindingImpl)fac.createRuntime(config);
return (AbstractSEIModelImpl) rt.getModel();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:EndpointFactory.java
示例3: create
import com.sun.xml.internal.ws.api.databinding.DatabindingConfig; //导入依赖的package包/类
public Databinding create(DatabindingConfig config) {
DatabindingImpl impl = getCachedDatabindingImpl(config);
if (impl == null) {
impl = new DatabindingImpl(this, config);
config.properties().put(CachedDatabinding, impl);
}
return impl;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:DatabindingProviderImpl.java
示例4: DatabindingImpl
import com.sun.xml.internal.ws.api.databinding.DatabindingConfig; //导入依赖的package包/类
public DatabindingImpl(DatabindingProviderImpl p, DatabindingConfig config) {
RuntimeModeler modeler = new RuntimeModeler(config);
modeler.setClassLoader(config.getClassLoader());
seiModel = modeler.buildRuntimeModel();
WSDLPort wsdlport = config.getWsdlPort();
packetFactory = new MessageContextFactory(seiModel.getWSBinding().getFeatures());
clientConfig = isClientConfig(config);
if (clientConfig) {
initStubHandlers();
}
seiModel.setDatabinding(this);
if (wsdlport != null) {
freeze(wsdlport);
}
if (operationDispatcher == null) {
operationDispatcherNoWsdl = new OperationDispatcher(null, seiModel.getWSBinding(), seiModel);
}
// if(!clientConfig) {
for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
if (!jm.isAsync()) {
TieHandler th = new TieHandler(jm, seiModel.getWSBinding(), packetFactory);
wsdlOpMap.put(jm, th);
tieHandlers.put(th.getMethod(), th);
}
}
// }
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:28,代码来源:DatabindingImpl.java
示例5: isClientConfig
import com.sun.xml.internal.ws.api.databinding.DatabindingConfig; //导入依赖的package包/类
private boolean isClientConfig(DatabindingConfig config) {
if (config.getContractClass() == null) {
return false;
}
if (!config.getContractClass().isInterface()) {
return false;
}
return (config.getEndpointClass() == null || config.getEndpointClass().isInterface());
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:DatabindingImpl.java
示例6: databindingMode
import com.sun.xml.internal.ws.api.databinding.DatabindingConfig; //导入依赖的package包/类
String databindingMode(DatabindingConfig config) {
if ( config.getMappingInfo() != null &&
config.getMappingInfo().getDatabindingMode() != null)
return config.getMappingInfo().getDatabindingMode();
if ( config.getFeatures() != null) for (WebServiceFeature f : config.getFeatures()) {
if (f instanceof DatabindingModeFeature) {
DatabindingModeFeature dmf = (DatabindingModeFeature) f;
config.properties().putAll(dmf.getProperties());
return dmf.getMode();
}
}
return null;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:DatabindingFactoryImpl.java
示例7: DatabindingImpl
import com.sun.xml.internal.ws.api.databinding.DatabindingConfig; //导入依赖的package包/类
public DatabindingImpl(DatabindingProviderImpl p, DatabindingConfig config) {
RuntimeModeler modeler = new RuntimeModeler(config);
modeler.setClassLoader(config.getClassLoader());
seiModel = modeler.buildRuntimeModel();
WSDLPort wsdlport = config.getWsdlPort();
Object facProp = config.properties().get("com.sun.xml.internal.ws.api.message.MessageContextFactory");
packetFactory = (facProp != null && facProp instanceof MessageContextFactory)? (MessageContextFactory)facProp :
new MessageContextFactory(seiModel.getWSBinding().getFeatures());
clientConfig = isClientConfig(config);
if (clientConfig) {
initStubHandlers();
}
seiModel.setDatabinding(this);
if (wsdlport != null) {
freeze(wsdlport);
}
if (operationDispatcher == null) {
operationDispatcherNoWsdl = new OperationDispatcher(null, seiModel.getWSBinding(), seiModel);
}
// if(!clientConfig) {
for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
if (!jm.isAsync()) {
TieHandler th = new TieHandler(jm, seiModel.getWSBinding(), packetFactory);
wsdlOpMap.put(jm, th);
tieHandlers.put(th.getMethod(), th);
}
}
// }
}
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:30,代码来源:DatabindingImpl.java
示例8: this
import com.sun.xml.internal.ws.api.databinding.DatabindingConfig; //导入依赖的package包/类
/**
*
* creates an instance of RunTimeModeler given a <code>sei</code> and <code>binding</code>
* @param portClass The SEI class to be modeled.
* @param serviceName The ServiceName to use instead of one calculated from the implementation class
* @param wsdlPort {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLPort}
* @param features web service features
*/
/*public RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, @NotNull WSDLPortImpl wsdlPort, @NotNull WebServiceFeature... features){
this(portClass, serviceName, wsdlPort, wsdlPort.getBinding().getBindingId(), features);
}*/
/*private RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, WSDLPortImpl binding, BindingID bindingId, @NotNull WebServiceFeature... features) {
this.portClass = portClass;
this.serviceName = serviceName;
this.binding = binding;
this.bindingId = bindingId;
this.features = features;
}*/
public RuntimeModeler(@NotNull DatabindingConfig config){
this.portClass = (config.getEndpointClass() != null)? config.getEndpointClass() : config.getContractClass();
this.serviceName = config.getMappingInfo().getServiceName();
this.binding = config.getWsdlPort();
this.classLoader = config.getClassLoader();
this.portName = config.getMappingInfo().getPortName();
this.config = config;
this.wsBinding = config.getWSBinding();
metadataReader = config.getMetadataReader();
targetNamespace = config.getMappingInfo().getTargetNamespace();
if (metadataReader == null) metadataReader = new ReflectAnnotationReader();
if (wsBinding != null) {
this.bindingId = wsBinding.getBindingId();
if (config.getFeatures() != null) wsBinding.getFeatures().mergeFeatures(config.getFeatures(), false);
if (binding != null) wsBinding.getFeatures().mergeFeatures(binding.getFeatures(), false);
this.features = WebServiceFeatureList.toList(wsBinding.getFeatures());
} else {
this.bindingId = config.getMappingInfo().getBindingID();
this.features = WebServiceFeatureList.toList(config.getFeatures());
if (binding != null) bindingId = binding.getBinding().getBindingId();
if (bindingId == null) bindingId = getDefaultBindingID();
if (!features.contains(MTOMFeature.class)) {
MTOM mtomAn = getAnnotation(portClass, MTOM.class);
if (mtomAn != null) features.add(WebServiceFeatureList.getFeature(mtomAn));
}
if (!features.contains(com.oracle.webservices.internal.api.EnvelopeStyleFeature.class)) {
com.oracle.webservices.internal.api.EnvelopeStyle es = getAnnotation(portClass, com.oracle.webservices.internal.api.EnvelopeStyle.class);
if (es != null) features.add(WebServiceFeatureList.getFeature(es));
}
this.wsBinding = bindingId.createBinding(features);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:53,代码来源:RuntimeModeler.java
示例9: getCachedDatabindingImpl
import com.sun.xml.internal.ws.api.databinding.DatabindingConfig; //导入依赖的package包/类
DatabindingImpl getCachedDatabindingImpl(DatabindingConfig config) {
Object object = config.properties().get(CachedDatabinding);
return (object != null && object instanceof DatabindingImpl)? (DatabindingImpl)object : null;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:DatabindingProviderImpl.java
示例10: wsdlGen
import com.sun.xml.internal.ws.api.databinding.DatabindingConfig; //导入依赖的package包/类
public WSDLGenerator wsdlGen(DatabindingConfig config) {
DatabindingImpl impl = (DatabindingImpl)create(config);
return new JaxwsWsdlGen(impl);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:DatabindingProviderImpl.java
示例11: createRuntime
import com.sun.xml.internal.ws.api.databinding.DatabindingConfig; //导入依赖的package包/类
public Databinding createRuntime(DatabindingConfig config) {
DatabindingProvider provider = provider(config);
return provider.create(config);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:DatabindingFactoryImpl.java
注:本文中的com.sun.xml.internal.ws.api.databinding.DatabindingConfig类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论