Java Code Examples for com.sun.xml.internal.ws.api.message.Messages#createUsingPayload()

The following examples show how to use com.sun.xml.internal.ws.api.message.Messages#createUsingPayload() . 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: FastInfosetCodec.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    /* Implements similar logic as the XMLMessage.create(String, InputStream).
     * But it's faster, as we know the InputStream has FastInfoset content*/
    Message message;
    in = hasSomeData(in);
    if (in != null) {
        message = Messages.createUsingPayload(new FastInfosetSource(in),
                SOAPVersion.SOAP_11);
    } else {
        message = Messages.createEmpty(SOAPVersion.SOAP_11);
    }

    packet.setMessage(message);
}
 
Example 2
Source File: FastInfosetCodec.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    /* Implements similar logic as the XMLMessage.create(String, InputStream).
     * But it's faster, as we know the InputStream has FastInfoset content*/
    Message message;
    in = hasSomeData(in);
    if (in != null) {
        message = Messages.createUsingPayload(new FastInfosetSource(in),
                SOAPVersion.SOAP_11);
    } else {
        message = Messages.createEmpty(SOAPVersion.SOAP_11);
    }

    packet.setMessage(message);
}
 
Example 3
Source File: FastInfosetCodec.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    /* Implements similar logic as the XMLMessage.create(String, InputStream).
     * But it's faster, as we know the InputStream has FastInfoset content*/
    Message message;
    in = hasSomeData(in);
    if (in != null) {
        message = Messages.createUsingPayload(new FastInfosetSource(in),
                SOAPVersion.SOAP_11);
    } else {
        message = Messages.createEmpty(SOAPVersion.SOAP_11);
    }

    packet.setMessage(message);
}
 
Example 4
Source File: FastInfosetCodec.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    /* Implements similar logic as the XMLMessage.create(String, InputStream).
     * But it's faster, as we know the InputStream has FastInfoset content*/
    Message message;
    in = hasSomeData(in);
    if (in != null) {
        message = Messages.createUsingPayload(new FastInfosetSource(in),
                SOAPVersion.SOAP_11);
    } else {
        message = Messages.createEmpty(SOAPVersion.SOAP_11);
    }

    packet.setMessage(message);
}
 
Example 5
Source File: FastInfosetCodec.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    /* Implements similar logic as the XMLMessage.create(String, InputStream).
     * But it's faster, as we know the InputStream has FastInfoset content*/
    Message message;
    in = hasSomeData(in);
    if (in != null) {
        message = Messages.createUsingPayload(new FastInfosetSource(in),
                SOAPVersion.SOAP_11);
    } else {
        message = Messages.createEmpty(SOAPVersion.SOAP_11);
    }

    packet.setMessage(message);
}
 
Example 6
Source File: FastInfosetCodec.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    /* Implements similar logic as the XMLMessage.create(String, InputStream).
     * But it's faster, as we know the InputStream has FastInfoset content*/
    Message message;
    in = hasSomeData(in);
    if (in != null) {
        message = Messages.createUsingPayload(new FastInfosetSource(in),
                SOAPVersion.SOAP_11);
    } else {
        message = Messages.createEmpty(SOAPVersion.SOAP_11);
    }

    packet.setMessage(message);
}
 
Example 7
Source File: FastInfosetCodec.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    /* Implements similar logic as the XMLMessage.create(String, InputStream).
     * But it's faster, as we know the InputStream has FastInfoset content*/
    Message message;
    in = hasSomeData(in);
    if (in != null) {
        message = Messages.createUsingPayload(new FastInfosetSource(in),
                SOAPVersion.SOAP_11);
    } else {
        message = Messages.createEmpty(SOAPVersion.SOAP_11);
    }

    packet.setMessage(message);
}
 
Example 8
Source File: SOAPProviderArgumentBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
protected Message getResponseMessage(Source source) {
    return Messages.createUsingPayload(source, soapVersion);
}
 
Example 9
Source File: XMLProviderArgumentBuilder.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public Message getResponseMessage(Source source) {
    return Messages.createUsingPayload(source, SOAPVersion.SOAP_11);
}
 
Example 10
Source File: SOAPProviderArgumentBuilder.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected Message getResponseMessage(Source source) {
    return Messages.createUsingPayload(source, soapVersion);
}
 
Example 11
Source File: XMLProviderArgumentBuilder.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public Message getResponseMessage(Source source) {
    return Messages.createUsingPayload(source, SOAPVersion.SOAP_11);
}
 
Example 12
Source File: SOAPProviderArgumentBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
protected Message getResponseMessage(Source source) {
    return Messages.createUsingPayload(source, soapVersion);
}
 
Example 13
Source File: XMLProviderArgumentBuilder.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public Message getResponseMessage(Source source) {
    return Messages.createUsingPayload(source, SOAPVersion.SOAP_11);
}
 
Example 14
Source File: XMLProviderArgumentBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public Message getResponseMessage(Source source) {
    return Messages.createUsingPayload(source, SOAPVersion.SOAP_11);
}
 
Example 15
Source File: SOAPProviderArgumentBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
protected Message getResponseMessage(Source source) {
    return Messages.createUsingPayload(source, soapVersion);
}
 
Example 16
Source File: XMLProviderArgumentBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public Message getResponseMessage(Source source) {
    return Messages.createUsingPayload(source, SOAPVersion.SOAP_11);
}
 
Example 17
Source File: SOAPProviderArgumentBuilder.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
protected Message getResponseMessage(Source source) {
    return Messages.createUsingPayload(source, soapVersion);
}
 
Example 18
Source File: XMLProviderArgumentBuilder.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public Message getResponseMessage(Source source) {
    return Messages.createUsingPayload(source, SOAPVersion.SOAP_11);
}
 
Example 19
Source File: XMLProviderArgumentBuilder.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public Message getResponseMessage(Source source) {
    return Messages.createUsingPayload(source, SOAPVersion.SOAP_11);
}
 
Example 20
Source File: SOAPProviderArgumentBuilder.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
protected Message getResponseMessage(Source source) {
    return Messages.createUsingPayload(source, soapVersion);
}