Java Code Examples for com.sun.xml.internal.ws.api.message.Packet#getInternalMessage()

The following examples show how to use com.sun.xml.internal.ws.api.message.Packet#getInternalMessage() . 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: XMLHTTPBindingCodec.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
@Override
public ContentType getStaticContentType(Packet packet) {
    ContentType ct;
    if (packet.getInternalMessage() instanceof MessageDataSource) {
        final MessageDataSource mds = (MessageDataSource)packet.getInternalMessage();
        if (mds.hasUnconsumedDataSource()) {
            ct = getStaticContentType(mds);
            return (ct != null)
                ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
                : null;
        }
    }

    ct = super.getStaticContentType(packet);
    return (ct != null)
        ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
        : null;
}
 
Example 2
Source File: XMLHTTPBindingCodec.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
@Override
public ContentType getStaticContentType(Packet packet) {
    ContentType ct;
    if (packet.getInternalMessage() instanceof MessageDataSource) {
        final MessageDataSource mds = (MessageDataSource)packet.getInternalMessage();
        if (mds.hasUnconsumedDataSource()) {
            ct = getStaticContentType(mds);
            return (ct != null)
                ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
                : null;
        }
    }

    ct = super.getStaticContentType(packet);
    return (ct != null)
        ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
        : null;
}
 
Example 3
Source File: XMLHTTPBindingCodec.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
@Override
public ContentType getStaticContentType(Packet packet) {
    ContentType ct;
    if (packet.getInternalMessage() instanceof MessageDataSource) {
        final MessageDataSource mds = (MessageDataSource)packet.getInternalMessage();
        if (mds.hasUnconsumedDataSource()) {
            ct = getStaticContentType(mds);
            return (ct != null)
                ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
                : null;
        }
    }

    ct = super.getStaticContentType(packet);
    return (ct != null)
        ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
        : null;
}
 
Example 4
Source File: XMLHTTPBindingCodec.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
@Override
public ContentType getStaticContentType(Packet packet) {
    ContentType ct;
    if (packet.getInternalMessage() instanceof MessageDataSource) {
        final MessageDataSource mds = (MessageDataSource)packet.getInternalMessage();
        if (mds.hasUnconsumedDataSource()) {
            ct = getStaticContentType(mds);
            return (ct != null)
                ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
                : null;
        }
    }

    ct = super.getStaticContentType(packet);
    return (ct != null)
        ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
        : null;
}
 
Example 5
Source File: XMLHTTPBindingCodec.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
@Override
public ContentType getStaticContentType(Packet packet) {
    ContentType ct;
    if (packet.getInternalMessage() instanceof MessageDataSource) {
        final MessageDataSource mds = (MessageDataSource)packet.getInternalMessage();
        if (mds.hasUnconsumedDataSource()) {
            ct = getStaticContentType(mds);
            return (ct != null)
                ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
                : null;
        }
    }

    ct = super.getStaticContentType(packet);
    return (ct != null)
        ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
        : null;
}
 
Example 6
Source File: XMLHTTPBindingCodec.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
@Override
public ContentType getStaticContentType(Packet packet) {
    ContentType ct;
    if (packet.getInternalMessage() instanceof MessageDataSource) {
        final MessageDataSource mds = (MessageDataSource)packet.getInternalMessage();
        if (mds.hasUnconsumedDataSource()) {
            ct = getStaticContentType(mds);
            return (ct != null)
                ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
                : null;
        }
    }

    ct = super.getStaticContentType(packet);
    return (ct != null)
        ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
        : null;
}
 
Example 7
Source File: XMLHTTPBindingCodec.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
@Override
public ContentType getStaticContentType(Packet packet) {
    ContentType ct;
    if (packet.getInternalMessage() instanceof MessageDataSource) {
        final MessageDataSource mds = (MessageDataSource)packet.getInternalMessage();
        if (mds.hasUnconsumedDataSource()) {
            ct = getStaticContentType(mds);
            return (ct != null)
                ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
                : null;
        }
    }

    ct = super.getStaticContentType(packet);
    return (ct != null)
        ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
        : null;
}
 
Example 8
Source File: XMLHTTPBindingCodec.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
@Override
public ContentType getStaticContentType(Packet packet) {
    ContentType ct;
    if (packet.getInternalMessage() instanceof MessageDataSource) {
        final MessageDataSource mds = (MessageDataSource)packet.getInternalMessage();
        if (mds.hasUnconsumedDataSource()) {
            ct = getStaticContentType(mds);
            return (ct != null)
                ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
                : null;
        }
    }

    ct = super.getStaticContentType(packet);
    return (ct != null)
        ? setAcceptHeader(packet, ct) //_adaptingContentType.set(packet, ct)
        : null;
}
 
Example 9
Source File: XMLHTTPBindingCodec.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ContentType encode(Packet packet, OutputStream out) throws IOException {
    if (packet.getInternalMessage() instanceof MessageDataSource) {
        final MessageDataSource mds = (MessageDataSource)packet.getInternalMessage();
        if (mds.hasUnconsumedDataSource())
            return setAcceptHeader(packet, encode(mds, out));
    }

    return setAcceptHeader(packet, super.encode(packet, out));
}
 
Example 10
Source File: XMLHTTPBindingCodec.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ContentType encode(Packet packet, OutputStream out) throws IOException {
    if (packet.getInternalMessage() instanceof MessageDataSource) {
        final MessageDataSource mds = (MessageDataSource)packet.getInternalMessage();
        if (mds.hasUnconsumedDataSource())
            return setAcceptHeader(packet, encode(mds, out));
    }

    return setAcceptHeader(packet, super.encode(packet, out));
}
 
Example 11
Source File: XMLHTTPBindingCodec.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ContentType encode(Packet packet, OutputStream out) throws IOException {
    if (packet.getInternalMessage() instanceof MessageDataSource) {
        final MessageDataSource mds = (MessageDataSource)packet.getInternalMessage();
        if (mds.hasUnconsumedDataSource())
            return setAcceptHeader(packet, encode(mds, out));
    }

    return setAcceptHeader(packet, super.encode(packet, out));
}
 
Example 12
Source File: XMLHTTPBindingCodec.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ContentType encode(Packet packet, OutputStream out) throws IOException {
    if (packet.getInternalMessage() instanceof MessageDataSource) {
        final MessageDataSource mds = (MessageDataSource)packet.getInternalMessage();
        if (mds.hasUnconsumedDataSource())
            return setAcceptHeader(packet, encode(mds, out));
    }

    return setAcceptHeader(packet, super.encode(packet, out));
}
 
Example 13
Source File: XMLProviderArgumentBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public DataSource getParameter(Packet packet) {
    Message msg = packet.getInternalMessage();
    return (msg instanceof XMLMessage.MessageDataSource)
            ? ((XMLMessage.MessageDataSource) msg).getDataSource()
            : XMLMessage.getDataSource(msg, binding.getFeatures());
}
 
Example 14
Source File: XMLProviderArgumentBuilder.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public DataSource getParameter(Packet packet) {
    Message msg = packet.getInternalMessage();
    return (msg instanceof XMLMessage.MessageDataSource)
            ? ((XMLMessage.MessageDataSource) msg).getDataSource()
            : XMLMessage.getDataSource(msg, binding.getFeatures());
}
 
Example 15
Source File: DataSourceDispatch.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
DataSource toReturnValue(Packet response) {
    Message message = response.getInternalMessage();
    return (message instanceof MessageDataSource)
            ? ((MessageDataSource)message).getDataSource()
            : XMLMessage.getDataSource(message, binding.getFeatures());
}
 
Example 16
Source File: XMLProviderArgumentBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public DataSource getParameter(Packet packet) {
    Message msg = packet.getInternalMessage();
    return (msg instanceof XMLMessage.MessageDataSource)
            ? ((XMLMessage.MessageDataSource) msg).getDataSource()
            : XMLMessage.getDataSource(msg, binding.getFeatures());
}
 
Example 17
Source File: DataSourceDispatch.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
DataSource toReturnValue(Packet response) {
    Message message = response.getInternalMessage();
    return (message instanceof MessageDataSource)
            ? ((MessageDataSource)message).getDataSource()
            : XMLMessage.getDataSource(message, binding.getFeatures());
}
 
Example 18
Source File: DataSourceDispatch.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
DataSource toReturnValue(Packet response) {
    Message message = response.getInternalMessage();
    return (message instanceof MessageDataSource)
            ? ((MessageDataSource)message).getDataSource()
            : XMLMessage.getDataSource(message, binding.getFeatures());
}
 
Example 19
Source File: XMLProviderArgumentBuilder.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public DataSource getParameter(Packet packet) {
    Message msg = packet.getInternalMessage();
    return (msg instanceof XMLMessage.MessageDataSource)
            ? ((XMLMessage.MessageDataSource) msg).getDataSource()
            : XMLMessage.getDataSource(msg, binding.getFeatures());
}
 
Example 20
Source File: DataSourceDispatch.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
DataSource toReturnValue(Packet response) {
    Message message = response.getInternalMessage();
    return (message instanceof MessageDataSource)
            ? ((MessageDataSource)message).getDataSource()
            : XMLMessage.getDataSource(message, binding.getFeatures());
}