|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.fastagi.AGIConnectionHandler
public class AGIConnectionHandler
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.
Constructor Summary | |
---|---|
AGIConnectionHandler(SocketConnectionFacade socket,
MappingStrategy mappingStrategy)
Creates a new AGIConnectionHandler to handle the given socket connection. |
Method Summary | |
---|---|
protected AGIReader |
createReader()
|
protected AGIWriter |
createWriter()
|
void |
run()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AGIConnectionHandler(SocketConnectionFacade socket, MappingStrategy mappingStrategy)
socket
- the socket connection to handle.mappingStrategy
- the strategy to use to determine which script to
run.Method Detail |
---|
protected AGIReader createReader()
protected AGIWriter createWriter()
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |