Java Code Examples for com.sun.xml.internal.ws.api.pipe.ThrowableContainerPropertySet#getThrowable()

The following examples show how to use com.sun.xml.internal.ws.api.pipe.ThrowableContainerPropertySet#getThrowable() . 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: AsyncProviderInvokerTube.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public @NotNull NextAction processRequest(@NotNull Packet request) {
    T param = argsBuilder.getParameter(request);
    NoSuspendResumer resumer = new NoSuspendResumer();
    @SuppressWarnings({ "rawtypes", "unchecked" })
            AsyncProviderCallbackImpl callback = new AsyncProviderInvokerTube.AsyncProviderCallbackImpl(request, resumer);
    AsyncWebServiceContext ctxt = new AsyncWebServiceContext(getEndpoint(),request);

    AsyncProviderInvokerTube.LOGGER.fine("Invoking AsyncProvider Endpoint");
    try {
        getInvoker(request).invokeAsyncProvider(request, param, callback, ctxt);
    } catch(Throwable e) {
        LOGGER.log(Level.SEVERE, e.getMessage(), e);
        return doThrow(e);
    }

    synchronized(callback) {
            if (resumer.response != null) {
            // Only used by AsyncProvider<Packet>
            // Implementation may pass Packet containing throwable; use both
                ThrowableContainerPropertySet tc = resumer.response.getSatellite(ThrowableContainerPropertySet.class);
                Throwable t = (tc != null) ? tc.getThrowable() : null;

                    return t != null ? doThrow(resumer.response, t) : doReturnWith(resumer.response);
            }

            // Suspend the Fiber. AsyncProviderCallback will resume the Fiber after
            // it receives response.
            callback.resumer = new FiberResumer();
            return doSuspend();
    }
}
 
Example 2
Source File: AsyncProviderInvokerTube.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void onResume(Packet response) {
    // Only used by AsyncProvider<Packet>
    // Implementation may pass Packet containing throwable; use both
    ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class);
    Throwable t = (tc != null) ? tc.getThrowable() : null;
        fiber.resume(t, response);
}
 
Example 3
Source File: AsyncProviderInvokerTube.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public @NotNull NextAction processRequest(@NotNull Packet request) {
    T param = argsBuilder.getParameter(request);
    NoSuspendResumer resumer = new NoSuspendResumer();
    @SuppressWarnings({ "rawtypes", "unchecked" })
            AsyncProviderCallbackImpl callback = new AsyncProviderInvokerTube.AsyncProviderCallbackImpl(request, resumer);
    AsyncWebServiceContext ctxt = new AsyncWebServiceContext(getEndpoint(),request);

    AsyncProviderInvokerTube.LOGGER.fine("Invoking AsyncProvider Endpoint");
    try {
        getInvoker(request).invokeAsyncProvider(request, param, callback, ctxt);
    } catch(Throwable e) {
        LOGGER.log(Level.SEVERE, e.getMessage(), e);
        return doThrow(e);
    }

    synchronized(callback) {
            if (resumer.response != null) {
            // Only used by AsyncProvider<Packet>
            // Implementation may pass Packet containing throwable; use both
                ThrowableContainerPropertySet tc = resumer.response.getSatellite(ThrowableContainerPropertySet.class);
                Throwable t = (tc != null) ? tc.getThrowable() : null;

                    return t != null ? doThrow(resumer.response, t) : doReturnWith(resumer.response);
            }

            // Suspend the Fiber. AsyncProviderCallback will resume the Fiber after
            // it receives response.
            callback.resumer = new FiberResumer();
            return doSuspend();
    }
}
 
Example 4
Source File: AsyncProviderInvokerTube.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void onResume(Packet response) {
    // Only used by AsyncProvider<Packet>
    // Implementation may pass Packet containing throwable; use both
    ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class);
    Throwable t = (tc != null) ? tc.getThrowable() : null;
        fiber.resume(t, response);
}
 
Example 5
Source File: AsyncProviderInvokerTube.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public @NotNull NextAction processRequest(@NotNull Packet request) {
    T param = argsBuilder.getParameter(request);
    NoSuspendResumer resumer = new NoSuspendResumer();
    @SuppressWarnings({ "rawtypes", "unchecked" })
            AsyncProviderCallbackImpl callback = new AsyncProviderInvokerTube.AsyncProviderCallbackImpl(request, resumer);
    AsyncWebServiceContext ctxt = new AsyncWebServiceContext(getEndpoint(),request);

    AsyncProviderInvokerTube.LOGGER.fine("Invoking AsyncProvider Endpoint");
    try {
        getInvoker(request).invokeAsyncProvider(request, param, callback, ctxt);
    } catch(Throwable e) {
        LOGGER.log(Level.SEVERE, e.getMessage(), e);
        return doThrow(e);
    }

    synchronized(callback) {
            if (resumer.response != null) {
            // Only used by AsyncProvider<Packet>
            // Implementation may pass Packet containing throwable; use both
                ThrowableContainerPropertySet tc = resumer.response.getSatellite(ThrowableContainerPropertySet.class);
                Throwable t = (tc != null) ? tc.getThrowable() : null;

                    return t != null ? doThrow(resumer.response, t) : doReturnWith(resumer.response);
            }

            // Suspend the Fiber. AsyncProviderCallback will resume the Fiber after
            // it receives response.
            callback.resumer = new FiberResumer();
            return doSuspend();
    }
}
 
