Asterisk-Java

org.asteriskjava.fastagi.internal
Class AsyncAgiReader

java.lang.Object
  extended by org.asteriskjava.fastagi.internal.AsyncAgiReader

public class AsyncAgiReader
extends java.lang.Object


Constructor Summary
AsyncAgiReader(ManagerConnection connection, java.util.List<java.lang.String> environment, java.util.concurrent.BlockingQueue<AsyncAgiEvent> asyncAgiEvents)
           
 
Method Summary
 AgiReply readReply()
          Reads one reply to an AgiCommand from Asterisk.
 AgiRequest readRequest()
          Reads the initial request data from Asterisk.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncAgiReader

public AsyncAgiReader(ManagerConnection connection,
                      java.util.List<java.lang.String> environment,
                      java.util.concurrent.BlockingQueue<AsyncAgiEvent> asyncAgiEvents)
Method Detail

readRequest

public AgiRequest readRequest()
                       throws AgiException
Reads the initial request data from Asterisk.

Returns:
the request read.
Throws:
AgiException - if the request can't be read.

readReply

public AgiReply readReply()
                   throws AgiException
Reads one reply to an AgiCommand from Asterisk.

Returns:
the reply read.
Throws:
AgiException - if the reply can't be read.

Asterisk-Java

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