com.holonplatform.json.gson.spring.internal

## Class GsonRestTemplateUtils

- java.lang.Object
- - com.holonplatform.json.gson.spring.internal.GsonRestTemplateUtils

- All Implemented Interfaces:
    Serializable

      public final class GsonRestTemplateUtils
      extends Object
      implements Serializable

  Utility class to manage Gson `RestTemplate` configuration.
  Since:
    5.1.0
  See Also:
    Serialized Form

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Optional<org.springframework.http.converter.json.GsonHttpMessageConverter>` | `getGsonConverter(org.springframework.web.client.RestTemplate restTemplate)` Get a registered GsonHttpMessageConverter from RestTemplate

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getGsonConverter

          public static Optional<org.springframework.http.converter.json.GsonHttpMessageConverter> getGsonConverter(org.springframework.web.client.RestTemplate restTemplate)

      Get a registered GsonHttpMessageConverter from RestTemplate
      Parameters:
        `restTemplate` - RestTemplate
      Returns:
        Optional GsonHttpMessageConverter, empty if not registered

Copyright © 2019 The Holon Platform. All rights reserved.