com.sun.xml.internal.ws.api.pipe.ThrowableContainerPropertySet Java Examples

The following examples show how to use com.sun.xml.internal.ws.api.pipe.ThrowableContainerPropertySet. 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: WSEndpoint.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This is used by WsaServerTube and WSEndpointImpl to create a Packet with SOAPFault message from a Java exception.
 */
public abstract Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                         final Packet      responsePacket,
                                                         final SOAPVersion soapVersion,
                                                         final WSDLPort    wsdlPort,
                                                         final SEIModel    seiModel,
                                                         final WSBinding   binding);
 
Example #2
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);
}
 
Example #3
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 #4
Source File: WSEndpointMOMProxy.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                final Packet      responsePacket,
                                                final SOAPVersion soapVersion,
                                                final WSDLPort    wsdlPort,
                                                final SEIModel    seiModel,
                                                final WSBinding   binding)
{
    return wsEndpoint.createServiceResponseForException(tc, responsePacket, soapVersion,
                                                        wsdlPort, seiModel, binding);
}
 
Example #5
Source File: WSEndpoint.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This is used by WsaServerTube and WSEndpointImpl to create a Packet with SOAPFault message from a Java exception.
 */
public abstract Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                         final Packet      responsePacket,
                                                         final SOAPVersion soapVersion,
                                                         final WSDLPort    wsdlPort,
                                                         final SEIModel    seiModel,
                                                         final WSBinding   binding);
 
Example #6
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 #7
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 #8
Source File: WSEndpointMOMProxy.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                final Packet      responsePacket,
                                                final SOAPVersion soapVersion,
                                                final WSDLPort    wsdlPort,
                                                final SEIModel    seiModel,
                                                final WSBinding   binding)
{
    return wsEndpoint.createServiceResponseForException(tc, responsePacket, soapVersion,
                                                        wsdlPort, seiModel, binding);
}
 
Example #9
Source File: WSEndpoint.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This is used by WsaServerTube and WSEndpointImpl to create a Packet with SOAPFault message from a Java exception.
 */
public abstract Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                         final Packet      responsePacket,
                                                         final SOAPVersion soapVersion,
                                                         final WSDLPort    wsdlPort,
                                                         final SEIModel    seiModel,
                                                         final WSBinding   binding);
 
Example #10
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 #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: WSEndpointMOMProxy.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                final Packet      responsePacket,
                                                final SOAPVersion soapVersion,
                                                final WSDLPort    wsdlPort,
                                                final SEIModel    seiModel,
                                                final WSBinding   binding)
{
    return wsEndpoint.createServiceResponseForException(tc, responsePacket, soapVersion,
                                                        wsdlPort, seiModel, binding);
}
 
Example #13
Source File: WSEndpoint.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This is used by WsaServerTube and WSEndpointImpl to create a Packet with SOAPFault message from a Java exception.
 */
public abstract Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                         final Packet      responsePacket,
                                                         final SOAPVersion soapVersion,
                                                         final WSDLPort    wsdlPort,
                                                         final SEIModel    seiModel,
                                                         final WSBinding   binding);
 
Example #14
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 #15
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 #16
Source File: WSEndpointMOMProxy.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                final Packet      responsePacket,
                                                final SOAPVersion soapVersion,
                                                final WSDLPort    wsdlPort,
                                                final SEIModel    seiModel,
                                                final WSBinding   binding)
{
    return wsEndpoint.createServiceResponseForException(tc, responsePacket, soapVersion,
                                                        wsdlPort, seiModel, binding);
}
 
Example #17
Source File: WSEndpoint.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This is used by WsaServerTube and WSEndpointImpl to create a Packet with SOAPFault message from a Java exception.
 */
public abstract Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                         final Packet      responsePacket,
                                                         final SOAPVersion soapVersion,
                                                         final WSDLPort    wsdlPort,
                                                         final SEIModel    seiModel,
                                                         final WSBinding   binding);
 
Example #18
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 #19
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 #20
Source File: WSEndpointMOMProxy.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                final Packet      responsePacket,
                                                final SOAPVersion soapVersion,
                                                final WSDLPort    wsdlPort,
                                                final SEIModel    seiModel,
                                                final WSBinding   binding)
{
    return wsEndpoint.createServiceResponseForException(tc, responsePacket, soapVersion,
                                                        wsdlPort, seiModel, binding);
}
 
Example #21
Source File: WSEndpoint.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This is used by WsaServerTube and WSEndpointImpl to create a Packet with SOAPFault message from a Java exception.
 */
public abstract Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                         final Packet      responsePacket,
                                                         final SOAPVersion soapVersion,
                                                         final WSDLPort    wsdlPort,
                                                         final SEIModel    seiModel,
                                                         final WSBinding   binding);
 
Example #22
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 #23
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 #24
Source File: WSEndpointMOMProxy.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                final Packet      responsePacket,
                                                final SOAPVersion soapVersion,
                                                final WSDLPort    wsdlPort,
                                                final SEIModel    seiModel,
                                                final WSBinding   binding)
{
    return wsEndpoint.createServiceResponseForException(tc, responsePacket, soapVersion,
                                                        wsdlPort, seiModel, binding);
}
 
Example #25
Source File: WSEndpoint.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This is used by WsaServerTube and WSEndpointImpl to create a Packet with SOAPFault message from a Java exception.
 */
public abstract Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                         final Packet      responsePacket,
                                                         final SOAPVersion soapVersion,
                                                         final WSDLPort    wsdlPort,
                                                         final SEIModel    seiModel,
                                                         final WSBinding   binding);
 
Example #26
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 #27
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 #28
Source File: WSEndpointMOMProxy.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                final Packet      responsePacket,
                                                final SOAPVersion soapVersion,
                                                final WSDLPort    wsdlPort,
                                                final SEIModel    seiModel,
                                                final WSBinding   binding)
{
    return wsEndpoint.createServiceResponseForException(tc, responsePacket, soapVersion,
                                                        wsdlPort, seiModel, binding);
}
 
Example #29
Source File: WSEndpoint.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This is used by WsaServerTube and WSEndpointImpl to create a Packet with SOAPFault message from a Java exception.
 */
public abstract Packet createServiceResponseForException(final ThrowableContainerPropertySet tc,
                                                         final Packet      responsePacket,
                                                         final SOAPVersion soapVersion,
                                                         final WSDLPort    wsdlPort,
                                                         final SEIModel    seiModel,
                                                         final WSBinding   binding);
 
Example #30
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);
}