org.openuat.util
Interface ProtocolCommandHandler


public interface ProtocolCommandHandler

This interface describes custom protocol command handlers that react to specific commands with which they are registered.


Method Summary
 boolean handleProtocol(java.lang.String firstLine, RemoteConnection remote)
          Delegates handling of a sub-protocol.
 

Method Detail

handleProtocol

boolean handleProtocol(java.lang.String firstLine,
                       RemoteConnection remote)
Delegates handling of a sub-protocol.

Parameters:
firstLine - The first line of the sub-protocol. This by definition starts with the command (word) for which this protocol handler has been registered.
remote - The channel to use for communication.
Returns:
true if the sub-protocol finished successfully, false otherwise.


2005-2009, Rene Mayrhofer.