Example 6
Source File: AsyncProviderInvokerTube.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void onResume(Packet response) {
    // Only used by AsyncProvider<Packet>
    // Implementation may pass Packet containing throwable; use both
    ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class);
    Throwable t = (tc != null) ? tc.getThrowable() : null;
        fiber.resume(t, response);
}
 
Example 7
Source File: AsyncProviderInvokerTube.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public @NotNull NextAction processRequest(@NotNull Packet request) {
    T param = argsBuilder.getParameter(request);
    NoSuspendResumer resumer = new NoSuspendResumer();
    @SuppressWarnings({ "rawtypes", "unchecked" })
            AsyncProviderCallbackImpl callback = new AsyncProviderInvokerTube.AsyncProviderCallbackImpl(request, resumer);
    AsyncWebServiceContext ctxt = new AsyncWebServiceContext(getEndpoint(),request);

    AsyncProviderInvokerTube.LOGGER.fine("Invoking AsyncProvider Endpoint");
    try {
        getInvoker(request).invokeAsyncProvider(request, param, callback, ctxt);
    } catch(Throwable e) {
        LOGGER.log(Level.SEVERE, e.getMessage(), e);
        return doThrow(e);
    }

    synchronized(callback) {
            if (resumer.response != null) {
            // Only used by AsyncProvider<Packet>
            // Implementation may pass Packet containing throwable; use both
                ThrowableContainerPropertySet tc = resumer.response.getSatellite(ThrowableContainerPropertySet.class);
                Throwable t = (tc != null) ? tc.getThrowable() : null;

                    return t != null ? doThrow(resumer.response, t) : doReturnWith(resumer.response);
            }

            // Suspend the Fiber. AsyncProviderCallback will resume the Fiber after
            // it receives response.
            callback.resumer = new FiberResumer();
            return doSuspend();
    }
}
 
Example 8
Source File: AsyncProviderInvokerTube.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void onResume(Packet response) {
    // Only used by AsyncProvider<Packet>
    // Implementation may pass Packet containing throwable; use both
    ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class);
    Throwable t = (tc != null) ? tc.getThrowable() : null;
        fiber.resume(t, response);
}
 
Example 9
Source File: AsyncProviderInvokerTube.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public @NotNull NextAction processRequest(@NotNull Packet request) {
    T param = argsBuilder.getParameter(request);
    NoSuspendResumer resumer = new NoSuspendResumer();
    @SuppressWarnings({ "rawtypes", "unchecked" })
            AsyncProviderCallbackImpl callback = new AsyncProviderInvokerTube.AsyncProviderCallbackImpl(request, resumer);
    AsyncWebServiceContext ctxt = new AsyncWebServiceContext(getEndpoint(),request);

    AsyncProviderInvokerTube.LOGGER.fine("Invoking AsyncProvider Endpoint");
    try {
        getInvoker(request).invokeAsyncProvider(request, param, callback, ctxt);
    } catch(Throwable e) {
        LOGGER.log(Level.SEVERE, e.getMessage(), e);
        return doThrow(e);
    }

    synchronized(callback) {
            if (resumer.response != null) {
            // Only used by AsyncProvider<Packet>
            // Implementation may pass Packet containing throwable; use both
                ThrowableContainerPropertySet tc = resumer.response.getSatellite(ThrowableContainerPropertySet.class);
                Throwable t = (tc != null) ? tc.getThrowable() : null;

                    return t != null ? doThrow(resumer.response, t) : doReturnWith(resumer.response);
            }

            // Suspend the Fiber. AsyncProviderCallback will resume the Fiber after
            // it receives response.
            callback.resumer = new FiberResumer();
            return doSuspend();
    }
}
 
Example 10
Source File: AsyncProviderInvokerTube.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void onResume(Packet response) {
    // Only used by AsyncProvider<Packet>
    // Implementation may pass Packet containing throwable; use both
    ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class);
    Throwable t = (tc != null) ? tc.getThrowable() : null;
        fiber.resume(t, response);
}
 
