Class ConfigurationPropertiesJsonWriter
- java.lang.Object
-
- org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<EntityType>
-
- org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter<ConfigurationProperties>
-
- org.nuxeo.ecm.restapi.jaxrs.io.management.ConfigurationPropertiesJsonWriter
-
- All Implemented Interfaces:
Marshaller<ConfigurationProperties>,Writer<ConfigurationProperties>
@Setup(mode=SINGLETON, priority=2000) public class ConfigurationPropertiesJsonWriter extends ExtensibleEntityJsonWriter<ConfigurationProperties>
- Since:
- 2021.40
-
-
Field Summary
Fields Modifier and Type Field Description static StringENTITY_TYPEprotected Redactorredactorprotected static List<String>SECRET_KEYS-
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry
-
-
Constructor Summary
Constructors Constructor Description ConfigurationPropertiesJsonWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetMaskedSensitiveValue(String key, String value)protected voidwriteArrayProperty(String key, String[] value, com.fasterxml.jackson.core.JsonGenerator jg)voidwriteEntityBody(ConfigurationProperties entity, com.fasterxml.jackson.core.JsonGenerator jg)Implement this method to write the entity body.protected voidwriteProperties(String name, Properties properties, com.fasterxml.jackson.core.JsonGenerator jg)protected voidwriteProperty(Object k, Object v, com.fasterxml.jackson.core.JsonGenerator jg)protected voidwriteStringProperty(String key, String value, com.fasterxml.jackson.core.JsonGenerator jg)-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter
extend, write
-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
-
-
-
Field Detail
-
ENTITY_TYPE
public static final String ENTITY_TYPE
- See Also:
- Constant Field Values
-
redactor
protected Redactor redactor
-
-
Method Detail
-
writeEntityBody
public void writeEntityBody(ConfigurationProperties entity, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
Description copied from class:ExtensibleEntityJsonWriterImplement this method to write the entity body.- Specified by:
writeEntityBodyin classExtensibleEntityJsonWriter<ConfigurationProperties>- Parameters:
entity- The Java entity.jg- AJsonGeneratorready to write your entity as Json.- Throws:
IOException
-
writeProperties
protected void writeProperties(String name, Properties properties, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
- Throws:
IOException
-
writeProperty
protected void writeProperty(Object k, Object v, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
- Throws:
IOException
-
writeStringProperty
protected void writeStringProperty(String key, String value, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
- Throws:
IOException
-
writeArrayProperty
protected void writeArrayProperty(String key, String[] value, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
- Throws:
IOException
-
-