/** * Get WS-Addressing MessageId. * * @return uri string */ public String getMessageId() { if (messageId == null && parent != null) { return parent.getMessageId(); } return messageId; }
/** * @return Returns message id. */ public String getMessageID() { return options.getMessageId(); }
/** * Get WS-Addressing MessageId. * * @return uri string */ public String getMessageId() { if (messageId == null && parent != null) { return parent.getMessageId(); } return messageId; }
/** * @return Returns message id. */ public String getMessageID() { return options.getMessageId(); }
/** * Create a message ID for the given message context if needed. If user gives an option with * MessageID then just copy that into MessageContext , and with that there can be multiple * message with same MessageID unless user call setOption for each invocation. * <p/> * If user want to give message ID then the better way is to set the message ID in the option and * call setOption for each invocation then the right thing will happen. * <p/> * If user does not give a message ID then the new one will be created and set that into Message * Context. * * @param mc the message context whose id is to be set */ protected void setMessageID(MessageContext mc) { // now its the time to put the parameters set by the user in to the // correct places and to the // if there is no message id still, set a new one. String messageId = options.getMessageId(); if (messageId == null || "".equals(messageId)) { messageId = UIDGenerator.generateURNString(); } mc.setMessageID(messageId); }
/** * Create a message ID for the given message context if needed. If user gives an option with * MessageID then just copy that into MessageContext , and with that there can be multiple * message with same MessageID unless user call setOption for each invocation. * <p/> * If user want to give message ID then the better way is to set the message ID in the option and * call setOption for each invocation then the right thing will happen. * <p/> * If user does not give a message ID then the new one will be created and set that into Message * Context. * * @param mc the message context whose id is to be set */ protected void setMessageID(MessageContext mc) { // now its the time to put the parameters set by the user in to the // correct places and to the // if there is no message id still, set a new one. String messageId = options.getMessageId(); if (messageId == null || "".equals(messageId)) { messageId = UIDGenerator.generateURNString(); } mc.setMessageID(messageId); }
mepConstant == WSDLConstants.MEP_CONSTANT_IN_OPTIONAL_OUT || mepConstant == WSDLConstants.MEP_CONSTANT_ROBUST_IN_ONLY) { String messageId = msgContext.getOptions().getMessageId(); if (messageId == null || "".equals(messageId)) { AddressingFaultsHelper
private void processMessageID() { String messageID = messageContextOptions.getMessageId(); //Check whether we want to force a message id to be sent. if (messageID == null && includeOptionalHeaders) { messageID = UIDGenerator.generateURNString(); messageContextOptions.setMessageId(messageID); } if (messageID != null && !isAddressingHeaderAlreadyAvailable(WSA_MESSAGE_ID, false)) {//optional ArrayList attributes = (ArrayList)messageContext.getLocalProperty( AddressingConstants.MESSAGEID_ATTRIBUTES); createSOAPHeaderBlock(messageID, WSA_MESSAGE_ID, attributes); } }
org.apache.axis2.context.MessageContext axisMC = ((Axis2MessageContext) messageContext).getAxis2MessageContext(); String logMessage = "WebApp call failed reason=API_authentication_failure"; //"app-name=" + applicationName + " " + "user-name=" + endUserName; String logID = axisMC.getOptions().getMessageId(); if (applicationName != null) { logMessage = " belonging to appName=" + applicationName;
logMessage = logMessage + " userName=" + endUserName; String logID = axisMC.getOptions().getMessageId(); if (logID != null) { logMessage = logMessage + " transactionId=" + logID;
org.apache.axis2.context.MessageContext axisMC = ((Axis2MessageContext) messageContext).getAxis2MessageContext(); String logMessage = "API call failed reason=API_authentication_failure"; //"app-name=" + applicationName + " " + "user-name=" + endUserName; String logID = axisMC.getOptions().getMessageId(); if (applicationName != null) { logMessage = " belonging to appName=" + applicationName;
String messageID = rmMsgCtx.getMessageContext().getOptions().getMessageId(); if (relatesTo!=null && messageID==null) { rmMsgCtx.getMessageContext().getOptions().setMessageId (SandeshaUtil.getUUID());
if ((this.messageId != null) && (obj.getMessageId() != null)) { if (!this.messageId.equals(obj.getMessageId())) { return false; } else if ((this.messageId == null) && (obj.getMessageId() == null)) {
if ((this.messageId != null) && (obj.getMessageId() != null)) { if (!this.messageId.equals(obj.getMessageId())) { return false; } else if ((this.messageId == null) && (obj.getMessageId() == null)) {
newmsgCtx.addRelatesTo(new RelatesTo(inMessageContext.getOptions().getMessageId()));
newmsgCtx.addRelatesTo(new RelatesTo(inMessageContext.getOptions().getMessageId()));