|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.test.functional.FileProtocolSessionBuilder
public class FileProtocolSessionBuilder
A builder which generates a ProtocolSession from a test file.
| Constructor Summary | |
|---|---|
FileProtocolSessionBuilder()
|
|
| Method Summary | |
|---|---|
void |
addProtocolLinesFromStream(java.io.InputStream is,
ProtocolSession session,
java.lang.String fileName)
Reads ProtocolElements from the supplied InputStream and adds them to the ProtocolSession. |
void |
addTestFile(java.lang.String fileName,
ProtocolSession session)
Adds all protocol elements from a test file to the ProtocolSession supplied. |
ProtocolSession |
buildProtocolSession(java.lang.String fileName)
Builds a ProtocolSession by reading lines from the test file with the supplied name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileProtocolSessionBuilder()
| Method Detail |
|---|
public ProtocolSession buildProtocolSession(java.lang.String fileName)
throws java.lang.Exception
fileName - The name of the protocol session file.
java.lang.Exception
public void addTestFile(java.lang.String fileName,
ProtocolSession session)
throws java.lang.Exception
fileName - The name of the protocol session file.session - The ProtocolSession to add the elements to.
java.lang.Exception
public void addProtocolLinesFromStream(java.io.InputStream is,
ProtocolSession session,
java.lang.String fileName)
throws java.lang.Exception
is - The input stream containing the protocol definition.session - The ProtocolSession to add elements to.fileName - The name of the source file, for error messages.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||