/** * Propogate inbound MAPs onto reponse message if applicable * (not applicable for oneways). * * @param inMAPs the inbound MAPs * @param responseMessage */ public static void propogateReceivedMAPs(AddressingProperties inMAPs, Message responseMessage) { if (responseMessage != null) { storeMAPs(inMAPs, responseMessage, false, false, false); } }
/** * Store MAPs in the message. * * @param maps the MAPs to store * @param message the current message * @param isOutbound true if the message is outbound * @param isRequestor true if the current messaging role is that of * requestor * @param handler true if HANDLER scope, APPLICATION scope otherwise */ public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor) { org.apache.cxf.ws.addressing.ContextUtils.storeMAPs(maps, message, isOutbound, isRequestor); }
/** * Propogate inbound MAPs onto reponse message if applicable * (not applicable for oneways). * * @param inMAPs the inbound MAPs * @param responseMessage */ public static void propogateReceivedMAPs(AddressingProperties inMAPs, Message responseMessage) { if (responseMessage != null) { storeMAPs(inMAPs, responseMessage, false, false, false); } }
/** * Store MAPs in the message. * * @param maps the MAPs to store * @param message the current message * @param isOutbound true if the message is outbound * @param isRequestor true if the current messaging role is that of requestor */ public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor) { storeMAPs(maps, message, isOutbound, isRequestor, false); }
/** * Propogate inbound MAPs onto reponse message if applicable * (not applicable for oneways). * * @param inMAPs the inbound MAPs * @param responseMessage */ public static void propogateReceivedMAPs(AddressingProperties inMAPs, Message responseMessage) { if (responseMessage != null) { storeMAPs(inMAPs, responseMessage, false, false, false); } }
/** * Store MAPs in the message. * * @param maps the MAPs to store * @param message the current message * @param isOutbound true if the message is outbound * @param isRequestor true if the current messaging role is that of requestor */ public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor) { storeMAPs(maps, message, isOutbound, isRequestor, false); }
/** * Propogate inbound MAPs onto reponse message if applicable * (not applicable for oneways). * * @param inMAPs the inbound MAPs * @param responseMessage */ public static void propogateReceivedMAPs(AddressingProperties inMAPs, Message responseMessage) { if (responseMessage != null) { storeMAPs(inMAPs, responseMessage, false, false, false); } }
/** * Store MAPs in the message. * * @param maps the MAPs to store * @param message the current message * @param isOutbound true if the message is outbound * @param isRequestor true if the current messaging role is that of requestor */ public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor) { storeMAPs(maps, message, isOutbound, isRequestor, false); }
/** * Store MAPs in the message. * * @param maps the MAPs to store * @param message the current message * @param isOutbound true if the message is outbound * @param isRequestor true if the current messaging role is that of requestor */ public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor) { storeMAPs(maps, message, isOutbound, isRequestor, false); }
/** * Store MAPs in the message. * * @param message the current message * @param isOutbound true if the message is outbound */ public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound) { storeMAPs(maps, message, isOutbound, isRequestor(message), false); }
/** * Store MAPs in the message. * * @param message the current message * @param isOutbound true if the message is outbound */ public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound) { storeMAPs(maps, message, isOutbound, isRequestor(message), false); }
/** * Store MAPs in the message. * * @param message the current message * @param isOutbound true if the message is outbound */ public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound) { storeMAPs(maps, message, isOutbound, isRequestor(message), false); }
/** * Store MAPs in the message. * * @param message the current message * @param isOutbound true if the message is outbound */ public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound) { storeMAPs(maps, message, isOutbound, isRequestor(message), false); }
/** * Perform MAP aggregation. * * @param message the current message * @param isFault true if a fault is being mediated */ private void aggregate(Message message, boolean isFault) { boolean isRequestor = ContextUtils.isRequestor(message); AddressingProperties maps = assembleGeneric(message); addRoleSpecific(maps, message, isRequestor, isFault); // outbound property always used to store MAPs, as this handler // aggregates only when either: // a) message really is outbound // b) message is currently inbound, but we are about to abort dispatch // due to an incoming MAPs validation failure, so the dispatch // will shortly traverse the outbound path ContextUtils.storeMAPs(maps, message, true, isRequestor); }
/** * Perform MAP aggregation. * * @param message the current message * @param isFault true if a fault is being mediated */ private void aggregate(Message message, boolean isFault) { boolean isRequestor = ContextUtils.isRequestor(message); AddressingProperties maps = assembleGeneric(message); addRoleSpecific(maps, message, isRequestor, isFault); // outbound property always used to store MAPs, as this handler // aggregates only when either: // a) message really is outbound // b) message is currently inbound, but we are about to abort dispatch // due to an incoming MAPs validation failure, so the dispatch // will shortly traverse the outbound path ContextUtils.storeMAPs(maps, message, true, isRequestor); }
private void updateOutputAction(String append) { AddressingProperties p = ContextUtils.retrieveMAPs(PhaseInterceptorChain.getCurrentMessage(), false, false); AddressingProperties pout = new AddressingProperties(); AttributedURIType action = new AttributedURIType(); action.setValue(p.getAction().getValue() + append); pout.exposeAs(p.getNamespaceURI()); pout.setAction(action); ContextUtils.storeMAPs(pout, PhaseInterceptorChain.getCurrentMessage(), true); }
private void updateOutputAction(String append) { AddressingProperties p = ContextUtils.retrieveMAPs(PhaseInterceptorChain.getCurrentMessage(), false, false); AddressingProperties pout = new AddressingProperties(); AttributedURIType action = new AttributedURIType(); action.setValue(p.getAction().getValue() + append); pout.exposeAs(p.getNamespaceURI()); pout.setAction(action); ContextUtils.storeMAPs(pout, PhaseInterceptorChain.getCurrentMessage(), true); }
/** * check if MessageID exists in the message, if not, only generate new MessageID for outbound message. * @param message */ private void checkMessageID(Message message) { if (!MessageUtils.isOutbound(message)) return; AddressingProperties maps = ContextUtils.retrieveMAPs(message, false, MessageUtils.isOutbound(message)); if (maps == null) { maps = new AddressingProperties(); } if (maps.getMessageID() == null) { String messageID = ContextUtils.generateUUID(); boolean isRequestor = ContextUtils.isRequestor(message); maps.setMessageID(ContextUtils.getAttributedURI(messageID)); ContextUtils.storeMAPs(maps, message, ContextUtils.isOutbound(message), isRequestor); } }
/** * Construct and store MAPs for partial response. * * @param partialResponse the partial response message * @param namespaceURI the current namespace URI */ private static void ensurePartialResponseMAPs(Message partialResponse, String namespaceURI) { // ensure there is a MAPs instance available for the outbound // partial response that contains appropriate To and ReplyTo // properties (i.e. anonymous & none respectively) AddressingProperties maps = new AddressingProperties(); maps.setTo(EndpointReferenceUtils.getAnonymousEndpointReference()); maps.setReplyTo(ContextUtils.WSA_OBJECT_FACTORY.createEndpointReferenceType()); maps.getReplyTo().setAddress(ContextUtils.getAttributedURI(Names.WSA_NONE_ADDRESS)); maps.setAction(ContextUtils.getAttributedURI("")); maps.exposeAs(namespaceURI); ContextUtils.storeMAPs(maps, partialResponse, true, true, false); }
/** * Construct and store MAPs for partial response. * * @param partialResponse the partial response message * @param namespaceURI the current namespace URI */ private static void ensurePartialResponseMAPs(Message partialResponse, String namespaceURI) { // ensure there is a MAPs instance available for the outbound // partial response that contains appropriate To and ReplyTo // properties (i.e. anonymous & none respectively) AddressingProperties maps = new AddressingProperties(); maps.setTo(EndpointReferenceUtils.getAnonymousEndpointReference()); maps.setReplyTo(ContextUtils.WSA_OBJECT_FACTORY.createEndpointReferenceType()); maps.getReplyTo().setAddress(ContextUtils.getAttributedURI(Names.WSA_NONE_ADDRESS)); maps.setAction(ContextUtils.getAttributedURI("")); maps.exposeAs(namespaceURI); ContextUtils.storeMAPs(maps, partialResponse, true, true, false); }