<commit_before>package org.openas2.message;

import java.io.Serializable;
import java.util.Map;

import javax.mail.internet.InternetHeaders;
import javax.mail.internet.MimeBodyPart;

import org.openas2.OpenAS2Exception;
import org.openas2.params.InvalidParameterException;
import org.openas2.partner.Partnership;


public interface Message extends Serializable {
	
    public static final String MSG_STATUS_MSG_INIT = "initializing_msg";
    public static final String MSG_STATUS_MSG_SEND = "sending_msg";
    public static final String MSG_STATUS_MSG_RESEND = "resending_msg";
    public static final String MSG_STATUS_MDN_SEND = "sending_mdn";
    public static final String MSG_STATUS_MDN_WAIT = "awaiting_mdn";
    public static final String MSG_STATUS_MDN_PARSE = "parsing_mdn";
    public static final String MSG_STATUS_MDN_VERIFY = "verifying_mdn";
    public static final String MSG_STATUS_MDN_PROCESS_INIT = "init_processing_mdn";
    public static final String MSG_STATUS_MSG_CLEANUP = "cleanup";

    public static final String SMIME_TYPE_COMPRESSED_DATA = "smime-type=compressed-data";
	
	public void setStatus(String status);

    public String getStatus();
    
	public Map<Object, Object> getOptions();

	public void setOption(Object key, Object value);

    public Object getOption(Object key);
    
    public void setAttribute(String key, String value);

    public String getAttribute(String key);

    public void setAttributes(Map<String, String> attributes);

    public Map<String, String> getAttributes();

    public void setContentType(String contentType);

    public String getContentType();

    public String getCompressionType();

    public void setCompressionType(String compressionType);
    
    public void setContentDisposition(String contentDisposition);

    public String getContentDisposition();

    public void setData(MimeBodyPart data, DataHistoryItem historyItem) throws OpenAS2Exception;
    
	public DataHistoryItem setData(MimeBodyPart data) throws OpenAS2Exception;<commit_msg>Getter/setter methods to support custom headers<commit_after>package org.openas2.message;

import java.io.Serializable;
import java.util.Map;

import javax.mail.internet.InternetHeaders;
import javax.mail.internet.MimeBodyPart;

import org.openas2.OpenAS2Exception;
import org.openas2.params.InvalidParameterException;
import org.openas2.partner.Partnership;


public interface Message extends Serializable {
	
    public static final String MSG_STATUS_MSG_INIT = "initializing_msg";
    public static final String MSG_STATUS_MSG_SEND = "sending_msg";
    public static final String MSG_STATUS_MSG_RESEND = "resending_msg";
    public static final String MSG_STATUS_MDN_SEND = "sending_mdn";
    public static final String MSG_STATUS_MDN_WAIT = "awaiting_mdn";
    public static final String MSG_STATUS_MDN_PARSE = "parsing_mdn";
    public static final String MSG_STATUS_MDN_VERIFY = "verifying_mdn";
    public static final String MSG_STATUS_MDN_PROCESS_INIT = "init_processing_mdn";
    public static final String MSG_STATUS_MSG_CLEANUP = "cleanup";

    public static final String SMIME_TYPE_COMPRESSED_DATA = "smime-type=compressed-data";
	
	public void setStatus(String status);

    public String getStatus();
    
	public Map<String, String> getCustomOuterMimeHeaders();

	public void setCustomOuterMimeHeaders(Map<String, String> customOuterMimeHeaders);

	public void addCustomOuterMimeHeader(String key, String value);

	public Map<Object, Object> getOptions();

	public void setOption(Object key, Object value);

    public Object getOption(Object key);
    
    public void setAttribute(String key, String value);

    public String getAttribute(String key);

    public void setAttributes(Map<String, String> attributes);

    public Map<String, String> getAttributes();

    public void setContentType(String contentType);

    public String getContentType();

    public String getCompressionType();

    public void setCompressionType(String compressionType);
    
    public void setContentDisposition(String contentDisposition);

    public String getContentDisposition();

    public void setData(MimeBodyPart data, DataHistoryItem historyItem) throws OpenAS2Exception;
    
	public DataHistoryItem setData(MimeBodyPart data) throws OpenAS2Exception;
{'fraction_non_alphanumeric': 0.06818710728415174, 'fraction_numerical': 0.003258087037468001, 'mean_word_length': 5.320588235294117, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7139289', 'n_tokens_mistral': 1250, 'n_tokens_neox': 1208, 'n_words': 331}