org.nukesoft.lineproc
Interface LineProc

All Known Implementing Classes:
EchoLineProc

public interface LineProc

The LineProc interface is the interface implemented by all external line processor libraries. A new line processor instance is loaded for each active conversation. Line processors need not be thread safe and can mantain internal state.

Author:
Ryan Michela

Method Summary
 void bindContext(LineProcContext context)
          Binds a context to the line processor.
 void handleIM(IM message)
          Handles an incomming IM.
 void handleWarn(String screenName)
          Handles an incomming warning.
 void shutdown()
          Shuts down the line processor.
 

Method Detail

bindContext

public void bindContext(LineProcContext context)
Binds a context to the line processor.

Parameters:
context - The context to bind.

handleIM

public void handleIM(IM message)
Handles an incomming IM. This method should generate a response IM, but that is not required.

Parameters:
message - The incomming message.

handleWarn

public void handleWarn(String screenName)
Handles an incomming warning.

Parameters:
screenName - The screen name doing the warning.

shutdown

public void shutdown()
Shuts down the line processor. Used to kill any started threads.