org.apache.james.mpt
Interface ProtocolInteractor

All Known Implementing Classes:
ProtocolSession

public interface ProtocolInteractor

Scripts a protocol interaction.


Method Summary
 void CL(int sessionNumber, java.lang.String clientLine)
          adds a new Client request line to the test elements
 void CL(java.lang.String clientLine)
          adds a new Client request line to the test elements
 void CONT(int sessionNumber)
          Adds a continuation.
 void SL(int sessionNumber, java.lang.String serverLine, java.lang.String location, java.lang.String lastClientMessage)
          adds a new Server Response line to the test elements, with the specified location.
 void SL(java.lang.String serverLine, java.lang.String location)
          adds a new Server Response line to the test elements, with the specified location.
 void SUB(int sessionNumber, java.util.List<java.lang.String> serverLines, java.lang.String location, java.lang.String lastClientMessage)
          adds a new Server Unordered Block to the test elements.
 void SUB(java.util.List<java.lang.String> serverLines, java.lang.String location)
          adds a new Server Unordered Block to the test elements.
 

Method Detail

CL

void CL(java.lang.String clientLine)
adds a new Client request line to the test elements


SL

void SL(java.lang.String serverLine,
        java.lang.String location)
adds a new Server Response line to the test elements, with the specified location.


SUB

void SUB(java.util.List<java.lang.String> serverLines,
         java.lang.String location)
adds a new Server Unordered Block to the test elements.


CL

void CL(int sessionNumber,
        java.lang.String clientLine)
adds a new Client request line to the test elements


CONT

void CONT(int sessionNumber)
          throws java.lang.Exception
Adds a continuation. To allow one thread to be used for testing.

Throws:
java.lang.Exception

SL

void SL(int sessionNumber,
        java.lang.String serverLine,
        java.lang.String location,
        java.lang.String lastClientMessage)
adds a new Server Response line to the test elements, with the specified location.


SUB

void SUB(int sessionNumber,
         java.util.List<java.lang.String> serverLines,
         java.lang.String location,
         java.lang.String lastClientMessage)
adds a new Server Unordered Block to the test elements.



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