Package sonia.scm.web
Class JsonEnricherContext
java.lang.Object
sonia.scm.web.JsonEnricherContext
Process data for the
JsonEnricher
extension point giving context for
post processing json results.-
Constructor Summary
ConstructorsConstructorDescriptionJsonEnricherContext
(URI requestUri, jakarta.ws.rs.core.MediaType responseMediaType, com.fasterxml.jackson.databind.JsonNode responseEntity) -
Method Summary
Modifier and TypeMethodDescriptionThe URI of the originating request.com.fasterxml.jackson.databind.JsonNode
The json result represented by nodes, that can be modified.jakarta.ws.rs.core.MediaType
The media type of the response.
-
Constructor Details
-
JsonEnricherContext
public JsonEnricherContext(URI requestUri, jakarta.ws.rs.core.MediaType responseMediaType, com.fasterxml.jackson.databind.JsonNode responseEntity)
-
-
Method Details
-
getRequestUri
The URI of the originating request. -
getResponseMediaType
public jakarta.ws.rs.core.MediaType getResponseMediaType()The media type of the response. Using this you can determine the content of the result.- See Also:
-
getResponseEntity
public com.fasterxml.jackson.databind.JsonNode getResponseEntity()The json result represented by nodes, that can be modified.
-