KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $Id: ImapsConnector.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  * Creates a secure IMAP connection
15  */

16 public class ImapsConnector extends Pop3sConnector
17 {
18     public static final int DEFAULT_IMAPS_PORT = 993;
19
20     private String JavaDoc mailboxFolder = Pop3sConnector.MAILBOX;
21
22     public String JavaDoc getProtocol()
23     {
24         return "imaps";
25     }
26
27     public int getDefaultPort()
28     {
29         return DEFAULT_IMAPS_PORT;
30     }
31
32     public String JavaDoc getMailboxFolder()
33     {
34         return mailboxFolder;
35     }
36
37     public void setMailboxFolder(String JavaDoc mailboxFolder)
38     {
39         this.mailboxFolder = mailboxFolder;
40     }
41 }
42
Popular Tags