/** * Propagate inbound MAPs onto full reponse & fault messages. * * @param inMAPs the inbound MAPs * @param exchange the current Exchange */ public static void propogateReceivedMAPs(AddressingProperties inMAPs, Exchange exchange) { if (exchange.getOutMessage() == null) { exchange.setOutMessage(createMessage(exchange)); } propogateReceivedMAPs(inMAPs, exchange.getOutMessage()); if (exchange.getOutFaultMessage() == null) { exchange.setOutFaultMessage(createMessage(exchange)); } propogateReceivedMAPs(inMAPs, exchange.getOutFaultMessage()); }
/** * Propagate inbound MAPs onto full reponse & fault messages. * * @param inMAPs the inbound MAPs * @param exchange the current Exchange */ public static void propogateReceivedMAPs(AddressingProperties inMAPs, Exchange exchange) { if (exchange.getOutMessage() == null) { exchange.setOutMessage(createMessage(exchange)); } propogateReceivedMAPs(inMAPs, exchange.getOutMessage()); if (exchange.getOutFaultMessage() == null) { exchange.setOutFaultMessage(createMessage(exchange)); } propogateReceivedMAPs(inMAPs, exchange.getOutFaultMessage()); }
/** * Propagate inbound MAPs onto full reponse & fault messages. * * @param inMAPs the inbound MAPs * @param exchange the current Exchange */ public static void propogateReceivedMAPs(AddressingProperties inMAPs, Exchange exchange) { if (exchange.getOutMessage() == null) { exchange.setOutMessage(createMessage(exchange)); } propogateReceivedMAPs(inMAPs, exchange.getOutMessage()); if (exchange.getOutFaultMessage() == null) { exchange.setOutFaultMessage(createMessage(exchange)); } propogateReceivedMAPs(inMAPs, exchange.getOutFaultMessage()); }
/** * Propagate inbound MAPs onto full reponse & fault messages. * * @param inMAPs the inbound MAPs * @param exchange the current Exchange */ public static void propogateReceivedMAPs(AddressingProperties inMAPs, Exchange exchange) { if (exchange.getOutMessage() == null) { exchange.setOutMessage(createMessage(exchange)); } propogateReceivedMAPs(inMAPs, exchange.getOutMessage()); if (exchange.getOutFaultMessage() == null) { exchange.setOutFaultMessage(createMessage(exchange)); } propogateReceivedMAPs(inMAPs, exchange.getOutFaultMessage()); }
public Object closeSequence(Message message) { LOG.fine("Closing sequence"); CloseSequenceType close = (CloseSequenceType)getParameter(message); // check if the terminated sequence was created in response to a a createSequence // request Destination destination = reliableEndpoint.getDestination(); Identifier sid = close.getIdentifier(); DestinationSequence closedSeq = destination.getSequence(sid); if (null == closedSeq) { // TODO LOG.severe("No such sequence."); return null; } closedSeq.scheduleImmediateAcknowledgement(); closedSeq.setLastMessageNumber(close.getLastMsgNumber()); CloseSequenceResponseType closeResponse = new CloseSequenceResponseType(); closeResponse.setIdentifier(close.getIdentifier()); AddressingProperties maps = RMContextUtils.retrieveMAPs(message, false, false); Message outMessage = message.getExchange().getOutMessage(); if (null == outMessage) { // outMessage may be null e.g. if ReplyTo is not set for TS outMessage = ContextUtils.createMessage(message.getExchange()); message.getExchange().setOutMessage(outMessage); } if (null != outMessage) { RMContextUtils.storeMAPs(maps, outMessage, false, false); } return closeResponse; }
outMessage = ContextUtils.createMessage(message.getExchange()); message.getExchange().setOutMessage(outMessage);
Exchange exchange = inMessage.getExchange(); Message fullResponse = exchange.getOutMessage(); Message partialResponse = ContextUtils.createMessage(exchange); ensurePartialResponseMAPs(partialResponse, namespaceURI); fullResponse = ContextUtils.createMessage(exchange);
Exchange exchange = inMessage.getExchange(); Message fullResponse = exchange.getOutMessage(); Message partialResponse = ContextUtils.createMessage(exchange); ensurePartialResponseMAPs(partialResponse, namespaceURI); && ContextUtils.isFault(inMessage)) { exchange.setOutMessage(ContextUtils.createMessage(exchange)); exchange.put(ConduitSelector.class, new NullConduitSelector()); exchange.put("org.apache.cxf.http.no_io_exceptions", true); fullResponse = ContextUtils.createMessage(exchange);
Exchange exchange = inMessage.getExchange(); Message fullResponse = exchange.getOutMessage(); Message partialResponse = ContextUtils.createMessage(exchange); ensurePartialResponseMAPs(partialResponse, namespaceURI); && ContextUtils.isFault(inMessage)) { exchange.setOutMessage(ContextUtils.createMessage(exchange)); exchange.put(ConduitSelector.class, new NullConduitSelector()); exchange.put("org.apache.cxf.http.no_io_exceptions", true); fullResponse = ContextUtils.createMessage(exchange);