org.apache.james.mpt
Class ExternalSessionFactory
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
ExternalSessionFactory
public ExternalSessionFactory(java.lang.String host,
int port,
Monitor monitor,
java.lang.String shabang)
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.