|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.semanticdesktop.aperture.extractor.mime.MailUtil
public class MailUtil
Utility methods for JavaMail.
Constructor Summary | |
---|---|
MailUtil()
|
Method Summary | |
---|---|
static void |
addAddressMetadata(javax.mail.internet.InternetAddress address,
URI predicate,
RDFContainer metadata)
Add statements modeling the specified address metadata to the RDFContainer, using the specified predicate to connect the address resource to the mail resource. |
static void |
getDates(javax.mail.Message message,
RDFContainer container)
Adds the information about dates pertaining to the given message. |
static String |
getPersonURI(String email,
String name)
Derive a URI for a person based on an email address and a name that can be used in an RDF graph. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MailUtil()
Method Detail |
---|
public static void getDates(javax.mail.Message message, RDFContainer container) throws javax.mail.MessagingException
message
- the messagecontainer
- the container where the metadata should be stored
javax.mail.MessagingException
public static void addAddressMetadata(javax.mail.internet.InternetAddress address, URI predicate, RDFContainer metadata) throws ModelException
address
- The InternetAddress that will be encoded in the RDF model.predicate
- The property URI that will be used to connect the address metadata to the mail
resource.metadata
- The RDFContainer that will receive the RDF statements and whose described URI is
expected to represent the mail resource.
ModelException
public static String getPersonURI(String email, String name) throws IllegalArgumentException
email
- The email address of the person (optional).name
- The name of the person (optional).
IllegalArgumentException
- when both the email address and the name do not have reasonable
values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |