|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.asteriskjava.manager.internal.ManagerUtil
public class ManagerUtil
Utilitiy class with some static helper methods that are used in multiple contexts within the manager package.
The methods for handling the internal action id are used to make sure we send unique ids to Asterisk even when the user of Asterisk-Java does not provide a unique action id or no action id at all.
All the methods contained in this class are supposed to be internally only.
Field Summary | |
---|---|
static char |
INTERNAL_ACTION_ID_DELIMITER
|
Constructor Summary | |
---|---|
ManagerUtil()
|
Method Summary | |
---|---|
static java.lang.String |
addInternalActionId(java.lang.String actionId,
java.lang.String internalActionId)
Adds the internal action id to the given action id. |
static java.lang.String |
getInternalActionId(java.lang.String actionId)
Returns the internal action id contained in the given action id. |
static java.lang.String |
stripInternalActionId(java.lang.String actionId)
Strips the internal action id from the given action id. |
static java.lang.String |
toHexString(byte[] b)
Converts a byte array to a hex string representing it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char INTERNAL_ACTION_ID_DELIMITER
Constructor Detail |
---|
public ManagerUtil()
Method Detail |
---|
public static java.lang.String toHexString(byte[] b)
b
- the byte array to convert
public static java.lang.String getInternalActionId(java.lang.String actionId)
actionId
- the action id prefixed by the internal action
id as received from Asterisk.
addInternalActionId(String, String)
public static java.lang.String stripInternalActionId(java.lang.String actionId)
actionId
- the action id prefixed by the internal action
id as received from Asterisk.
addInternalActionId(String, String)
public static java.lang.String addInternalActionId(java.lang.String actionId, java.lang.String internalActionId)
actionId
- the action id as set by the user.internalActionId
- the internal action id to add.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |