cc.handleResponse(null, null);
public void onMessage(Message message) { Exception ex = message.getContent(Exception.class); if (ex != null) { completeExchange(message.getExchange()); if (message.getContent(Exception.class) == null) { // handle the right response List<Object> resList = null; Message inMsg = message.getExchange().getInMessage(); Map<String, Object> ctx = responseContext.get(Thread.currentThread()); resList = CastUtils.cast(inMsg.getContent(List.class)); Object[] result = resList == null ? null : resList.toArray(); callback.handleResponse(ctx, result); return; } } outFaultObserver.onMessage(message); } });
public void onMessage(Message message) { Exception ex = message.getContent(Exception.class); if (ex != null) { completeExchange(message.getExchange()); if (message.getContent(Exception.class) == null) { // handle the right response List<Object> resList = null; Message inMsg = message.getExchange().getInMessage(); Map<String, Object> ctx = responseContext.get(Thread.currentThread()); resList = CastUtils.cast(inMsg.getContent(List.class)); Object[] result = resList == null ? null : resList.toArray(); callback.handleResponse(ctx, result); return; } } outFaultObserver.onMessage(message); } });
public void onMessage(Message message) { Exception ex = message.getContent(Exception.class); if (ex != null) { getConduitSelector().complete(message.getExchange()); if (message.getContent(Exception.class) == null) { // handle the right response List<Object> resList = null; Message inMsg = message.getExchange().getInMessage(); Map<String, Object> ctx = responseContext.get(Thread.currentThread()); resList = CastUtils.cast(inMsg.getContent(List.class)); Object[] result = resList == null ? null : resList.toArray(); callback.handleResponse(ctx, result); return; } } outFaultObserver.onMessage(message); } });
public void onMessage(Message message) { Exception ex = message.getContent(Exception.class); if (ex != null) { getConduitSelector().complete(message.getExchange()); if (message.getContent(Exception.class) == null) { // handle the right response List<Object> resList = null; Message inMsg = message.getExchange().getInMessage(); Map<String, Object> ctx = responseContext.get(Thread.currentThread()); resList = CastUtils.cast(inMsg.getContent(List.class)); Object[] result = resList == null ? null : resList.toArray(); callback.handleResponse(ctx, result); return; } } outFaultObserver.onMessage(message); } });
public void handleResponse(Map<String, Object> ctx, Object[] res) { try { super.handleResponse(ctx, res); } finally { // add cookies to the cookie store if (endpoint.getCookieHandler() != null) { try { Map<String, List<String>> cxfHeaders = CastUtils.cast((Map<?, ?>)cxfExchange.getInMessage().get(Message.PROTOCOL_HEADERS)); endpoint.getCookieHandler().storeCookies(camelExchange, endpoint.getRequestUri(camelExchange), cxfHeaders); } catch (IOException e) { LOG.error("Cannot store cookies", e); } } // bind the CXF response to Camel exchange and // call camel callback // for one way messages callback is already called in // process method of org.apache.camel.component.cxf.CxfProducer if (!boi.getOperationInfo().isOneWay()) { endpoint.getCxfBinding().populateExchangeFromCxfResponse(camelExchange, cxfExchange, ctx); camelAsyncCallback.done(false); } if (LOG.isDebugEnabled()) { LOG.debug("{} calling handleResponse", Thread.currentThread().getName()); } } }
null, resCtx); callback.handleResponse(resCtx, obj); } catch (Throwable ex) { callback.handleException(resCtx, ex);
null, resCtx); callback.handleResponse(resCtx, obj); } catch (Throwable ex) { callback.handleException(resCtx, ex);
if (null != ep && null != ep.getEndpointInfo() && null == ep.getEndpointInfo(). getProperty("org.apache.cxf.ws.addressing.MAPAggregator.decoupledDestination")) { cc.handleResponse(null, null);
cc.handleResponse(null, null);
null, resCtx); callback.handleResponse(resCtx, obj); } catch (Throwable ex) { callback.handleException(resCtx, ex);
null, resCtx); callback.handleResponse(resCtx, obj); } catch (Throwable ex) { callback.handleException(resCtx, ex);