Skip to content

Add HttpHeaders getter and setter for Accept-Language [SPR-15024] #19591

Closed

Description

@spring-projects-issues

Sébastien Deleuze opened SPR-15024 and commented


Issue Links:

Referenced from: commits 712a632, 9376748, fa56361, bd8af55, 9764d57

Activity

  1. spring-projects-issues commented on Dec 15, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Sébastien Deleuze commented

    Fixed by this commit. Notice that we take advantage of the Locale.LanguageRange introduced in Java 8.

  2. spring-projects-issues commented on Dec 16, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Rossen Stoyanchev commented

    I've added one more method to expose Accept-Language as List<Locale>. See commit fa5636.

  3. spring-projects-issues commented on Dec 16, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Rossen Stoyanchev commented

    On second thought I've switched to returning the most preferred Locale only. The idea is that if you actually need to examine the full prioritized list then it's best to use Locale#filter. Here is what it looks like actually applied.

  4. spring-projects-issues commented on Dec 20, 2016

    @spring-projects-issues
    CollaboratorAuthor
  5. added
    type: enhancement
    in: web
    on Jan 11, 2019
  6. added this to the 5.0 M4 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions