net.sf.asterisk.manager
Interface ManagerReader

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
ManagerReaderImpl

public interface ManagerReader
extends java.lang.Runnable

The ManagerReader reads events and responses from the asterisk server, parses them using EventBuilderImpl and ResponseBuilder and dispatches them to the associated ManagerConnection.
Do not use this interface in your code, it is intended to be used only by the DefaultManagerConnection.

Version:
$Id: ManagerReader.java,v 1.13 2005/10/25 22:49:56 srt Exp $
Author:
srt
See Also:
EventBuilder, ResponseBuilder, DefaultManagerConnection

Method Summary
 void die()
           
 void registerEventClass(java.lang.Class event)
          Registers a new event type with the underlying EventBuilderImpl.
The eventClass must extend ManagerEvent.
 void setSocket(SocketConnectionFacade socket)
          Sets the socket to use for reading from the asterisk server.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

setSocket

void setSocket(SocketConnectionFacade socket)
Sets the socket to use for reading from the asterisk server.

Parameters:
socket - the socket to use for reading from the asterisk server.

registerEventClass

void registerEventClass(java.lang.Class event)
Registers a new event type with the underlying EventBuilderImpl.
The eventClass must extend ManagerEvent.

Parameters:
event - class of the event to register.
See Also:
EventBuilder, ManagerEvent

die

void die()


Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.