|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.manager.action.AbstractManagerAction net.sf.asterisk.manager.action.RedirectAction
public class RedirectAction
Redirects a given channel (and an optional additional channel) to a new extension.
Constructor Summary | |
---|---|
RedirectAction()
Creates a new empty RedirectAction. |
|
RedirectAction(java.lang.String channel,
java.lang.String context,
java.lang.String exten,
java.lang.Integer priority)
Creates a new RedirectAction that redirects the given channel to the given context, extension, priority triple. |
|
RedirectAction(java.lang.String channel,
java.lang.String extraChannel,
java.lang.String context,
java.lang.String exten,
java.lang.Integer priority)
Creates a new RedirectAction that redirects the given channels to the given context, extension, priority triple. |
Method Summary | |
---|---|
java.lang.String |
getAction()
Returns the name of this action, i.e. |
java.lang.String |
getChannel()
Returns name of the channel to redirect. |
java.lang.String |
getContext()
Returns the destination context. |
java.lang.String |
getExten()
Returns the destination extension. |
java.lang.String |
getExtraChannel()
Returns the name of the additional channel to redirect. |
java.lang.Integer |
getPriority()
Returns the destination priority. |
void |
setChannel(java.lang.String channel)
Sets the name of the channel to redirect. |
void |
setContext(java.lang.String context)
Sets the destination context. |
void |
setExten(java.lang.String exten)
Sets the destination extension. |
void |
setExtraChannel(java.lang.String extraChannel)
Sets the name of the additional channel to redirect. |
void |
setPriority(java.lang.Integer priority)
Sets the destination priority. |
Methods inherited from class net.sf.asterisk.manager.action.AbstractManagerAction |
---|
getActionId, setActionId, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RedirectAction()
public RedirectAction(java.lang.String channel, java.lang.String context, java.lang.String exten, java.lang.Integer priority)
channel
- the name of the channel to redirectcontext
- the destination contextexten
- the destination extensionpriority
- the destination prioritypublic RedirectAction(java.lang.String channel, java.lang.String extraChannel, java.lang.String context, java.lang.String exten, java.lang.Integer priority)
channel
- the name of the first channel to redirectextraChannel
- the name of the second channel to redirectcontext
- the destination contextexten
- the destination extensionpriority
- the destination priorityMethod Detail |
---|
public java.lang.String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public java.lang.String getChannel()
public void setChannel(java.lang.String channel)
channel
- the name of the channel to redirectpublic java.lang.String getExtraChannel()
public void setExtraChannel(java.lang.String extraChannel)
extraChannel
- the name of the additional channel to redirectpublic java.lang.String getContext()
public void setContext(java.lang.String context)
context
- the destination contextpublic java.lang.String getExten()
public void setExten(java.lang.String exten)
exten
- the destination extensionpublic java.lang.Integer getPriority()
public void setPriority(java.lang.Integer priority)
priority
- the destination priority
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |