org.apache.james.mpt
Class ExternalSessionFactory

java.lang.Object
  extended by org.apache.james.mpt.ExternalSessionFactory
All Implemented Interfaces:
SessionFactory
Direct Known Subclasses:
ExternalHostSystem

public class ExternalSessionFactory
extends java.lang.Object
implements SessionFactory

Session factory creates session which connection to a server port.


Field Summary
protected  java.net.InetSocketAddress address
           
static java.lang.String IMAP_SHABANG
           
protected  Monitor monitor
           
protected  java.lang.String shabang
           
 
Constructor Summary
ExternalSessionFactory(java.lang.String host, int port, Monitor monitor, java.lang.String shabang)
           
 
Method Summary
 Session newSession(HostSystem.Continuation continuation)
          Creates a new session for functional testing.
 void reset()
           
 java.lang.String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IMAP_SHABANG

public static final java.lang.String IMAP_SHABANG
See Also:
Constant Field Values

address

protected final java.net.InetSocketAddress address

monitor

protected final Monitor monitor

shabang

protected final java.lang.String shabang
Constructor Detail

ExternalSessionFactory

public ExternalSessionFactory(java.lang.String host,
                              int port,
                              Monitor monitor,
                              java.lang.String shabang)
Method Detail

newSession

public Session newSession(HostSystem.Continuation continuation)
                   throws java.lang.Exception
Description copied from interface: SessionFactory
Creates a new session for functional testing.

Specified by:
newSession in interface SessionFactory
Returns:
Session, not null
Throws:
java.lang.Exception

reset

public void reset()
           throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this object.


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