org.asteriskjava.fastagi.internal
Class AsyncAgiConnectionHandler
java.lang.Object
org.asteriskjava.fastagi.internal.AgiConnectionHandler
org.asteriskjava.fastagi.internal.AsyncAgiConnectionHandler
- All Implemented Interfaces:
- java.lang.Runnable
public class AsyncAgiConnectionHandler
- extends AgiConnectionHandler
An AgiConnectionHandler for AsyncAGI.
It reads the request using a AsyncAgiReader and runs the AgiScript configured to
handle this type of request. Finally it sends an AsyncAgiBreakCommand
.
- Version:
- $Id: AsyncAgiConnectionHandler.java 1140 2008-08-18 18:49:36Z srt $
- Author:
- srt
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncAgiConnectionHandler
public AsyncAgiConnectionHandler(MappingStrategy mappingStrategy,
AsyncAgiEvent asyncAgiStartEvent)
throws java.lang.IllegalArgumentException
- Creates a new FastAGIConnectionHandler to handle the given FastAGI socket connection.
- Parameters:
mappingStrategy
- the strategy to use to determine which script to run.asyncAgiStartEvent
- the AsyncAgiEvent that started this connection, must be a start sub event.
- Throws:
java.lang.IllegalArgumentException
- if asyncAgiStartEvent is not a start sub type".
createReader
protected org.asteriskjava.fastagi.internal.AgiReader createReader()
- Specified by:
createReader
in class AgiConnectionHandler
createWriter
protected org.asteriskjava.fastagi.internal.AgiWriter createWriter()
- Specified by:
createWriter
in class AgiConnectionHandler
release
protected void release()
- Specified by:
release
in class AgiConnectionHandler
onAsyncAgiExecEvent
public void onAsyncAgiExecEvent(AsyncAgiEvent event)
onAsyncAgiEndEvent
public void onAsyncAgiEndEvent(AsyncAgiEvent event)
updateChannelName
public void updateChannelName(java.lang.String channelName)
Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.