Example 11
Source File: AsyncProviderInvokerTube.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public @NotNull NextAction processRequest(@NotNull Packet request) {
    T param = argsBuilder.getParameter(request);
    NoSuspendResumer resumer = new NoSuspendResumer();
    @SuppressWarnings({ "rawtypes", "unchecked" })
            AsyncProviderCallbackImpl callback = new AsyncProviderInvokerTube.AsyncProviderCallbackImpl(request, resumer);
    AsyncWebServiceContext ctxt = new AsyncWebServiceContext(getEndpoint(),request);

    AsyncProviderInvokerTube.LOGGER.fine("Invoking AsyncProvider Endpoint");
    try {
        getInvoker(request).invokeAsyncProvider(request, param, callback, ctxt);
    } catch(Throwable e) {
        LOGGER.log(Level.SEVERE, e.getMessage(), e);
        return doThrow(e);
    }

    synchronized(callback) {
            if (resumer.response != null) {
            // Only used by AsyncProvider<Packet>
            // Implementation may pass Packet containing throwable; use both
                ThrowableContainerPropertySet tc = resumer.response.getSatellite(ThrowableContainerPropertySet.class);
                Throwable t = (tc != null) ? tc.getThrowable() : null;

                    return t != null ? doThrow(resumer.response, t) : doReturnWith(resumer.response);
            }

            // Suspend the Fiber. AsyncProviderCallback will resume the Fiber after
            // it receives response.
            callback.resumer = new FiberResumer();
            return doSuspend();
    }
}
 
Example 12
Source File: AsyncProviderInvokerTube.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void onResume(Packet response) {
    // Only used by AsyncProvider<Packet>
    // Implementation may pass Packet containing throwable; use both
    ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class);
    Throwable t = (tc != null) ? tc.getThrowable() : null;
        fiber.resume(t, response);
}
 
Example 13
Source File: AsyncProviderInvokerTube.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public @NotNull NextAction processRequest(@NotNull Packet request) {
    T param = argsBuilder.getParameter(request);
    NoSuspendResumer resumer = new NoSuspendResumer();
    @SuppressWarnings({ "rawtypes", "unchecked" })
            AsyncProviderCallbackImpl callback = new AsyncProviderInvokerTube.AsyncProviderCallbackImpl(request, resumer);
    AsyncWebServiceContext ctxt = new AsyncWebServiceContext(getEndpoint(),request);

    AsyncProviderInvokerTube.LOGGER.fine("Invoking AsyncProvider Endpoint");
    try {
        getInvoker(request).invokeAsyncProvider(request, param, callback, ctxt);
    } catch(Throwable e) {
        LOGGER.log(Level.SEVERE, e.getMessage(), e);
        return doThrow(e);
    }

    synchronized(callback) {
            if (resumer.response != null) {
            // Only used by AsyncProvider<Packet>
            // Implementation may pass Packet containing throwable; use both
                ThrowableContainerPropertySet tc = resumer.response.getSatellite(ThrowableContainerPropertySet.class);
                Throwable t = (tc != null) ? tc.getThrowable() : null;

                    return t != null ? doThrow(resumer.response, t) : doReturnWith(resumer.response);
            }

            // Suspend the Fiber. AsyncProviderCallback will resume the Fiber after
            // it receives response.
            callback.resumer = new FiberResumer();
            return doSuspend();
    }
}
 
Example 14
Source File: AsyncProviderInvokerTube.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void onResume(Packet response) {
    // Only used by AsyncProvider<Packet>
    // Implementation may pass Packet containing throwable; use both
    ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class);
    Throwable t = (tc != null) ? tc.getThrowable() : null;
        fiber.resume(t, response);
}
 
Example 15
Source File: AsyncProviderInvokerTube.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public @NotNull NextAction processRequest(@NotNull Packet request) {
    T param = argsBuilder.getParameter(request);
    NoSuspendResumer resumer = new NoSuspendResumer();
    @SuppressWarnings({ "rawtypes", "unchecked" })
            AsyncProviderCallbackImpl callback = new AsyncProviderInvokerTube.AsyncProviderCallbackImpl(request, resumer);
    AsyncWebServiceContext ctxt = new AsyncWebServiceContext(getEndpoint(),request);

    AsyncProviderInvokerTube.LOGGER.fine("Invoking AsyncProvider Endpoint");
    try {
        getInvoker(request).invokeAsyncProvider(request, param, callback, ctxt);
    } catch(Throwable e) {
        LOGGER.log(Level.SEVERE, e.getMessage(), e);
        return doThrow(e);
    }

    synchronized(callback) {
            if (resumer.response != null) {
            // Only used by AsyncProvider<Packet>
            // Implementation may pass Packet containing throwable; use both
                ThrowableContainerPropertySet tc = resumer.response.getSatellite(ThrowableContainerPropertySet.class);
                Throwable t = (tc != null) ? tc.getThrowable() : null;

                    return t != null ? doThrow(resumer.response, t) : doReturnWith(resumer.response);
            }

            // Suspend the Fiber. AsyncProviderCallback will resume the Fiber after
            // it receives response.
            callback.resumer = new FiberResumer();
            return doSuspend();
    }
}
 
Example 16
Source File: AsyncProviderInvokerTube.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void onResume(Packet response) {
    // Only used by AsyncProvider<Packet>
    // Implementation may pass Packet containing throwable; use both
    ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class);
    Throwable t = (tc != null) ? tc.getThrowable() : null;
        fiber.resume(t, response);
}