KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > communication > message > impl > POP3MessageProtocolPlugin


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.communication.message.impl;
6
7 import javax.mail.URLName JavaDoc;
8 import org.exoplatform.services.communication.message.MailService;
9 import org.exoplatform.services.communication.message.MessageService;
10 /**
11  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
12  * @since Sep 6, 2004
13  * @version $Id: POP3MessageProtocolPlugin.java,v 1.1 2004/10/14 23:29:22 tuan08 Exp $
14  */

15 public class POP3MessageProtocolPlugin extends BaseMailMessageProtocolPlugin {
16   
17   public POP3MessageProtocolPlugin(MessageService mservice, MailService mailService) {
18     super(mservice, mailService) ;
19   }
20   
21   public String JavaDoc getProtocol() { return MessageService.POP3_PROTOCOL ; }
22   
23   public URLName JavaDoc getInboxFolderURLName(String JavaDoc host, String JavaDoc userName , String JavaDoc password) {
24     return new URLName JavaDoc("pop3", host, 110, "INBOX" , userName, password);
25   }
26 }
Popular Tags