Java Code Examples for com.sun.xml.internal.ws.api.message.Packet#getSatellite()
The following examples show how to use
com.sun.xml.internal.ws.api.message.Packet#getSatellite() .
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: WsaServerTube.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
@Override public @NotNull NextAction processException(Throwable t) { final Packet response = Fiber.current().getPacket(); ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { tc = new ThrowableContainerPropertySet(t); response.addSatellite(tc); } else if (t != tc.getThrowable()) { // This is a pathological case where an exception happens after a previous exception. // Make sure you report the latest one. tc.setThrowable(t); } return processResponse(response.endpoint.createServiceResponseForException(tc, response, soapVersion, wsdlPort, response.endpoint.getSEIModel(), binding)); }
Example 2
Source File: WsaServerTube.java From hottub with GNU General Public License v2.0 | 6 votes |
@Override public @NotNull NextAction processException(Throwable t) { final Packet response = Fiber.current().getPacket(); ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { tc = new ThrowableContainerPropertySet(t); response.addSatellite(tc); } else if (t != tc.getThrowable()) { // This is a pathological case where an exception happens after a previous exception. // Make sure you report the latest one. tc.setThrowable(t); } return processResponse(response.endpoint.createServiceResponseForException(tc, response, soapVersion, wsdlPort, response.endpoint.getSEIModel(), binding)); }
Example 3
Source File: WsaServerTube.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
@Override public @NotNull NextAction processException(Throwable t) { final Packet response = Fiber.current().getPacket(); ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { tc = new ThrowableContainerPropertySet(t); response.addSatellite(tc); } else if (t != tc.getThrowable()) { // This is a pathological case where an exception happens after a previous exception. // Make sure you report the latest one. tc.setThrowable(t); } return processResponse(response.endpoint.createServiceResponseForException(tc, response, soapVersion, wsdlPort, response.endpoint.getSEIModel(), binding)); }
Example 4
Source File: WsaServerTube.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@Override public @NotNull NextAction processException(Throwable t) { final Packet response = Fiber.current().getPacket(); ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { tc = new ThrowableContainerPropertySet(t); response.addSatellite(tc); } else if (t != tc.getThrowable()) { // This is a pathological case where an exception happens after a previous exception. // Make sure you report the latest one. tc.setThrowable(t); } return processResponse(response.endpoint.createServiceResponseForException(tc, response, soapVersion, wsdlPort, response.endpoint.getSEIModel(), binding)); }
Example 5
Source File: WsaServerTube.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
@Override public @NotNull NextAction processException(Throwable t) { final Packet response = Fiber.current().getPacket(); ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { tc = new ThrowableContainerPropertySet(t); response.addSatellite(tc); } else if (t != tc.getThrowable()) { // This is a pathological case where an exception happens after a previous exception. // Make sure you report the latest one. tc.setThrowable(t); } return processResponse(response.endpoint.createServiceResponseForException(tc, response, soapVersion, wsdlPort, response.endpoint.getSEIModel(), binding)); }
Example 6
Source File: WsaServerTube.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override public @NotNull NextAction processException(Throwable t) { final Packet response = Fiber.current().getPacket(); ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { tc = new ThrowableContainerPropertySet(t); response.addSatellite(tc); } else if (t != tc.getThrowable()) { // This is a pathological case where an exception happens after a previous exception. // Make sure you report the latest one. tc.setThrowable(t); } return processResponse(response.endpoint.createServiceResponseForException(tc, response, soapVersion, wsdlPort, response.endpoint.getSEIModel(), binding)); }
Example 7
Source File: WsaServerTube.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
@Override public @NotNull NextAction processException(Throwable t) { final Packet response = Fiber.current().getPacket(); ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { tc = new ThrowableContainerPropertySet(t); response.addSatellite(tc); } else if (t != tc.getThrowable()) { // This is a pathological case where an exception happens after a previous exception. // Make sure you report the latest one. tc.setThrowable(t); } return processResponse(response.endpoint.createServiceResponseForException(tc, response, soapVersion, wsdlPort, response.endpoint.getSEIModel(), binding)); }
Example 8
Source File: WsaServerTube.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@Override public @NotNull NextAction processException(Throwable t) { final Packet response = Fiber.current().getPacket(); ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { tc = new ThrowableContainerPropertySet(t); response.addSatellite(tc); } else if (t != tc.getThrowable()) { // This is a pathological case where an exception happens after a previous exception. // Make sure you report the latest one. tc.setThrowable(t); } return processResponse(response.endpoint.createServiceResponseForException(tc, response, soapVersion, wsdlPort, response.endpoint.getSEIModel(), binding)); }
Example 9
Source File: AsyncProviderInvokerTube.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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 10
Source File: AsyncProviderInvokerTube.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
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 |
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 12
Source File: AsyncProviderInvokerTube.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
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 jdk8u60 with GNU General Public License v2.0 | 5 votes |
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 14
Source File: AsyncProviderInvokerTube.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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 TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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 16
Source File: WSEndpointImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private void processAsync(final Packet request, final CompletionCallback callback, FiberContextSwitchInterceptor interceptor, boolean schedule) { Container old = ContainerResolver.getDefault().enterContainer(container); try { request.endpoint = WSEndpointImpl.this; request.addSatellite(wsdlProperties); Fiber fiber = engine.createFiber(); fiber.setDeliverThrowableInPacket(true); if (interceptor != null) { fiber.addInterceptor(interceptor); } final Tube tube = tubePool.take(); Fiber.CompletionCallback cbak = new Fiber.CompletionCallback() { public void onCompletion(@NotNull Packet response) { ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { // Only recycle tubes in non-exception path as some Tubes may be // in invalid state following exception tubePool.recycle(tube); } if (callback != null) { if (tc != null) { response = createServiceResponseForException(tc, response, soapVersion, request.endpoint.getPort(), null, request.endpoint.getBinding()); } callback.onCompletion(response); } } public void onCompletion(@NotNull Throwable error) { // will never be called now that we are using // fiber.setDeliverThrowableInPacket(true); throw new IllegalStateException(); } }; fiber.start(tube, request, cbak, binding.isFeatureEnabled(SyncStartForAsyncFeature.class) || !schedule); } finally { ContainerResolver.getDefault().exitContainer(old); } }
Example 17
Source File: WSEndpointImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private void processAsync(final Packet request, final CompletionCallback callback, FiberContextSwitchInterceptor interceptor, boolean schedule) { Container old = ContainerResolver.getDefault().enterContainer(container); try { request.endpoint = WSEndpointImpl.this; request.addSatellite(wsdlProperties); Fiber fiber = engine.createFiber(); fiber.setDeliverThrowableInPacket(true); if (interceptor != null) { fiber.addInterceptor(interceptor); } final Tube tube = tubePool.take(); Fiber.CompletionCallback cbak = new Fiber.CompletionCallback() { public void onCompletion(@NotNull Packet response) { ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { // Only recycle tubes in non-exception path as some Tubes may be // in invalid state following exception tubePool.recycle(tube); } if (callback != null) { if (tc != null) { response = createServiceResponseForException(tc, response, soapVersion, request.endpoint.getPort(), null, request.endpoint.getBinding()); } callback.onCompletion(response); } } public void onCompletion(@NotNull Throwable error) { // will never be called now that we are using // fiber.setDeliverThrowableInPacket(true); throw new IllegalStateException(); } }; fiber.start(tube, request, cbak, binding.isFeatureEnabled(SyncStartForAsyncFeature.class) || !schedule); } finally { ContainerResolver.getDefault().exitContainer(old); } }
Example 18
Source File: WSEndpointImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private void processAsync(final Packet request, final CompletionCallback callback, FiberContextSwitchInterceptor interceptor, boolean schedule) { Container old = ContainerResolver.getDefault().enterContainer(container); try { request.endpoint = WSEndpointImpl.this; request.addSatellite(wsdlProperties); Fiber fiber = engine.createFiber(); fiber.setDeliverThrowableInPacket(true); if (interceptor != null) { fiber.addInterceptor(interceptor); } final Tube tube = tubePool.take(); Fiber.CompletionCallback cbak = new Fiber.CompletionCallback() { public void onCompletion(@NotNull Packet response) { ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { // Only recycle tubes in non-exception path as some Tubes may be // in invalid state following exception tubePool.recycle(tube); } if (callback != null) { if (tc != null) { response = createServiceResponseForException(tc, response, soapVersion, request.endpoint.getPort(), null, request.endpoint.getBinding()); } callback.onCompletion(response); } } public void onCompletion(@NotNull Throwable error) { // will never be called now that we are using // fiber.setDeliverThrowableInPacket(true); throw new IllegalStateException(); } }; fiber.start(tube, request, cbak, binding.isFeatureEnabled(SyncStartForAsyncFeature.class) || !schedule); } finally { ContainerResolver.getDefault().exitContainer(old); } }
Example 19
Source File: WSEndpointImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private void processAsync(final Packet request, final CompletionCallback callback, FiberContextSwitchInterceptor interceptor, boolean schedule) { Container old = ContainerResolver.getDefault().enterContainer(container); try { request.endpoint = WSEndpointImpl.this; request.addSatellite(wsdlProperties); Fiber fiber = engine.createFiber(); fiber.setDeliverThrowableInPacket(true); if (interceptor != null) { fiber.addInterceptor(interceptor); } final Tube tube = tubePool.take(); Fiber.CompletionCallback cbak = new Fiber.CompletionCallback() { public void onCompletion(@NotNull Packet response) { ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { // Only recycle tubes in non-exception path as some Tubes may be // in invalid state following exception tubePool.recycle(tube); } if (callback != null) { if (tc != null) { response = createServiceResponseForException(tc, response, soapVersion, request.endpoint.getPort(), null, request.endpoint.getBinding()); } callback.onCompletion(response); } } public void onCompletion(@NotNull Throwable error) { // will never be called now that we are using // fiber.setDeliverThrowableInPacket(true); throw new IllegalStateException(); } }; fiber.start(tube, request, cbak, binding.isFeatureEnabled(SyncStartForAsyncFeature.class) || !schedule); } finally { ContainerResolver.getDefault().exitContainer(old); } }
Example 20
Source File: WSEndpointImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private void processAsync(final Packet request, final CompletionCallback callback, FiberContextSwitchInterceptor interceptor, boolean schedule) { Container old = ContainerResolver.getDefault().enterContainer(container); try { request.endpoint = WSEndpointImpl.this; request.addSatellite(wsdlProperties); Fiber fiber = engine.createFiber(); fiber.setDeliverThrowableInPacket(true); if (interceptor != null) { fiber.addInterceptor(interceptor); } final Tube tube = tubePool.take(); Fiber.CompletionCallback cbak = new Fiber.CompletionCallback() { public void onCompletion(@NotNull Packet response) { ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { // Only recycle tubes in non-exception path as some Tubes may be // in invalid state following exception tubePool.recycle(tube); } if (callback != null) { if (tc != null) { response = createServiceResponseForException(tc, response, soapVersion, request.endpoint.getPort(), null, request.endpoint.getBinding()); } callback.onCompletion(response); } } public void onCompletion(@NotNull Throwable error) { // will never be called now that we are using // fiber.setDeliverThrowableInPacket(true); throw new IllegalStateException(); } }; fiber.start(tube, request, cbak, binding.isFeatureEnabled(SyncStartForAsyncFeature.class) || !schedule); } finally { ContainerResolver.getDefault().exitContainer(old); } }