Package sonia.scm.web

Class JsonEnricherContext

java.lang.Object
sonia.scm.web.JsonEnricherContext

public class JsonEnricherContext extends Object
Process data for the JsonEnricher extension point giving context for post processing json results.
  • Constructor Details

    • JsonEnricherContext

      public JsonEnricherContext(URI requestUri, jakarta.ws.rs.core.MediaType responseMediaType, com.fasterxml.jackson.databind.JsonNode responseEntity)
  • Method Details

    • getRequestUri

      public URI 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.