Juergen Hoeller
093e573ace
ASM annotation visitor defensively accesses enum constants
...
Issue: SPR-15442
2017-04-12 15:36:18 +02:00
Juergen Hoeller
1735ba22cb
ShadowingClassLoader can be constructed without default excludes
...
Issue: SPR-15439
2017-04-12 15:34:50 +02:00
Sebastien Deleuze
d12d5f3455
Upgrade to Kotlin 1.1.2-eap-69
2017-04-12 11:04:11 +02:00
Rossen Stoyanchev
779779de7b
Refactor use of TaskScheduler in WebSocket Java config
...
Issue: SPR-15233
2017-04-11 17:41:41 -04:00
Rossen Stoyanchev
190408d1dc
Polish
2017-04-11 15:08:39 -04:00
Sebastien Deleuze
4d9144132e
Upgrade to Reactor Core 3.1
...
Issue: SPR-15318
2017-04-11 18:13:04 +02:00
Rossen Stoyanchev
f963367484
Merge pull request #1362 from romeara/SPR-15367
2017-04-11 11:55:10 -04:00
Rossen Stoyanchev
49ac6d54f7
Apply default content type change to WebFlux
...
Issue: SPR-15367
2017-04-11 11:54:40 -04:00
Rossen Stoyanchev
043c7070e3
Polish default content type change
...
Issue: SPR-15367
2017-04-11 11:54:40 -04:00
Ryan O'Meara
4a890226ea
Support for multiple default content types
...
Enhance FixedContentNegotiationStrategy and places where it is exposed
to also accept a list of media types.
Issue: SPR-15367
2017-04-11 11:54:40 -04:00
Sam Brannen
95e78b16f7
Clean up warnings in spring-test
2017-04-11 17:53:44 +02:00
Sam Brannen
987421c880
Add dependency on JUnit Platform Launcher for IDEA
...
This commit introduces an explicit dependency on the latest JUnit
Platform Launcher API so that it overrides whatever is bundled by
default in IntelliJ IDEA.
This allows a more seamless upgrade to newer versions of JUnit 5 and
the JUnit Platform before IDEA has been officially updated to support
those versions.
2017-04-11 17:45:06 +02:00
Juergen Hoeller
b061556f68
LogFactory enforces lazy resolution of non-String messages for SLF4J as well
...
Issue: SPR-14512
2017-04-11 15:39:17 +02:00
Juergen Hoeller
7f162a033b
AbstractGenericHttpMessageConverter calls two-arg variants of canRead/canWrite again
...
Issue: SPR-15434
2017-04-11 15:37:56 +02:00
Sebastien Deleuze
9a501fac46
Fix failing tests
...
Issue: SPR-14925
2017-04-11 14:00:31 +02:00
Rossen Stoyanchev
e33f603f68
Revert (recently added) cookie set header flags
...
Issue: SPR-15225
2017-04-11 07:19:07 -04:00
Rossen Stoyanchev
5d92a85fcb
Mock Servlet request/response support Accept-Language
...
Issue: SPR-15209
2017-04-11 07:19:07 -04:00
Rossen Stoyanchev
3393c10d79
Refactor HttpHeaders "Accept-Language" with Locale
2017-04-11 07:19:07 -04:00
Sebastien Deleuze
23e35c0e1a
Handle Jackson InvalidDefinitionException with 5xx status in WebFlux
...
Issue: SPR-14925
2017-04-11 12:39:09 +02:00
Juergen Hoeller
c4e0d6c2a2
UnknownHostException as resource-not-found for properties files
...
Plus first-class declaration of FileNotFoundException in Resource javadoc.
Issue: SPR-15433
2017-04-11 11:45:30 +02:00
Juergen Hoeller
ce4eff321c
Optimize StringUtils.replace for larger replacement pattern
...
Issue: SPR-15430
2017-04-11 11:40:50 +02:00
Arjen Poutsma
ac27dbea4b
Use ServerCodecConfigurer in HandlerStrategies
...
This commit changes the `HandlerStrategies` builder to use
`ServerCodecConfigurer` for configuring Decoder|Encoder and
HttpMessage[Reader|Writer]. Note that the configurer is not exposed
directly, but wrapped so that `HandlerStrategies` can keep on returning
`this` for a proper builder pattern.
This commit also removes the HandlerStrategies methods that take an
application context, as it was too naive approach to simply look up
every message reader and writer in the context.
Issue: SPR-15415
2017-04-11 11:01:27 +02:00
Arjen Poutsma
870e1897b6
Javadoc
2017-04-11 11:01:27 +02:00
Arjen Poutsma
82e864b217
Polishing
...
- Renamed `defaultCodec` to `defaultCodecs`, and `customCodec` to
`customCodecs`
- Added `@Override` annotations where necessary
- Fixed non-parameterized usage for parameterized types.
2017-04-11 11:01:27 +02:00
Juergen Hoeller
3a1d431c7d
Optimize StringUtils.replace/deleteAny for common no-op case
...
Issue: SPR-15430
2017-04-11 10:11:54 +02:00
Juergen Hoeller
7fbc20e225
Undeprecate TypeVariableMap methods on GenericTypeResolver
...
Issue: SPR-15429
2017-04-11 10:09:09 +02:00
Sam Brannen
42420a2df7
Generate “Use” links in Spring API JavaDoc
...
This commit enables the `-use` javadoc flag so that class usage pages
are included in the generated JavaDoc.
Issue: SPR-15427
2017-04-11 00:11:44 +02:00
Rossen Stoyanchev
e5fc40a9de
MockHttpSevlet[Request|Response] set cookie headers
...
Issue: SPR-15225
2017-04-10 17:37:11 -04:00
Rossen Stoyanchev
4da4f2be31
Async support in MockMvcClientHttpRequestFactory
...
Issue: SPR-15181
2017-04-10 15:28:44 -04:00
Sam Brannen
f5fe3f0f97
Upgrade to Gradle 3.5
...
Issue: SPR-15383
2017-04-10 21:22:04 +02:00
Rob Winch
e92e65f8c3
Fix ForwardedHeaderFilter preserves semicolon content
...
Previously a requestURI that contained ';' would have the value incorrectly stripped out when using
ForwardedHeaderFilter.
This commit ensures that the ';' is preserved when using ForwardedHeaderFilter.
Issue: SPR-15428
2017-04-10 09:50:44 -05:00
Rob Winch
96bfe7d197
Polish
...
Group all contextPath tests together
2017-04-10 09:50:44 -05:00
Rob Winch
1f289b7580
Add test to ensure ForwardedHeaderFilter contextPath preserves encoding
...
Add a test to verify that the ForwardedHeaderFilter contextPath override preserves URL encoding
as it should.
Issue SPR-15422
2017-04-10 09:50:43 -05:00
Rob Winch
84db06ec0b
ForwardedHeaderFilter requestURI preserve encoding
...
Previously ForwardedHeaderFilter would override the requestURI with a URL decoded value. This would cause
problems when using a URL encoded requestURI since downstream Filters would not see the URL encoded
value as they should.
This commit resolves this issue by ensuring that the requestURI is properly encoded.
Issues SPR-15422
2017-04-10 09:50:43 -05:00
Sebastien Deleuze
d098a4b96b
Make CodecException handling consistent
...
This commit makes CodecException handling consistent between functional
and annotation-based APIs. It now returns by default 4xx status code
for decoding error and 5xx for encoding error + print the error reason
in logs without the full stack trace in both variants.
Issue: SPR-15355
2017-04-10 16:07:56 +02:00
Juergen Hoeller
15b5dd9f12
Polishing
2017-04-10 15:36:45 +02:00
Juergen Hoeller
cf306037b5
Support for JSON Binding API (JSON-B)
...
Issue: SPR-14923
2017-04-10 15:36:38 +02:00
Juergen Hoeller
e5fdd4cd1d
Extracted AbstractJsonHttpMessageConverter from GsonHttpMessageConverter
...
Generic type resolution algorithm in GenericTypeResolver shared between Jackson and Gson.
Issue: SPR-15381
2017-04-10 15:36:29 +02:00
Juergen Hoeller
ea98ee820a
AcceptHeaderLocaleResolver returns default locale in case of no supported locale found
...
Issue: SPR-15426
2017-04-10 15:36:13 +02:00
Sebastien Deleuze
9b85c5b636
Rename RouterDsl to RouterFunctionDsl
2017-04-10 10:37:24 +02:00
Sebastien Deleuze
18d8876dc8
Update RouterFunctionExtensions documentation
2017-04-10 10:37:23 +02:00
Sebastien Deleuze
57f1f4cc98
Avoid duplicated kotlinVersion definition in build.gradle
2017-04-10 10:37:23 +02:00
Stephane Nicoll
7d61911cd4
Merge pull request #1383 from gavvvr:patch-2
...
* pr/1383:
Fix typo
2017-04-10 09:54:19 +02:00
Kirill Gavrilov
5fd03e45f6
Fix typo
...
Closes gh-1383
2017-04-10 09:53:52 +02:00
Stephane Nicoll
c5b23c218c
Merge pull request #1382 from pivotaljohn:patch-1
...
* pr/1382:
Update copyright header
Fix typo in AfterReturningAdviceInterceptor JavaDoc
2017-04-09 09:47:41 +02:00
Stephane Nicoll
bf6e7d0c26
Update copyright header
...
Closes gh-1382
2017-04-09 09:47:16 +02:00
John S. Ryan
9287bbb91a
Fix typo in AfterReturningAdviceInterceptor JavaDoc
...
See gh-1382
2017-04-09 09:45:46 +02:00
Juergen Hoeller
5986f881d0
HandlerMethod evaluates ResponseStatus annotation for early caching
...
Issue: SPR-15227
2017-04-08 15:56:05 +02:00
Violeta Georgieva
ff03b4a4ad
Init subscriber before switching the states
...
Issue: SPR-15418
2017-04-07 18:14:30 -04:00
Rossen Stoyanchev
91977c81ad
Support Optional without @RequestParam in WebFlux
...
The java.util.Optional wrapper should not affect the support for
"request param" arguments with or without the annotation as it
works on the Spring MVC side.
2017-04-07 17:15:07 -04:00