|
|||||||||
| Home >> All >> org >> ematgine >> utils >> javamail >> [ input overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.ematgine.utils.javamail.input
Class InputJavamail

java.lang.Objectorg.ematgine.utils.javamail.input.InputJavamail
- public class InputJavamail
- extends java.lang.Object
This class implements the communication with the IMAP server manage by JAVAMAIL Concurrent Versions System $Id: InputJavamail.java,v 1.1 2002/05/08 11:17:57 MB Exp $
| Field Summary | |
private java.util.Hashtable |
allMsg
Description of the Field |
private javax.mail.Folder |
folder
the folder associated to the mailbox |
private java.lang.String |
host
Host of the IMAP server |
private java.util.Hashtable |
incFileToJoin
Description of the Field |
private java.util.Vector |
incMessageFrom
Description of the Field |
private java.util.Vector |
incMessageFromOther
Description of the Field |
private java.util.Vector |
incomingMessage
Vector of hashtable(From, subject or request) |
private java.lang.String |
localDirectoryForFileAttachement
Description of the Field |
private java.lang.String |
login
the IMAP server login |
private long |
numberMailWithFile
number of the mail received |
private int |
numberOfMessages
Description of the Field |
private java.lang.String |
password
the IMAP server password associated to login |
static java.lang.String |
PDU_REQUEST_FILENAME
Description of the Field |
private java.lang.String |
protocol
Description of the Field |
private javax.mail.Session |
session
IMAP session with IMAP server |
private javax.mail.Store |
store
the store associated to the mailbox |
| Constructor Summary | |
InputJavamail(java.lang.String the_host,
java.lang.String the_username,
java.lang.String the_password)
constructor |
|
InputJavamail(java.lang.String _protocol,
java.lang.String the_IMAP_host,
java.lang.String the_username,
java.lang.String the_password)
Constructor for the InputJavamail object |
|
| Method Summary | |
private void |
closeConnection()
Description of the Method |
private void |
closeIMAPConnection()
close the connection with IMAP server |
private void |
closePOP3Connection()
close the connection with POP3 server |
private java.lang.String |
getnumberMailWithFile()
Description of the Method |
int |
getNumberOfMessages()
Gets the numberOfMessages attribute of the InputJavamail object |
private void |
incrementnumberMailWithFile()
Description of the Method |
void |
main()
Description of the Method |
private void |
openConnection()
Description of the Method |
private void |
openIMAPConnection()
Open a connection with the IMAP server |
private void |
openPOP3Connection()
Open a connection with the POP3 server |
private java.util.Hashtable |
performUnreadMessageTreatments(javax.mail.Message incomingMsg)
Description of the Method |
java.util.Hashtable |
putMessagesOnDiskFromTo(java.lang.String mail_address,
java.lang.String dir,
boolean browseIt)
Send a mail with attachments |
java.util.Vector |
retrieveMessages()
Send a mail with attachments |
java.util.Vector |
retrieveUnreadMessages()
Retreive unread mail |
void |
saveFile(java.lang.String filename,
java.io.InputStream input)
Description of the Method |
void |
setHost(java.lang.String the_host)
Sets the host attribute of the InputJavamail object |
void |
setlocalDirectoryForFileAttachement(java.lang.String dir)
Constructor for the setlocalDirectoryForFileAttachement object |
private void |
setLoginAndPassword(java.lang.String the_login,
java.lang.String the_password)
Sets the login and paswword |
void |
specialFileTreatment(java.lang.String filename)
Description of the Method |
private void |
treat(javax.mail.Message msg)
Analyse the received Message to create a new request from= eMAtgine user request= subject of the mail propsFile= if the request has been sent with a file |
private boolean |
treatOnDisk(javax.mail.Message msg,
java.lang.String mail_address,
java.lang.String dir,
boolean browseIt)
Description of the Method |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protocol
private java.lang.String protocol
- Description of the Field
host
private java.lang.String host
- Host of the IMAP server
login
private java.lang.String login
- the IMAP server login
password
private java.lang.String password
- the IMAP server password associated to login
session
private javax.mail.Session session
- IMAP session with IMAP server
store
private javax.mail.Store store
- the store associated to the mailbox
folder
private javax.mail.Folder folder
- the folder associated to the mailbox
numberOfMessages
private int numberOfMessages
- Description of the Field
incomingMessage
private java.util.Vector incomingMessage
- Vector of hashtable(From, subject or request)
allMsg
private java.util.Hashtable allMsg
- Description of the Field
incMessageFrom
private java.util.Vector incMessageFrom
- Description of the Field
incMessageFromOther
private java.util.Vector incMessageFromOther
- Description of the Field
incFileToJoin
private java.util.Hashtable incFileToJoin
- Description of the Field
PDU_REQUEST_FILENAME
public static java.lang.String PDU_REQUEST_FILENAME
- Description of the Field
numberMailWithFile
private long numberMailWithFile
- number of the mail received
localDirectoryForFileAttachement
private java.lang.String localDirectoryForFileAttachement
- Description of the Field
| Constructor Detail |
InputJavamail
public InputJavamail(java.lang.String the_host, java.lang.String the_username, java.lang.String the_password)
- constructor
InputJavamail
public InputJavamail(java.lang.String _protocol, java.lang.String the_IMAP_host, java.lang.String the_username, java.lang.String the_password)
- Constructor for the InputJavamail object
| Method Detail |
setlocalDirectoryForFileAttachement
public void setlocalDirectoryForFileAttachement(java.lang.String dir)
- Constructor for the setlocalDirectoryForFileAttachement object
setHost
public void setHost(java.lang.String the_host)
- Sets the host attribute of the InputJavamail object
getNumberOfMessages
public int getNumberOfMessages()
- Gets the numberOfMessages attribute of the InputJavamail object
getnumberMailWithFile
private java.lang.String getnumberMailWithFile()
- Description of the Method
incrementnumberMailWithFile
private void incrementnumberMailWithFile()
- Description of the Method
retrieveMessages
public java.util.Vector retrieveMessages() throws java.lang.Exception
- Send a mail with attachments
putMessagesOnDiskFromTo
public java.util.Hashtable putMessagesOnDiskFromTo(java.lang.String mail_address, java.lang.String dir, boolean browseIt) throws java.lang.Exception
- Send a mail with attachments
openConnection
private void openConnection()
throws java.lang.Exception
- Description of the Method
closeConnection
private void closeConnection()
throws java.lang.Exception
- Description of the Method
retrieveUnreadMessages
public java.util.Vector retrieveUnreadMessages() throws java.lang.Exception
- Retreive unread mail
performUnreadMessageTreatments
private java.util.Hashtable performUnreadMessageTreatments(javax.mail.Message incomingMsg)
- Description of the Method
main
public void main()
- Description of the Method
setLoginAndPassword
private void setLoginAndPassword(java.lang.String the_login, java.lang.String the_password)
- Sets the login and paswword
treat
private void treat(javax.mail.Message msg) throws java.lang.Exception
- Analyse the received Message to create a new request from= eMAtgine user
request= subject of the mail propsFile= if the request has been sent with a
file
treatOnDisk
private boolean treatOnDisk(javax.mail.Message msg, java.lang.String mail_address, java.lang.String dir, boolean browseIt) throws java.lang.Exception
- Description of the Method
specialFileTreatment
public void specialFileTreatment(java.lang.String filename) throws java.io.IOException
- Description of the Method
saveFile
public void saveFile(java.lang.String filename, java.io.InputStream input) throws java.io.IOException
- Description of the Method
openIMAPConnection
private void openIMAPConnection()
throws java.lang.Exception
- Open a connection with the IMAP server
closeIMAPConnection
private void closeIMAPConnection()
throws java.lang.Exception
- close the connection with IMAP server
openPOP3Connection
private void openPOP3Connection()
throws java.lang.Exception
- Open a connection with the POP3 server
closePOP3Connection
private void closePOP3Connection()
throws java.lang.Exception
- close the connection with POP3 server
|
|||||||||
| Home >> All >> org >> ematgine >> utils >> javamail >> [ input overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.ematgine.utils.javamail.input.InputJavamail