Package sonia.scm.web
Class JsonEnricherBase
java.lang.Object
sonia.scm.web.JsonEnricherBase
- All Implemented Interfaces:
JsonEnricher
- Direct Known Subclasses:
AbstractRepositoryJsonEnricher
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JsonEnricherBase
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addPropertyNode
(com.fasterxml.jackson.databind.JsonNode parent, String newKey, com.fasterxml.jackson.databind.JsonNode child) protected com.fasterxml.jackson.databind.node.ObjectNode
protected com.fasterxml.jackson.databind.node.ObjectNode
createObject
(Map<String, Object> values) protected boolean
resultHasMediaType
(String mediaType, JsonEnricherContext context) protected com.fasterxml.jackson.databind.JsonNode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface sonia.scm.web.JsonEnricher
enrich
-
Constructor Details
-
JsonEnricherBase
protected JsonEnricherBase(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
resultHasMediaType
-
value
-
createObject
protected com.fasterxml.jackson.databind.node.ObjectNode createObject() -
createObject
-
addPropertyNode
protected void addPropertyNode(com.fasterxml.jackson.databind.JsonNode parent, String newKey, com.fasterxml.jackson.databind.JsonNode child)
-