|
Oracle Ultra Search APIs 9.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ultrasearch.query.EmailUtil
This class implements the Ultra Search Java Email Utility API.
It defines all constants and methods for accessing email source data.
An email source represents all emails sent to a specific email address or it's aliases. The most popular use of an email source is to represent all emails sent to a mailing list.
The methods implemented by this API can be classified as follows:
These methods return email data such as the list of existing email sources in the Ultra Search instance, information about a particular email source, the number of messages in an email source and the header fields of a message.
The methods that fall under this class are as follows:
Methods that return HTML code or are related to the presentation of HTML code
These methods perform the following tasks:
The methods that fall under this class are as follows:
Ultra Search instance methods
These methods are related to the database instance.
The methods that fall under this class are as follows:
Utility methods
These methods exist as convenience method for the client web application developer. They encapsulate commonly performed tasks.
The methods that fall under this class are as follows:
Constructor Summary | |
EmailUtil() Default constructor |
Method Summary | |
java.lang.String |
createLink(int emailSourceId) A utility method that creates a link that when clicked on, will render a page showing emails belonging to an email source. |
java.lang.String |
createLink(int emailSourceId, int messageId) A utility method that creates a link that when clicked on, will render a page showing the contents of an email. |
java.lang.String |
createLink(int emailSourceId, int messageId, int attachId) A utility method that creates a link that when clicked on, will render a page showing the contents of an email attachment of a specific email. |
EmailHeader |
getEmailHeader(int emailSourceId, int messageId) Gets the header information of an email. |
java.util.Vector |
getEmailHeaders(int emailSourceId, int startIndex, int endIndex) Gets header information of a number of email messages |
EmailSource |
getEmailSource(int emailSourceId) Gets one email source |
EmailSource[] |
getEmailSources() Gets a list of email sources that are defined in the Oracle Ultra Search instance. |
java.lang.String |
getMailPagePath() Gets the URL path of the web application (JSP or Servlet) that will render the contents of an email. |
int |
getMessageCount(int emailSourceId) Gets the number of messages in an email source. |
javax.mail.internet.MimeMessage |
getMimeMessage(int emailSourceId, int messageId) Gets an email message as a javax.mail.internet.MimeMessage object. |
java.lang.String |
htmlEncode(java.lang.String str) Convenience method for converting certain characters into HTML encoding. |
void |
setInstance(Instance inst) Sets the Instance object used by the class to create database connections to the Ultra Search instance. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EmailUtil()
Method Detail |
public void setInstance(Instance inst)
inst
- The instance objectpublic java.lang.String createLink(int emailSourceId)
This method uses the URL defined by the setMailPagePath method. Therefore, setMailPagePath must be correctly called first.
emailSourceId
- The ID of the email source.public java.lang.String createLink(int emailSourceId, int messageId)
This method uses the URL defined by the setMailPagePath method. Therefore, setMailPagePath must be correctly called first.
emailSourceId
- The ID of the email source.messageId
- The ID of the message within the email source.public java.lang.String createLink(int emailSourceId, int messageId, int attachId)
This method uses the URL defined by the setMailPagePath method. Therefore, setMailPagePath must be correctly called first.
emailSourceId
- The ID of the email source.messageId
- The ID of the message within the email source.attachId
- The ID of the attachment to the specified email.public java.lang.String htmlEncode(java.lang.String str)
This method analyzes the input string and performs the following conversions:
str
- The input string to convert.public int getMessageCount(int emailSourceId) throws java.sql.SQLException
emailSourceId
- The number id of the email source.public EmailSource getEmailSource(int emailSourceId) throws java.sql.SQLException
Returns an EmailSource object
emailSourceId
- the email data source idpublic EmailSource[] getEmailSources() throws java.sql.SQLException
public EmailHeader getEmailHeader(int emailSourceId, int messageId) throws java.sql.SQLException
emailSourceId
- The ID of the email source.messageId
- The ID of the message within the email source.public java.util.Vector getEmailHeaders(int emailSourceId, int startIndex, int endIndex) throws java.sql.SQLException
emailSourceId
- The ID of the email source.startIndex
- The index of the first email header returned.endIndex
- The index of the last email header returned.public javax.mail.internet.MimeMessage getMimeMessage(int emailSourceId, int messageId) throws java.sql.SQLException, java.io.IOException, javax.mail.MessagingException
The email message comes from the email archive directory which is directly accessible by the database server machine (which may not be the same machine as the application server).
emailSourceId
- The ID of the email source.messageId
- The ID of the message within the email source.public java.lang.String getMailPagePath()
|
Oracle Ultra Search APIs 9.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |