本文整理汇总了Java中com.sun.xml.internal.ws.server.sei.TieHandler类的典型用法代码示例。如果您正苦于以下问题:Java TieHandler类的具体用法?Java TieHandler怎么用?Java TieHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TieHandler类属于com.sun.xml.internal.ws.server.sei包,在下文中一共展示了TieHandler类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: serializeResponse
import com.sun.xml.internal.ws.server.sei.TieHandler; //导入依赖的package包/类
@Override
public Packet serializeResponse(JavaCallInfo call) {
Method method = call.getMethod();
Message message = null;
if (method != null) {
TieHandler th = tieHandlers.get(method);
if (th != null) {
return th.serializeResponse(call);
}
}
if (call.getException() instanceof DispatchException) {
message = ((DispatchException) call.getException()).fault;
}
Packet p = (Packet) packetFactory.createContext(message);
p.setState(Packet.State.ServerResponse);
return p;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:DatabindingImpl.java
示例2: DatabindingImpl
import com.sun.xml.internal.ws.server.sei.TieHandler; //导入依赖的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
示例3: deserializeRequest
import com.sun.xml.internal.ws.server.sei.TieHandler; //导入依赖的package包/类
public JavaCallInfo deserializeRequest(Packet req) {
com.sun.xml.internal.ws.api.databinding.JavaCallInfo call = new com.sun.xml.internal.ws.api.databinding.JavaCallInfo();
try {
JavaMethodImpl wsdlOp = resolveJavaMethod(req);
TieHandler tie = wsdlOpMap.get(wsdlOp);
call.setMethod(tie.getMethod());
Object[] args = tie.readRequest(req.getMessage());
call.setParameters(args);
} catch (DispatchException e) {
call.setException(e);
}
return call;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:DatabindingImpl.java
示例4: DatabindingImpl
import com.sun.xml.internal.ws.server.sei.TieHandler; //导入依赖的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
注:本文中的com.sun.xml.internal.ws.server.sei.TieHandler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论