|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.manager.impl.ActionBuilderImpl
public class ActionBuilderImpl
Default implementation of the ActionBuilder interface.
Constructor Summary | |
---|---|
ActionBuilderImpl()
Creates a new ActionBuilder for Asterisk 1.0. |
Method Summary | |
---|---|
protected void |
appendMap(java.lang.StringBuffer sb,
java.lang.String key,
java.util.Map values)
|
protected void |
appendMap10(java.lang.StringBuffer sb,
java.lang.String singularKey,
java.util.Map values)
|
protected void |
appendMap12(java.lang.StringBuffer sb,
java.lang.String singularKey,
java.util.Map values)
|
protected void |
appendString(java.lang.StringBuffer sb,
java.lang.String key,
java.lang.String value)
|
java.lang.String |
buildAction(ManagerAction action)
Builds a String suitable to be sent to Asterisk based on the given action object. Asterisk actions consist of an unordered set of key value pairs corresponding to the attributes of the ManagerActions. |
java.lang.String |
buildAction(ManagerAction action,
java.lang.String internalActionId)
Builds a String suitable to be sent to Asterisk based on the given action object. Asterisk actions consist of an unordered set of key value pairs corresponding to the attributes of the ManagerActions. |
void |
setTargetVersion(AsteriskVersion targetVersion)
Sets the version of the Asterisk server to built the action for. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionBuilderImpl()
Method Detail |
---|
public void setTargetVersion(AsteriskVersion targetVersion)
ActionBuilder
setTargetVersion
in interface ActionBuilder
public java.lang.String buildAction(ManagerAction action)
ActionBuilder
buildAction
in interface ActionBuilder
action
- the action to transform
public java.lang.String buildAction(ManagerAction action, java.lang.String internalActionId)
ActionBuilder
buildAction
in interface ActionBuilder
action
- the action to transforminternalActionId
- the internal action id to add
protected void appendMap(java.lang.StringBuffer sb, java.lang.String key, java.util.Map values)
protected void appendMap10(java.lang.StringBuffer sb, java.lang.String singularKey, java.util.Map values)
protected void appendMap12(java.lang.StringBuffer sb, java.lang.String singularKey, java.util.Map values)
protected void appendString(java.lang.StringBuffer sb, java.lang.String key, java.lang.String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |