net.sf.asterisk.manager.impl
Class ManagerWriterImpl

java.lang.Object
  extended by net.sf.asterisk.manager.impl.ManagerWriterImpl
All Implemented Interfaces:
ManagerWriter

public class ManagerWriterImpl
extends java.lang.Object
implements ManagerWriter

Default implementation of ManagerWriter interface.

Version:
$Id: ManagerWriterImpl.java,v 1.4 2005/11/08 15:25:18 srt Exp $
Author:
srt

Constructor Summary
ManagerWriterImpl()
          Creates a new ManagerWriter.
 
Method Summary
 void sendAction(ManagerAction action, java.lang.String internalActionId)
          Sends the given action to the asterisk server.
 void setSocket(SocketConnectionFacade socket)
          Sets the socket to use for writing to Asterisk.
 void setTargetVersion(AsteriskVersion version)
          Sets the version of the target Asterisk server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagerWriterImpl

public ManagerWriterImpl()
Creates a new ManagerWriter.

Method Detail

setTargetVersion

public void setTargetVersion(AsteriskVersion version)
Description copied from interface: ManagerWriter
Sets the version of the target Asterisk server.

Specified by:
setTargetVersion in interface ManagerWriter

setSocket

public void setSocket(SocketConnectionFacade socket)
Description copied from interface: ManagerWriter
Sets the socket to use for writing to Asterisk.

Specified by:
setSocket in interface ManagerWriter
Parameters:
socket - the socket to use for writing to Asterisk.

sendAction

public void sendAction(ManagerAction action,
                       java.lang.String internalActionId)
                throws java.io.IOException
Description copied from interface: ManagerWriter
Sends the given action to the asterisk server.

Specified by:
sendAction in interface ManagerWriter
Parameters:
action - the action to send to the asterisk server.
internalActionId - the internal action id to add.
Throws:
java.io.IOException - if there is a problem sending the action.


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