public abstract class AgiConnectionHandler extends Object implements Runnable
| Modifier | Constructor and Description |
|---|---|
protected |
AgiConnectionHandler(MappingStrategy mappingStrategy,
AgiChannelFactory agiChannelFactory)
Creates a new AGIConnectionHandler to handle the given socket connection.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract AgiReader |
createReader() |
protected abstract AgiWriter |
createWriter() |
static AgiChannel |
getChannel()
Returns the AgiChannel associated with the current thread.
|
protected AgiScript |
getScript() |
protected String |
getScriptName(AgiScript script) |
protected boolean |
isIgnoreMissingScripts() |
abstract void |
release()
Release any open resources like closing a socket.
|
void |
run() |
protected void |
setIgnoreMissingScripts(boolean ignoreMissingScripts) |
protected AgiConnectionHandler(MappingStrategy mappingStrategy, AgiChannelFactory agiChannelFactory)
mappingStrategy - the strategy to use to determine which script to run.agiChannelFactory - the AgiFactory, that is used to create new AgiChannel objects.protected boolean isIgnoreMissingScripts()
protected void setIgnoreMissingScripts(boolean ignoreMissingScripts)
protected AgiScript getScript()
protected abstract AgiReader createReader()
protected abstract AgiWriter createWriter()
public abstract void release()
public static AgiChannel getChannel()
null if none is associated.Copyright © 2004-2012 Stefan Reuter. All Rights Reserved.