KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > providers > email > ImapConnector


1 /*
2  * $Id: ImapConnector.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.providers.email;
12
13 /**
14  * Receives messages from an IMAP mailbox
15  */

16 public class ImapConnector extends Pop3Connector
17 {
18     public static final int DEFAULT_IMAP_PORT = 143;
19
20     /** Default is INBOX. */
21     private String JavaDoc mailboxFolder = Pop3Connector.MAILBOX;
22
23     public String JavaDoc getProtocol()
24     {
25         return "imap";
26     }
27
28     public int getDefaultPort()
29     {
30         return DEFAULT_IMAP_PORT;
31     }
32
33     public String JavaDoc getMailboxFolder()
34     {
35         return mailboxFolder;
36     }
37
38     public void setMailboxFolder(String JavaDoc mailboxFolder)
39     {
40         this.mailboxFolder = mailboxFolder;
41     }
42 }
43
Popular Tags