|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.fastagi.command.AGICommand net.sf.asterisk.fastagi.command.HangupCommand
public class HangupCommand
Hangs up the specified channel. If no channel name is given, hangs up the current channel.
Constructor Summary | |
---|---|
HangupCommand()
Creates a new HangupCommand that hangs up the current channel. |
|
HangupCommand(java.lang.String channel)
Creates a new HangupCommand that hangs up the given channel. |
Method Summary | |
---|---|
java.lang.String |
buildCommand()
Returns a string suitable to be sent to asterisk. |
java.lang.String |
getChannel()
Returns the name of the channel to hangup. |
void |
setChannel(java.lang.String channel)
Sets the name of the channel to hangup. |
Methods inherited from class net.sf.asterisk.fastagi.command.AGICommand |
---|
escapeAndQuote, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HangupCommand()
public HangupCommand(java.lang.String channel)
channel
- the name of the channel to hangup.Method Detail |
---|
public java.lang.String getChannel()
null
for the
current channel.public void setChannel(java.lang.String channel)
channel
- the name of the channel to hangup or null
for the current channel.public java.lang.String buildCommand()
AGICommand
buildCommand
in class AGICommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |