Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RestTemplate to respect @Order for ClientHttpRequestInterceptor [SPR-13971] #18543

Closed
spring-projects-issues opened this issue Feb 22, 2016 · 1 comment
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Feb 22, 2016

Michael Pratt opened SPR-13971 and commented

It would be nice if the ClientHttpRequestInterceptor list inside RestTemplate would respect @Order. Right now my clients build their own TreeSet of interceptors using the AnnotationAwareOrderComparator to sort them, and then stream them to a list when all interceptors have been created. This is not very flexible and makes it difficult to add new interceptors on the fly in the proper order.


Affects: 4.1.7

Issue Links:

  • #20685 InterceptingHttpAccessor.setInterceptors should support immutable lists

Referenced from: commits f93cb2f

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Aug 25, 2016

Brian Clozel commented

This is now fixed and should be available in the next 5.0 SNAPSHOT.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants