FRAMES NO FRAMES | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION |
CustomHeader cu := CustomHeader(myDictionary); //create CustomHeader event to add headers into myDictionary
cu.setString("StringHeader", "string1");
Member summary | |
---|---|
dictionary<string, string> | headers
Dictionary which holds standard headers, custom headers and filterable properties. |
Action summary | |
---|---|
boolean |
getBoolean(string key)
Returns the boolean value of custom header if header is present and value can be parsed as boolean else false. |
float |
getDateTime(string key)
Returns the date-time string stored as number of seconds and fractional seconds elapsed since midnight, January 1, 1970 UTC. Return NaN if date-time string is not valid or does not contains timezone information. |
decimal |
getDecimal(string key)
Returns the decimal value of custom header if header is present and value can be parsed as decimal value else 0.0d. |
float |
getFloat(string key)
Returns the float value of custom header if header is present and value can be parsed as float else 0.0. |
integer |
getInteger(string key)
Returns the integer value of custom header if header is present and value can be parsed as integer else 0. |
string |
getString(string key)
Returns the value of custom header as string if present else default empty string. |
boolean |
hasKey(string key)
Checks if specified custom header is present. The key is automatically prefixed with "$Event$Custom$" before checking. |
void |
removeKey(string key)
Removes the specified custom header if present. |
void |
setBoolean(string key, boolean value)
Sets the value of custom header to the specified value. |
void |
setDateTime(string key, float value)
Convert the float value to date-time string with UTC timezone and store. The float value is number of seconds and fractional seconds elapsed since midnight, January 1, 1970 UTC. |
void |
setDecimal(string key, decimal value)
Sets the value of custom header to the specified value. |
void |
setFloat(string key, float value)
Sets the value of custom header to the specified value. |
void |
setInteger(string key, integer value)
Sets the value of custom header to the specified value. |
void |
setString(string key, string value)
Sets the value of custom header to the specified value. |
Member detail |
---|
dictionary<string, string> headersDictionary which holds standard headers, custom headers and filterable properties.
Action detail |
---|
boolean getBoolean(string key)Returns the boolean value of custom header if header is present and value can be parsed as boolean else false.
float getDateTime(string key)Returns the date-time string stored as number of seconds and fractional seconds elapsed since midnight, January 1, 1970 UTC. Return NaN if date-time string is not valid or does not contains timezone information.
decimal getDecimal(string key)Returns the decimal value of custom header if header is present and value can be parsed as decimal value else 0.0d.
float getFloat(string key)Returns the float value of custom header if header is present and value can be parsed as float else 0.0.
integer getInteger(string key)Returns the integer value of custom header if header is present and value can be parsed as integer else 0.
string getString(string key)Returns the value of custom header as string if present else default empty string.
boolean hasKey(string key)Checks if specified custom header is present. The key is automatically prefixed with "$Event$Custom$" before checking.
void removeKey(string key)Removes the specified custom header if present.
void setBoolean(string key, boolean value)Sets the value of custom header to the specified value.
void setDateTime(string key, float value)Convert the float value to date-time string with UTC timezone and store. The float value is number of seconds and fractional seconds elapsed since midnight, January 1, 1970 UTC.
void setDecimal(string key, decimal value)Sets the value of custom header to the specified value.
void setFloat(string key, float value)Sets the value of custom header to the specified value.
void setInteger(string key, integer value)Sets the value of custom header to the specified value.
void setString(string key, string value)Sets the value of custom header to the specified value.
FRAMES NO FRAMES | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION |