org.apache.james.mpt
Class DiscardProtocol

java.lang.Object
  extended by org.apache.james.mpt.DiscardProtocol

public class DiscardProtocol
extends java.lang.Object

Simple RFC 863 implementation.


Nested Class Summary
static interface DiscardProtocol.Record
           
 
Constructor Summary
DiscardProtocol(int port)
           
 
Method Summary
 DiscardProtocol.Record recordNext()
           
 void start()
          Starts serving.
 void stop()
          Stops serving.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscardProtocol

public DiscardProtocol(int port)
Method Detail

start

public void start()
           throws java.io.IOException
Starts serving.

Throws:
java.io.IOException - when connection fails
java.lang.IllegalStateException - when already started

recordNext

public DiscardProtocol.Record recordNext()

stop

public void stop()
Stops serving.



Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.