|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.asteriskjava.fastagi.command.AbstractAgiCommand
org.asteriskjava.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 org.asteriskjava.fastagi.command.AbstractAgiCommand |
|---|
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 interface AgiCommandbuildCommand in class AbstractAgiCommand
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||