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 String
ENTITY_TYPE
protected Redactor
redactor
protected 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 String
getMaskedSensitiveValue(String key, String value)
protected void
writeArrayProperty(String key, String[] value, com.fasterxml.jackson.core.JsonGenerator jg)
void
writeEntityBody(ConfigurationProperties entity, com.fasterxml.jackson.core.JsonGenerator jg)
Implement this method to write the entity body.protected void
writeProperties(String name, Properties properties, com.fasterxml.jackson.core.JsonGenerator jg)
protected void
writeProperty(Object k, Object v, com.fasterxml.jackson.core.JsonGenerator jg)
protected void
writeStringProperty(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:ExtensibleEntityJsonWriter
Implement this method to write the entity body.- Specified by:
writeEntityBody
in classExtensibleEntityJsonWriter<ConfigurationProperties>
- Parameters:
entity
- The Java entity.jg
- AJsonGenerator
ready 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
-
-