org.asteriskjava.fastagi.internal
Class AgiClientConnection

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

public class AgiClientConnection
extends Object

An AgiConnectionHandler is created and run by the AgiServer whenever a new socket connection from an Asterisk Server is received.

It reads the request using an AgiReader and runs the AgiScript configured to handle this type of request. Finally it closes the socket connection.

Version:
$Id: AgiConnectionHandler.java 633 2007-03-25 17:02:18Z srt $
Author:
srt

Constructor Summary
AgiClientConnection(org.asteriskjava.util.SocketConnectionFacade socket)
          Creates a new AGIConnectionHandler to handle the given socket connection.
 
Method Summary
protected  org.asteriskjava.fastagi.internal.AgiReader createReader()
           
protected  org.asteriskjava.fastagi.internal.AgiWriter createWriter()
           
 Future<?> run(AgiClientScript script, Map<String,String> parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgiClientConnection

public AgiClientConnection(org.asteriskjava.util.SocketConnectionFacade socket)
Creates a new AGIConnectionHandler to handle the given socket connection.

Parameters:
socket - the socket connection to handle.
mappingStrategy - the strategy to use to determine which script to run.
Method Detail

createReader

protected org.asteriskjava.fastagi.internal.AgiReader createReader()

createWriter

protected org.asteriskjava.fastagi.internal.AgiWriter createWriter()

run

public Future<?> run(AgiClientScript script,
                     Map<String,String> parameters)


Copyright © 2011 OneBusAway. All Rights Reserved.