Class StringConfiguration
java.lang.Object
org.infinispan.commons.configuration.StringConfiguration
- All Implemented Interfaces:
BasicConfiguration
- Direct Known Subclasses:
XMLStringConfiguration
A simple wrapper for a configuration represented as a String. The configuration can be in any
of the supported formats: XML, JSON, and YAML.
- Since:
- 14.0
- Author:
- Tristan Tarrant
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoStringConfiguration(String name) Converts this configuration to an XML.toStringConfiguration(String name, MediaType mediaType, boolean clearTextSecrets) Converts this configuration to a string representation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.configuration.BasicConfiguration
toXMLString, toXMLString
-
Constructor Details
-
StringConfiguration
-
-
Method Details
-
toStringConfiguration
Description copied from interface:BasicConfigurationConverts this configuration to an XML.- Specified by:
toStringConfigurationin interfaceBasicConfiguration- Parameters:
name- The name of the configuration in the generated string.- Returns:
- a String containing the representation of an Infinispan configuration using the Infinispan schema in XML.
-
toStringConfiguration
Description copied from interface:BasicConfigurationConverts this configuration to a string representation.- Specified by:
toStringConfigurationin interfaceBasicConfiguration- Parameters:
name- The name of the configuration in the generated string.mediaType- The type of string to generate. Can be one of XML, JSON or YAML.clearTextSecrets- Whether secrets (e.g. passwords) should be included in clear text or masked.- Returns:
- a String containing the representation of an Infinispan configuration using the Infinispan schema in one of the supported formats (XML, JSON, YAML).
-