本文整理汇总了Java中com.sun.xml.internal.ws.message.saaj.SAAJMessage类的典型用法代码示例。如果您正苦于以下问题:Java SAAJMessage类的具体用法?Java SAAJMessage怎么用?Java SAAJMessage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SAAJMessage类属于com.sun.xml.internal.ws.message.saaj包,在下文中一共展示了SAAJMessage类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: toSAAJ
import com.sun.xml.internal.ws.message.saaj.SAAJMessage; //导入依赖的package包/类
public Message toSAAJ(Packet p, Boolean inbound) throws SOAPException {
SAAJMessage message = SAAJFactory.read(p);
if (message instanceof MessageWritable)
((MessageWritable) message)
.setMTOMConfiguration(p.getMtomFeature());
if (inbound != null) transportHeaders(p, inbound, message.readAsSOAPMessage());
return message;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:AbstractMessageImpl.java
示例2: readAsSOAPMessage
import com.sun.xml.internal.ws.message.saaj.SAAJMessage; //导入依赖的package包/类
@Override
public SOAPMessage readAsSOAPMessage() throws SOAPException {
if (!(delegate instanceof SAAJMessage)) {
delegate = toSAAJ(packet, null);
}
return delegate.readAsSOAPMessage();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:MessageWrapper.java
示例3: read
import com.sun.xml.internal.ws.message.saaj.SAAJMessage; //导入依赖的package包/类
/**
* Reads the message within the Packet to a SAAJMessage. After this call message is consumed.
* @param packet Packet
* @return Created SAAJPMessage
* @throws SOAPException if SAAJ processing fails
*/
public static SAAJMessage read(Packet packet) throws SOAPException {
// Use the Component from the Packet if it exists. Note the logic
// in the ServiceFinder is such that find(Class) is not equivalent
// to find (Class, null), so the ternary operator is needed.
ServiceFinder<SAAJFactory> factories = (packet.component != null ?
ServiceFinder.find(SAAJFactory.class, packet.component) :
ServiceFinder.find(SAAJFactory.class));
for (SAAJFactory s : factories) {
SAAJMessage msg = s.readAsSAAJ(packet);
if (msg != null) return msg;
}
return instance.readAsSAAJ(packet);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:SAAJFactory.java
示例4: updateMessage
import com.sun.xml.internal.ws.message.saaj.SAAJMessage; //导入依赖的package包/类
protected void updateMessage() {
//Check if SOAPMessage has changed, if so construct new one,
// Packet are handled through MessageContext
if(soapMsg != null) {
packet.setMessage(new SAAJMessage(soapMsg));
soapMsg = null;
}
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:9,代码来源:SOAPMessageContextImpl.java
示例5: createPacket
import com.sun.xml.internal.ws.message.saaj.SAAJMessage; //导入依赖的package包/类
Packet createPacket(SOAPMessage arg) {
Iterator iter = arg.getMimeHeaders().getAllHeaders();
Headers ch = new Headers();
while(iter.hasNext()) {
MimeHeader mh = (MimeHeader) iter.next();
ch.add(mh.getName(), mh.getValue());
}
Packet packet = new Packet(new SAAJMessage(arg));
packet.invocationProperties.put(MessageContext.HTTP_REQUEST_HEADERS, ch);
return packet;
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:12,代码来源:SOAPMessageDispatch.java
示例6: readAsSAAJ
import com.sun.xml.internal.ws.message.saaj.SAAJMessage; //导入依赖的package包/类
/**
* Reads the message within the Packet to a SAAJMessage. After this call message is consumed.
* @param packet Packet
* @return Created SAAJPMessage
* @throws SOAPException if SAAJ processing fails
*/
public SAAJMessage readAsSAAJ(Packet packet) throws SOAPException {
SOAPVersion v = packet.getMessage().getSOAPVersion();
SOAPMessage msg = readAsSOAPMessage(v, packet.getMessage());
return new SAAJMessage(msg);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:SAAJFactory.java
示例7: createMessage
import com.sun.xml.internal.ws.message.saaj.SAAJMessage; //导入依赖的package包/类
/**
* Creates Message from SOAPMessage
* @param saaj SOAPMessage
* @return created Message
*/
public Message createMessage(SOAPMessage saaj) {
return new SAAJMessage(saaj);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:SAAJFactory.java
示例8: create
import com.sun.xml.internal.ws.message.saaj.SAAJMessage; //导入依赖的package包/类
/**
* Creates a {@link Message} backed by a SAAJ {@link SOAPMessage} object.
*
* <p>
* If the {@link SOAPMessage} contains headers and attachments, this method
* does the right thing.
*
* @param saaj
* The SOAP message to be represented as a {@link Message}.
* Must not be null. Once this method is invoked, the created
* {@link Message} will own the {@link SOAPMessage}, so it shall
* never be touched directly.
*/
public static Message create(SOAPMessage saaj) {
return new SAAJMessage(saaj);
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:17,代码来源:Messages.java
注:本文中的com.sun.xml.internal.ws.message.saaj.SAAJMessage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论