Class IntJsonTransformer


  • public class IntJsonTransformer
    extends java.lang.Object
    • Constructor Detail

      • IntJsonTransformer

        public IntJsonTransformer​(com.google.gson.Gson gson,
                                  com.synopsys.integration.log.IntLogger logger)
    • Method Detail

      • getResponse

        public <R extends IntRestResponse> R getResponse​(Response response,
                                                         java.lang.reflect.Type responseType)
                                                  throws com.synopsys.integration.exception.IntegrationException
        Throws:
        com.synopsys.integration.exception.IntegrationException
      • getComponentAs

        public <C extends IntRestComponent> C getComponentAs​(java.lang.String json,
                                                             java.lang.reflect.Type responseType)
                                                      throws com.synopsys.integration.exception.IntegrationException
        Throws:
        com.synopsys.integration.exception.IntegrationException
      • getComponentAs

        public <C extends IntRestComponent> C getComponentAs​(com.google.gson.JsonObject jsonObject,
                                                             java.lang.reflect.Type responseType)
                                                      throws com.synopsys.integration.exception.IntegrationException
        Throws:
        com.synopsys.integration.exception.IntegrationException
      • setPatch

        public void setPatch​(IntRestResponse intRestResponse,
                             com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      • producePatchedJson

        public java.lang.String producePatchedJson​(IntRestResponse intRestResponse,
                                                   com.fasterxml.jackson.databind.ObjectMapper objectMapper)