public class ManagerUtil extends Object
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.
Modifier and Type | Field and Description |
---|---|
static char |
INTERNAL_ACTION_ID_DELIMITER |
Modifier and Type | Method and Description |
---|---|
static String |
addInternalActionId(String actionId,
String internalActionId)
Adds the internal action id to the given action id.
|
static String |
getInternalActionId(String actionId)
Returns the internal action id contained in the given action id.
|
static String |
stripInternalActionId(String actionId)
Strips the internal action id from the given action id.
|
static String |
toHexString(byte[] b)
Converts a byte array to a hex string representing it.
|
public static final char INTERNAL_ACTION_ID_DELIMITER
public static String toHexString(byte[] b)
b
- the byte array to convertpublic static String getInternalActionId(String actionId)
actionId
- the action id prefixed by the internal action id as
received from Asterisk.addInternalActionId(String, String)
public static String stripInternalActionId(String actionId)
actionId
- the action id prefixed by the internal action id as
received from Asterisk.addInternalActionId(String, String)
public static String addInternalActionId(String actionId, String internalActionId)
actionId
- the action id as set by the user.internalActionId
- the internal action id to add.Copyright © 2004–2017. All rights reserved.