
org.openas2.message.DataHistory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openas2-server Show documentation
Show all versions of openas2-server Show documentation
Open source implementation of the AS2 standard for signed encrypted and compressed document transfer
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