org.apache.james.mpt
Interface Session


public interface Session

A connection to the host.


Method Summary
 java.lang.String readLine()
          Reads a line from the session input, blocking until a new line is available.
 void start()
          Opens the session.
 void stop()
          Closes the session.
 void writeLine(java.lang.String line)
          Writes a line to the session output.
 

Method Detail

readLine

java.lang.String readLine()
                          throws java.lang.Exception
Reads a line from the session input, blocking until a new line is available.

Returns:
not null
Throws:
java.lang.Exception

writeLine

void writeLine(java.lang.String line)
               throws java.lang.Exception
Writes a line to the session output.

Parameters:
line - not null
Throws:
java.lang.Exception

start

void start()
           throws java.lang.Exception
Opens the session.

Throws:
java.lang.Exception

stop

void stop()
          throws java.lang.Exception
Closes the session.

Throws:
java.lang.Exception


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