All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openas2.message.DataHistory Maven / Gradle / Ivy

Go to download

Open source implementation of the AS2 standard for signed encrypted and compressed document transfer

There is a newer version: 2.10.1
Show newest version
package org.openas2.message;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import javax.mail.internet.ContentType;


public class DataHistory implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private List items;

    public List getItems() {
        if (items == null) {
            items = new ArrayList();
        }

        return items;
    }

    boolean contains(ContentType type) {
        Iterator itemIt = getItems().iterator();

        while (itemIt.hasNext()) {
            DataHistoryItem item = itemIt.next();

            if ((item.getContentType() != null) && item.getContentType().match(type)) {
                return true;
            }
        }

        return false;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy