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 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 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 NextAction processRequest(Packet request) { WSDLPort port = getEndpoint().getPort(); WSBinding binding = getEndpoint().getBinding(); T param = argsBuilder.getParameter(request); LOGGER.fine("Invoking Provider Endpoint"); T returnValue; try { returnValue = getInvoker(request).invokeProvider(request, param); } catch(Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); Packet response = argsBuilder.getResponse(request,e,port,binding); return doReturnWith(response); } if (returnValue == null) { // Oneway. Send response code immediately for transports(like HTTP) // Don't do this above, since close() may generate some exceptions if (request.transportBackChannel != null) { request.transportBackChannel.close(); } } Packet response = argsBuilder.getResponse(request,returnValue,port,binding); // Only used by Provider<Packet> // Implementation may pass Packet containing throwable; use both ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); Throwable t = (tc != null) ? tc.getThrowable() : null; return t != null ? doThrow(response, t) : doReturnWith(response); }
public NextAction processRequest(Packet request) { WSDLPort port = getEndpoint().getPort(); WSBinding binding = getEndpoint().getBinding(); T param = argsBuilder.getParameter(request); LOGGER.fine("Invoking Provider Endpoint"); T returnValue; try { returnValue = getInvoker(request).invokeProvider(request, param); } catch(Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); Packet response = argsBuilder.getResponse(request,e,port,binding); return doReturnWith(response); } if (returnValue == null) { // Oneway. Send response code immediately for transports(like HTTP) // Don't do this above, since close() may generate some exceptions if (request.transportBackChannel != null) { request.transportBackChannel.close(); } } Packet response = argsBuilder.getResponse(request,returnValue,port,binding); // Only used by Provider<Packet> // Implementation may pass Packet containing throwable; use both ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); Throwable t = (tc != null) ? tc.getThrowable() : null; return t != null ? doThrow(response, t) : doReturnWith(response); }
public NextAction processRequest(Packet request) { WSDLPort port = getEndpoint().getPort(); WSBinding binding = getEndpoint().getBinding(); T param = argsBuilder.getParameter(request); LOGGER.fine("Invoking Provider Endpoint"); T returnValue; try { returnValue = getInvoker(request).invokeProvider(request, param); } catch(Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); Packet response = argsBuilder.getResponse(request,e,port,binding); return doReturnWith(response); } if (returnValue == null) { // Oneway. Send response code immediately for transports(like HTTP) // Don't do this above, since close() may generate some exceptions if (request.transportBackChannel != null) { request.transportBackChannel.close(); } } Packet response = argsBuilder.getResponse(request,returnValue,port,binding); // Only used by Provider<Packet> // Implementation may pass Packet containing throwable; use both ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); Throwable t = (tc != null) ? tc.getThrowable() : null; return t != null ? doThrow(response, t) : doReturnWith(response); }
ThrowableContainerPropertySet tc = resumer.response.getSatellite(ThrowableContainerPropertySet.class); Throwable t = (tc != null) ? tc.getThrowable() : null;
ThrowableContainerPropertySet tc = resumer.response.getSatellite(ThrowableContainerPropertySet.class); Throwable t = (tc != null) ? tc.getThrowable() : null;
ThrowableContainerPropertySet tc = resumer.response.getSatellite(ThrowableContainerPropertySet.class); Throwable t = (tc != null) ? tc.getThrowable() : null;
@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)); }
@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)); }
@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)); }
final AddressingPropertySet addressingPropertySet = packet.getSatellite(AddressingPropertySet.class); oneWayFeature = addressingPropertySet == null ? oneWayFeature : new OneWayFeature(addressingPropertySet, addressingVersion);
final AddressingPropertySet addressingPropertySet = packet.getSatellite(AddressingPropertySet.class); oneWayFeature = addressingPropertySet == null ? oneWayFeature : new OneWayFeature(addressingPropertySet, addressingVersion);
final AddressingPropertySet addressingPropertySet = packet.getSatellite(AddressingPropertySet.class); oneWayFeature = addressingPropertySet == null ? oneWayFeature : new OneWayFeature(addressingPropertySet, addressingVersion);
WsaPropertyBag wpb = getSatellite(WsaPropertyBag.class); Message msg = getMessage();
WsaPropertyBag wpb = getSatellite(WsaPropertyBag.class); Message msg = getMessage();
WsaPropertyBag wpb = getSatellite(WsaPropertyBag.class); Message msg = getMessage();