public class MessagePrinterHelper
extends java.lang.Object
msg.toString()
output.
Supported complex types: attributes that extend CompoundValue
or AbstractPrintable
This helper parses application options and apply result for ToStringHelper
.
Options format:
[log-hidden-attributes]
<ProtocolName>.<Message Name | Complex Attribute Name> = <Attributes List>
For example:
[log-hidden-attributes]
ContactServer.InteractionContent = "Text, StructuredText"
If another options format required, use ToStringHelper
directly.ToStringHelper
Constructor | Description |
---|---|
MessagePrinterHelper() |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
isConfigurationChanged(CfgDeltaApplication delta,
java.lang.String sectionName) |
Checks if
CfgDeltaApplication has changes in hidden attributes section. |
static void |
setHiddenAttributes(KeyValueCollection configSection) |
Applies new hidden attributes configuration:
|
public static void setHiddenAttributes(KeyValueCollection configSection)
MessagePrinterHelper.setHiddenAttributes(cfgApp.getOptions().getList("log-hidden-attributes"));
configSection
- application options sectionpublic static boolean isConfigurationChanged(CfgDeltaApplication delta, java.lang.String sectionName) throws java.lang.NullPointerException
Checks if CfgDeltaApplication
has changes in hidden attributes section.
Note: There is a special kind of event on update notification, when all options sections were removed. Unfortunately, this notification does not contain information about existence of the required section before the update. This method in PSDK 8.5 versions could miss this possible configuration change. In PSDK 9.0 it treats "remove of all sections" as a change even if there was no requested section defined before this.
delta
- application delta, received from Configuration Server.sectionName
- section name in application options, i.e. "log-hidden-attributes".true
- if given delta object contains changes in the options section,
or objects Options content was reset (cleared); otherwise - false
.java.lang.NullPointerException
- if section name is null
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.