org.apache.james.pop3server
Class POP3Handler
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.james.pop3server.POP3Handler
- All Implemented Interfaces:
- org.apache.avalon.cornerstone.services.connection.ConnectionHandler, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.framework.logger.LogEnabled
public class POP3Handler
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements org.apache.avalon.cornerstone.services.connection.ConnectionHandler, org.apache.avalon.excalibur.pool.Poolable
The handler class for POP3 connections.
Method Summary |
void |
handleConnection(java.net.Socket connection)
|
void |
writeMessageContentTo(javax.mail.internet.MimeMessage message,
java.io.OutputStream out,
int lines)
Writes the content of the message, up to a total number of lines, out to
an OutputStream. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POP3Handler
public POP3Handler()
handleConnection
public void handleConnection(java.net.Socket connection)
throws java.io.IOException
- Specified by:
handleConnection
in interface org.apache.avalon.cornerstone.services.connection.ConnectionHandler
- Throws:
java.io.IOException
- See Also:
ConnectionHandler.handleConnection(Socket)
writeMessageContentTo
public void writeMessageContentTo(javax.mail.internet.MimeMessage message,
java.io.OutputStream out,
int lines)
throws java.io.IOException,
javax.mail.MessagingException
- Writes the content of the message, up to a total number of lines, out to
an OutputStream.
- Parameters:
out
- the OutputStream to which to write the contentlines
- the number of lines to write to the stream
- Throws:
javax.mail.MessagingException
- if the MimeMessage is not set for this MailImpl
java.io.IOException
- if an error occurs while reading or writing from the stream
Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.