|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.knowgate.hipermail.HeadersHelper
public class HeadersHelper
Set of utility functions for managing MimeMessage headers
| Constructor Summary | |
|---|---|
HeadersHelper()
|
|
HeadersHelper(MimeMessage oMimeMsg)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
computeContentMD5(byte[] byArray)
|
java.lang.String |
decodeMessageId()
Get decoded Message Id This method first calls MimeMessage.getMessageID() If nothing is returned then it tries to retrieve header X-Qmail-Scanner-Message-ID or Resent-Message-ID. |
static java.lang.String |
decodeMessageId(MimeMessage oMimeMsg)
Get decoded Message Id This method first calls MimeMessage.getMessageID() If nothing is returned then it tries to retrieve header X-Qmail-Scanner-Message-ID or Resent-Message-ID. |
java.lang.String |
getContentID()
|
static java.lang.String |
getContentID(MimeMessage oMsg)
|
java.lang.String |
getContentMD5()
|
static java.lang.String |
getContentMD5(MimeMessage oMsg)
|
java.lang.String |
getContentType()
|
static java.lang.String |
getContentType(MimeMessage oMsg)
|
java.lang.String |
getDescription()
|
static java.lang.String |
getDescription(MimeMessage oMsg)
|
java.lang.String |
getDisposition()
|
static java.lang.String |
getDisposition(MimeMessage oMsg)
|
java.lang.String |
getEncoding()
|
static java.lang.String |
getEncoding(MimeMessage oMsg)
|
java.lang.String |
getFileName()
|
static java.lang.String |
getFileName(MimeMessage oMsg)
|
Flags |
getFlags()
|
static Flags |
getFlags(MimeMessage oMsg)
|
InternetAddress |
getFrom()
|
java.lang.String |
getPriority()
|
static java.lang.String |
getPriority(MimeMessage oMsg)
|
java.sql.Timestamp |
getReceivedTimestamp()
|
static java.sql.Timestamp |
getReceivedTimestamp(MimeMessage oMsg)
|
java.sql.Timestamp |
getSentTimestamp()
|
static java.sql.Timestamp |
getSentTimestamp(MimeMessage oMsg)
|
java.lang.String |
getSubject()
|
static java.lang.String |
getSubject(MimeMessage oMsg)
|
boolean |
isSpam()
|
static boolean |
isSpam(MimeMessage oMsg)
|
void |
setMessage(MimeMessage oMimeMsg)
|
java.lang.String |
toXML()
Get headers in XML format |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeadersHelper()
public HeadersHelper(MimeMessage oMimeMsg)
| Method Detail |
|---|
public void setMessage(MimeMessage oMimeMsg)
public static java.lang.String decodeMessageId(MimeMessage oMimeMsg)
throws MessagingException,
java.io.UnsupportedEncodingException
Get decoded Message Id
This method first calls MimeMessage.getMessageID() If nothing is returned then it tries to retrieve header X-Qmail-Scanner-Message-ID or Resent-Message-ID.
oMimeMsg - MimeMessage
MessagingException
java.io.UnsupportedEncodingException
public java.lang.String decodeMessageId()
throws MessagingException,
java.io.UnsupportedEncodingException
Get decoded Message Id
This method first calls MimeMessage.getMessageID() If nothing is returned then it tries to retrieve header X-Qmail-Scanner-Message-ID or Resent-Message-ID.
MessagingException
java.io.UnsupportedEncodingException
public static java.lang.String getContentType(MimeMessage oMsg)
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public java.lang.String getContentType()
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public static java.lang.String getContentID(MimeMessage oMsg)
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public java.lang.String getContentID()
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public static java.lang.String getDisposition(MimeMessage oMsg)
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public java.lang.String getDisposition()
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public static java.lang.String getContentMD5(MimeMessage oMsg)
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingExceptionpublic static java.lang.String computeContentMD5(byte[] byArray)
public java.lang.String getContentMD5()
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public static java.lang.String getDescription(MimeMessage oMsg)
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public java.lang.String getDescription()
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public static java.lang.String getFileName(MimeMessage oMsg)
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public java.lang.String getFileName()
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public static java.lang.String getEncoding(MimeMessage oMsg)
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public java.lang.String getEncoding()
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public static java.lang.String getSubject(MimeMessage oMsg)
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public java.lang.String getSubject()
throws java.io.UnsupportedEncodingException,
MessagingException
java.io.UnsupportedEncodingException
MessagingException
public static java.sql.Timestamp getSentTimestamp(MimeMessage oMsg)
throws MessagingException
MessagingException
public java.sql.Timestamp getSentTimestamp()
throws MessagingException
MessagingException
public static java.sql.Timestamp getReceivedTimestamp(MimeMessage oMsg)
throws MessagingException
MessagingException
public java.sql.Timestamp getReceivedTimestamp()
throws MessagingException
MessagingException
public static java.lang.String getPriority(MimeMessage oMsg)
throws MessagingException
MessagingException
public java.lang.String getPriority()
throws MessagingException
MessagingException
public static Flags getFlags(MimeMessage oMsg)
throws MessagingException
MessagingException
public Flags getFlags()
throws MessagingException
MessagingException
public InternetAddress getFrom()
throws MessagingException
MessagingException
public static boolean isSpam(MimeMessage oMsg)
throws MessagingException
MessagingException
public boolean isSpam()
throws MessagingException
MessagingExceptionpublic java.lang.String toXML()
Get headers in XML format
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||