• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java SAAJMessage类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java VarExporter类代码示例发布时间:2022-05-23
下一篇:
Java WalkingRoutePlanOption类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap