Class PolarisJsonTransformer


  • public class PolarisJsonTransformer
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PolarisJsonTransformer​(com.google.gson.Gson gson, com.synopsys.integration.log.IntLogger logger)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <C extends PolarisResponse>
      C
      getResponse​(com.synopsys.integration.rest.response.Response response, java.lang.reflect.Type responseType)  
      <C extends PolarisResponse>
      C
      getResponseAs​(com.google.gson.JsonObject jsonObject, java.lang.reflect.Type responseType)  
      <C extends PolarisResponse>
      C
      getResponseAs​(java.lang.String json, java.lang.reflect.Type responseType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PolarisJsonTransformer

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

      • getResponse

        public <C extends PolarisResponse> C getResponse​(com.synopsys.integration.rest.response.Response response,
                                                         java.lang.reflect.Type responseType)
                                                  throws com.synopsys.integration.exception.IntegrationException
        Throws:
        com.synopsys.integration.exception.IntegrationException
      • getResponseAs

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

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