Java Code Examples for com.sun.xml.internal.ws.resources.ServerMessages#NO_CURRENT_PACKET

The following examples show how to use com.sun.xml.internal.ws.resources.ServerMessages#NO_CURRENT_PACKET . 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: InvokerTube.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * This method can be called while the user service is servicing the request
 * synchronously, to obtain the current request packet.
 *
 * <p>
 * This is primarily designed for {@link StatefulInstanceResolver}. Use with care.
 */
public static @NotNull Packet getCurrentPacket() {
    Packet packet = packets.get();
    if(packet==null)
        throw new WebServiceException(ServerMessages.NO_CURRENT_PACKET());
    return packet;
}
 
Example 2
Source File: InvokerTube.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * This method can be called while the user service is servicing the request
 * synchronously, to obtain the current request packet.
 *
 * <p>
 * This is primarily designed for {@link StatefulInstanceResolver}. Use with care.
 */
public static @NotNull Packet getCurrentPacket() {
    Packet packet = packets.get();
    if(packet==null)
        throw new WebServiceException(ServerMessages.NO_CURRENT_PACKET());
    return packet;
}
 
Example 3
Source File: InvokerTube.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * This method can be called while the user service is servicing the request
 * synchronously, to obtain the current request packet.
 *
 * <p>
 * This is primarily designed for {@link StatefulInstanceResolver}. Use with care.
 */
public static @NotNull Packet getCurrentPacket() {
    Packet packet = packets.get();
    if(packet==null)
        throw new WebServiceException(ServerMessages.NO_CURRENT_PACKET());
    return packet;
}
 
Example 4
Source File: InvokerTube.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * This method can be called while the user service is servicing the request
 * synchronously, to obtain the current request packet.
 *
 * <p>
 * This is primarily designed for {@link StatefulInstanceResolver}. Use with care.
 */
public static @NotNull Packet getCurrentPacket() {
    Packet packet = packets.get();
    if(packet==null)
        throw new WebServiceException(ServerMessages.NO_CURRENT_PACKET());
    return packet;
}
 
Example 5
Source File: InvokerTube.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * This method can be called while the user service is servicing the request
 * synchronously, to obtain the current request packet.
 *
 * <p>
 * This is primarily designed for {@link StatefulInstanceResolver}. Use with care.
 */
public static @NotNull Packet getCurrentPacket() {
    Packet packet = packets.get();
    if(packet==null)
        throw new WebServiceException(ServerMessages.NO_CURRENT_PACKET());
    return packet;
}
 
Example 6
Source File: InvokerTube.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * This method can be called while the user service is servicing the request
 * synchronously, to obtain the current request packet.
 *
 * <p>
 * This is primarily designed for {@link StatefulInstanceResolver}. Use with care.
 */
public static @NotNull Packet getCurrentPacket() {
    Packet packet = packets.get();
    if(packet==null)
        throw new WebServiceException(ServerMessages.NO_CURRENT_PACKET());
    return packet;
}
 
Example 7
Source File: InvokerTube.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * This method can be called while the user service is servicing the request
 * synchronously, to obtain the current request packet.
 *
 * <p>
 * This is primarily designed for {@link StatefulInstanceResolver}. Use with care.
 */
public static @NotNull Packet getCurrentPacket() {
    Packet packet = packets.get();
    if(packet==null)
        throw new WebServiceException(ServerMessages.NO_CURRENT_PACKET());
    return packet;
}
 
Example 8
Source File: InvokerTube.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * This method can be called while the user service is servicing the request
 * synchronously, to obtain the current request packet.
 *
 * <p>
 * This is primarily designed for {@link StatefulInstanceResolver}. Use with care.
 */
public static @NotNull Packet getCurrentPacket() {
    Packet packet = packets.get();
    if(packet==null)
        throw new WebServiceException(ServerMessages.NO_CURRENT_PACKET());
    return packet;
}