Spring for Android
  1. Spring for Android
  2. ANDROID-82

Add ability to specify charset in StringHttpMessageConverter

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 1.0.0.RC1
    • Fix Version/s: 1.0.0.RELEASE
    • Component/s: rest-template
    • Labels:
      None

      Description

      StringHttpMessageConverter calls Charset.availableCharsets() in its constructor. As reported in the forum post, this increases the time required to construct a RestTemplate object. Consider an alternative constructor that accepts a charset as a parameter. RestTemplate would have to be modified, however, since it creates an instance by default.

        Activity

        Hide
        Roy Clarkson added a comment -

        Added two additional constructors to StringHttpMessageConverter. The first allows you to set a different default Charset. The second allows you to set the default Charset and list of available Charsets. Setting this list will prevent Charset.availableCharsets() from being called.

        Show
        Roy Clarkson added a comment - Added two additional constructors to StringHttpMessageConverter. The first allows you to set a different default Charset. The second allows you to set the default Charset and list of available Charsets. Setting this list will prevent Charset.availableCharsets() from being called.
        Hide
        Roy Clarkson added a comment -

        Opened ANDROID-88 to evaluate modifying RestTemplate.

        Show
        Roy Clarkson added a comment - Opened ANDROID-88 to evaluate modifying RestTemplate.

          People

          • Assignee:
            Roy Clarkson
            Reporter:
            Roy Clarkson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: