|
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.ChannelStatusCommand
public class ChannelStatusCommand
Returns the status of the specified channel. If no channel name is given the returns the status of the current channel.
Return values:
Constructor Summary | |
---|---|
ChannelStatusCommand()
Creates a new ChannelStatusCommand that queries the current channel. |
|
ChannelStatusCommand(java.lang.String channel)
Creates a new ChannelStatusCommand that queries 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 query. |
void |
setChannel(java.lang.String channel)
Sets the name of the channel to query. |
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 ChannelStatusCommand()
public ChannelStatusCommand(java.lang.String channel)
channel
- the name of the channel to query.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 query or null
for the current channel.public java.lang.String buildCommand()
AgiCommand
buildCommand
in interface AgiCommand
buildCommand
in class AbstractAgiCommand
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |