/*
(non-Javadoc)

@see com.ibm.ws.sib.processor.impl.interfaces.SIMPMessage#setMessageControlClassification(java.lang.String)
177426
@Override
    public void setMessageControlClassification(String classification)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setMessageControlClassification", classification);
        JsMessage localMsg = getJSMessage(true);

        // Cannot set this parameter on a Control message
        if (localMsg.isApiMessage())
        {
            if (localMsg instanceof JsApiMessage)
            {
                ((JsApiMessage) localMsg).setMessageControlClassification(classification);
                messageControlClassification = classification;
            }
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "setMessageControlClassification");
    }
203244
protected void setMessage(byte[] msg) {
        try {
            readData(new DataInputStream(new ByteArrayInputStream(msg)));
        }
        catch (IOException ex) {
            logger.error("Problem setting response message - {}", ex.getMessage());
        }
    }
885452
public void setMessageId(String messageId) {
        if (messageId == null) {
            _properties.remove(AMQP_PROP_MESSAGE_ID);
            return;
        }
        
        _properties.put(AMQP_PROP_MESSAGE_ID, messageId);
    }
737352
public String setClassification(String classificationType) {
        Metadata metadata = new Metadata().add(Metadata.CLASSIFICATION_KEY, classificationType);
        Metadata classification = null;

        try {
            classification = this.createMetadata(Metadata.CLASSIFICATION_TEMPLATE_KEY, "enterprise", metadata);
        } catch (BoxAPIException e) {
            if (e.getResponseCode() == 409) {
                metadata = new Metadata("enterprise", Metadata.CLASSIFICATION_TEMPLATE_KEY);
                metadata.replace(Metadata.CLASSIFICATION_KEY, classificationType);
                classification = this.updateMetadata(metadata);
            } else {
                throw e;
            }
        }

        return classification.getString(Metadata.CLASSIFICATION_KEY);
    }
223893
private void eventMessageExpiryNotification(
                                                SIMPMessage msg,
                                                TransactionCommon tran) throws SIResourceException
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(
                        tc,
                        "eventMessageExpiryNotification",
                        new Object[] { msg, tran });

        // If a ReportHandler object has not been created yet, then do so.
        if (_reportHandler == null)
            _reportHandler = new ReportHandler(messageProcessor);

        // Generate and send the report under the same transaction as the delete
        try
        {
            _reportHandler.handleMessage(msg, tran, SIApiConstants.REPORT_EXPIRY);
        } catch (SIException e)
        {
            FFDCFilter.processException(
                                        e,
                                        "com.ibm.ws.sib.processor.impl.BaseDestinationHandler.eventMessageExpiryNotification",
                                        "1:3778:1.700.3.45",
                                        this);
            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                SibTr.exit(tc, "eventMessageExpiryNotification", "SIResourceException");
            throw new SIResourceException(
                            nls.getFormattedMessage(
                                                    "REPORT_MESSAGE_ERROR_CWSIP0422",
                                                    new Object[] { messageProcessor.getMessagingEngineName(), e },
                                                    null),
                            e);
        }

        /**
         * 463584
         * If this message has been restored from msgstore but this destination has been recreated
         * in admin thus a different destination uuid and diferent BDH instance the stats object will be null.
         * It only gets initialized during the create/updateLocalisations call. This call will never happen
         * on this BDH.
         * Therefore... If a destination has been recreated, the stats on expiry will no longer be valid.
         */
        if (_protoRealization != null)
            _protoRealization.onExpiryReport();

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "eventMessageExpiryNotification");
    }
90285
public void setErrorMessage(Throwable exception) {
		if (exception != null) {
			String message = exception.getLocalizedMessage();
			if (Strings.isNullOrEmpty(message)) {
				message = exception.getMessage();
			}
			if (Strings.isNullOrEmpty(message)) {
				message = MessageFormat.format(Messages.SREsPreferencePage_9, exception.getClass().getName());
			}
			setErrorMessage(message);
		}
	}
47971
public void setMessageDeletionMode(final String messageDeletionMode) {

        if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
            SibTr
                            .debug(this, TRACE, "MessageDeletionMode",
                                   messageDeletionMode);
        }
        _messageDeletionMode = messageDeletionMode;

    }
24823
@Override
    public void setAutoStopSequentialMessageFailure(final String autoStopSequentialMessageFailure)
    {
        _autoStopSequentialMessageFailure = (autoStopSequentialMessageFailure == null ? null : Integer.valueOf(autoStopSequentialMessageFailure));
    }
639025
final void setJsMessageType(MessageType value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setJsMessageType", value);
        /* Get the int value of the MessageType and set that into the field */
        jmo.setField(JsHdrAccess.MESSAGETYPE, value.toByte());
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setJsMessageType");
    }
233131
public void setMessagingAuthorizationService(
                                                 MessagingAuthorizationService messagingAuthorizationService) {
        SibTr.entry(tc, CLASS_NAME + "setMessagingAuthorizationService", messagingAuthorizationService);

        this.messagingAuthorizationService = messagingAuthorizationService;

        SibTr.exit(tc, CLASS_NAME + "setMessagingAuthorizationService");
    }
517077
private void addMessage(ValidationMessage<Origin> message) {
		if (message == null) {
			return;
		}
		
		if( null != defaultOrigin ) {
			message.addOrigin( defaultOrigin );
		}
		
		this.messages.add(message);
	}
279971
@Override
	public void processMessage( Message message ) {

		if( message instanceof MsgNotifMachineDown )
			processMsgNotifMachineDown((MsgNotifMachineDown) message );

		else if( message instanceof MsgNotifInstanceChanged )
			processMsgNotifInstanceChanged((MsgNotifInstanceChanged) message );

		else if( message instanceof MsgNotifInstanceRemoved )
			processMsgNotifInstanceRemoved((MsgNotifInstanceRemoved) message );

		else if( message instanceof MsgNotifHeartbeat )
			processMsgNotifHeartbeat((MsgNotifHeartbeat) message );

		else if(message instanceof MsgNotifAutonomic)
			processMsgMonitoringEvent((MsgNotifAutonomic) message );

		else if( message instanceof MsgEcho )
			this.manager.debugMngr().notifyMsgEchoReceived((MsgEcho) message );

		else if( message instanceof MsgNotifLogs )
			processMsgNotifLogs((MsgNotifLogs) message );

		else
			this.logger.warning( "The DM got an undetermined message to process: " + message.getClass().getName());
	}
983992
public void setMessage(String message) {
        requireArgument(message != null && !message.isEmpty(), "Message cannot be null or empty.");
        this.message = message;
    }
1282368
@com.fasterxml.jackson.annotation.JsonProperty("OriginalMessage")
    public void setOriginalMessage(String originalMessage) {
        this.originalMessage = originalMessage;
    }
920654
@Override
	public void setLabelMessage(String labelMessage)
	{
		myUserInterfaceAction.setLabelMessage(labelMessage);
		putValue(Action.NAME, myMessageProvider.getMessage(getLabelMessage(), getLocale()));
	}
1215966
public void setErrorMessage(String errorMessage) {

        m_errorMessage = errorMessage;
        m_errorLabel.setValue(errorMessage != null ? errorMessage : "");
    }
299241
public static void set(Message message, ExplicitMessageEncryptionProtocol protocol) {
        if (!hasProtocol(message, protocol.namespace)) {
            message.addExtension(new ExplicitMessageEncryptionElement(protocol));
        }
    }