Java Code Examples for com.sun.xml.internal.ws.api.message.saaj.SAAJFactory#create()

The following examples show how to use com.sun.xml.internal.ws.api.message.saaj.SAAJFactory#create() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SOAPMessageDispatch.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
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(SAAJFactory.create(arg));
    packet.invocationProperties.put(MessageContext.HTTP_REQUEST_HEADERS, ch);
    return packet;
}
 
Example 2
Source File: SOAPMessageDispatch.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
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(SAAJFactory.create(arg));
    packet.invocationProperties.put(MessageContext.HTTP_REQUEST_HEADERS, ch);
    return packet;
}
 
Example 3
Source File: SOAPMessageDispatch.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
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(SAAJFactory.create(arg));
    packet.invocationProperties.put(MessageContext.HTTP_REQUEST_HEADERS, ch);
    return packet;
}
 
Example 4
Source File: SOAPMessageDispatch.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
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(SAAJFactory.create(arg));
    packet.invocationProperties.put(MessageContext.HTTP_REQUEST_HEADERS, ch);
    return packet;
}
 
Example 5
Source File: SOAPMessageDispatch.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
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(SAAJFactory.create(arg));
    packet.invocationProperties.put(MessageContext.HTTP_REQUEST_HEADERS, ch);
    return packet;
}
 
Example 6
Source File: SOAPMessageDispatch.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
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(SAAJFactory.create(arg));
    packet.invocationProperties.put(MessageContext.HTTP_REQUEST_HEADERS, ch);
    return packet;
}
 
Example 7
Source File: SOAPMessageDispatch.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
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(SAAJFactory.create(arg));
    packet.invocationProperties.put(MessageContext.HTTP_REQUEST_HEADERS, ch);
    return packet;
}
 
Example 8
Source File: SOAPMessageDispatch.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
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(SAAJFactory.create(arg));
    packet.invocationProperties.put(MessageContext.HTTP_REQUEST_HEADERS, ch);
    return packet;
}
 
Example 9
Source File: Messages.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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 SAAJFactory.create(saaj);
}
 
Example 10
Source File: Messages.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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 SAAJFactory.create(saaj);
}
 
Example 11
Source File: Messages.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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 SAAJFactory.create(saaj);
}
 
Example 12
Source File: Messages.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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 SAAJFactory.create(saaj);
}
 
Example 13
Source File: Messages.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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 SAAJFactory.create(saaj);
}
 
Example 14
Source File: Messages.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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 SAAJFactory.create(saaj);
}
 
Example 15
Source File: Messages.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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 SAAJFactory.create(saaj);
}
 
Example 16
Source File: Messages.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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 SAAJFactory.create(saaj);
}