ePOST API

rice.email.proxy.pop3
Class NonBlockingPop3ServerImpl

java.lang.Object
  extended by rice.selector.SelectionKeyHandler
      extended by rice.email.proxy.pop3.NonBlockingPop3ServerImpl
All Implemented Interfaces:
Pop3Server

public class NonBlockingPop3ServerImpl
extends SelectionKeyHandler
implements Pop3Server


Field Summary
protected  Logger logger
           
 
Constructor Summary
NonBlockingPop3ServerImpl(java.net.InetAddress localHost, int port, EmailService email, UserManager manager, boolean gateway, boolean acceptNonLocal, Environment env)
           
 
Method Summary
 void accept(java.nio.channels.SelectionKey key)
          Method which is called when the key becomes acceptable.
 java.net.InetAddress getLocalHost()
           
 int getPort()
           
 void initialize()
           
 void start()
           
 
Methods inherited from class rice.selector.SelectionKeyHandler
connect, modifyKey, read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected Logger logger
Constructor Detail

NonBlockingPop3ServerImpl

public NonBlockingPop3ServerImpl(java.net.InetAddress localHost,
                                 int port,
                                 EmailService email,
                                 UserManager manager,
                                 boolean gateway,
                                 boolean acceptNonLocal,
                                 Environment env)
                          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getLocalHost

public java.net.InetAddress getLocalHost()

getPort

public int getPort()
Specified by:
getPort in interface Pop3Server

start

public void start()
Specified by:
start in interface Pop3Server

initialize

public void initialize()
                throws java.io.IOException
Throws:
java.io.IOException

accept

public void accept(java.nio.channels.SelectionKey key)
Description copied from class: SelectionKeyHandler
Method which is called when the key becomes acceptable.

Overrides:
accept in class SelectionKeyHandler
Parameters:
key - The key which is acceptable.

ePOST API

Copyright © 2001-2005 - Rice Pastry.