Rossen Stoyanchev
eb11c6fa23
Reinstate removal of jsessionid from lookup path
...
Closes gh-25864
2020-10-07 11:31:52 +01:00
Juergen Hoeller
6e4fcb69f0
Polishing
2020-09-25 11:26:01 +02:00
Juergen Hoeller
d9da663f6d
Optimize String argument resolution in MessageTag
...
Closes gh-25809
2020-09-25 11:23:38 +02:00
Juergen Hoeller
82e64af5a5
Avoid throwing plain RuntimeException (plus related polishing)
...
See gh-24805
2020-09-18 19:01:49 +02:00
Rossen Stoyanchev
16d125ce76
Extend Content-Disposition "inline" to error responses
...
We don't expect a browser to save error responses to a file but we
extend this protection anyway since "inline" is only a suggestion
that shouldn't have any side effects.
2020-09-14 15:28:53 +01:00
Rossen Stoyanchev
852718ec0e
Minor fix in PathResourceResolverTests
...
Closes gh-25671
2020-09-13 21:09:08 +01:00
Rossen Stoyanchev
f88759c3c9
Shared read-only instances of UrlPathHelper
...
UrlPathHelper is often created and used without customizations or with
the same customizations. This commit introduces re-usable, instances.
Effectively a backport of commit 23233c.
See gh-25690
2020-09-07 21:27:52 +01:00
Juergen Hoeller
6f0461c569
Polishing
2020-08-25 16:17:22 +02:00
Juergen Hoeller
04df9b8f49
Efficient checks for empty strings and single character matches
...
Closes gh-25552
Closes gh-25553
2020-08-25 16:17:12 +02:00
Juergen Hoeller
3b9558a269
Polishing
2020-08-07 15:51:33 +02:00
Juergen Hoeller
8dd285f877
Polishing
2020-08-07 13:02:43 +02:00
Sam Brannen
335c3d5db6
Polish contribution
...
See gh-25445
2020-07-22 17:26:59 +02:00
XenoAmess
ab859fcc96
Refine use of substring operations
...
Closes gh-25445
2020-07-22 17:26:42 +02:00
Juergen Hoeller
0b697a3068
Polishing
2020-07-17 19:24:23 +02:00
Juergen Hoeller
e9898f7d52
Polishing
2020-07-17 17:48:33 +02:00
Juergen Hoeller
e46ccd74b1
Consistent abstract declaration of "Abstract" base classes
...
Closes gh-25240
2020-06-11 23:43:41 +02:00
Rossen Stoyanchev
a2d516d526
Replace "whitelist" with alternative words
2020-06-08 21:19:28 +01:00
Rossen Stoyanchev
8dc8d88f88
Pre-calculated RequestMappingInfo hashcode
...
See gh-25143
2020-06-03 06:11:35 +01:00
Rossen Stoyanchev
1e25556049
Shared PathPatternParser instance
...
See gh-25143
2020-06-03 05:58:10 +01:00
Rossen Stoyanchev
a92f425529
Also use constant for custom mapping condition
...
See gh-25143
2020-05-28 06:51:57 +01:00
Rossen Stoyanchev
e9a9883aa9
Optimal initialization of empty request mapping conditions
...
Closes gh-25143
2020-05-27 18:57:02 +01:00
Rossen Stoyanchev
7c9ad6dd08
Add deprecation notes to the WebMvc config schema
...
Closes gh-23915
2020-05-12 06:50:09 +01:00
Rossen Stoyanchev
583435d068
Consistent ordering in MethodNotAllowedException
...
This caused random failures in a newly added test. Also remove defensive
check in ResponseStatusExceptionResolver.
See gh-24944
2020-04-25 07:33:30 +01:00
Rossen Stoyanchev
e18901d6b1
Headers support in ResponseStatusExceptionResolver
...
Closes gh-24944
2020-04-24 12:53:00 +01:00
Rossen Stoyanchev
8d31dcaa29
Clarification on path extension deprecations
...
Closes gh-24642
2020-04-20 14:43:07 +01:00
Sébastien Deleuze
884c7696ce
Make it possible to run Spring MVC without kotlin-reflect
...
Closes gh-24828
2020-04-14 14:56:47 +02:00
Juergen Hoeller
de0d06fab5
Polishing
2020-04-09 11:49:35 +02:00
Qimiao Chen
fd8d11c7e3
Use single String instead of String[] for varargs argument
...
Closes gh-24864
2020-04-04 20:05:19 +02:00
陈其苗
13970ae528
Use autoboxing instead of explicit wrapping in tests
...
Closes gh-24801
2020-04-01 14:34:20 +02:00
Sam Brannen
e26764d249
Remove duplicate words in documentation and polish Javadoc
2020-03-31 12:17:58 +02:00
Juergen Hoeller
910d2788e9
Polishing
2020-03-23 18:02:55 +01:00
Juergen Hoeller
1800b10717
Expose parameter annotations from interfaces across entire class hierarchy
...
Closes gh-24127
2020-03-23 17:57:44 +01:00
Sam Brannen
35d0b3dba9
Fix Javadoc links accidentally broken in 7b6d83a106
2020-03-16 15:43:04 +01:00
Qimiao Chen
193a76fe2a
Avoid unnecessary sorting in AbstractHandlerMethodMapping
...
Closes gh-24704
2020-03-16 12:38:43 +01:00
Arjen Poutsma
7c4f0318bb
Improve efficiency of built RouterFunction
...
This commit changes the way RouterFunctions registered to the builder
are composed in both WebFlux.fn and WebMvc.fn.
Prior to this commit, all routes added to the build were composed with
`reduce`.
After this commit, all routes are stored in a special router function,
allowing for more efficient execution and smaller stack traces.
Closes gh-24652
2020-03-13 16:09:41 +01:00
Rossen Stoyanchev
7b7dfcaaed
Polishing contribution
...
See gh-24691
2020-03-13 14:58:01 +00:00
mdindoffer
c11dd4a839
Do not mention credentials as enabled by default in CorsRegistry
...
Credentials are not enabled by default contrary to the javadocs.
The credentials support must be enabled via #allowCredentials.
Closes gh-24691
Co-authored-by: Martin Dindoffer <martin.dindoffer@sigp.eu >
2020-03-13 15:21:53 +01:00
Arjen Poutsma
0dc1c7eb8b
Add ServerRequest::checkNotModified
...
This commit adds the checkNotModified method to ServerRequest in both
WebFlux.fn and WebMvc.fn. Unlike other checkNotModified methods found
in the framework, this method does not return a boolean, but rather
a response wrapped in a Mono/Optional. If the resource has
not been changed, the not-modified response can be returned directly;
if the resource has changed, the user can create a corresponding
response using switchIfEmpty/orElse(Get).
Closes gh-24173
2020-03-11 16:45:00 +01:00
Arjen Poutsma
61569003b5
CORS support in HTTP header predicate
...
This commit introduces CORS support for the HeadersPredicate in
WebMvc.fn and WebFlux.fn.
Closes gh-24564
2020-03-10 17:22:26 +01:00
Arjen Poutsma
c03cdbac21
CORS support in HTTP method predicate
...
This commit introduces CORS support for the HttpMethodPredicate in
WebMvc.fn and WebFlux.fn.
Closes gh-24564
2020-03-10 15:45:11 +01:00
Arjen Poutsma
fc12891006
Add ServerRequest::firstHeader
...
This commit introduces the method firstHeaderiin both WebMvc.fn and
WebFlux.fn, which return the first header value of a given header name,
if any.
2020-03-10 15:45:11 +01:00
Arjen Poutsma
2fb90cb16b
Support for byte-range requests in WebMvc.fn
...
This commit introduces support for byte-range requests in Servlet
Functional endpoints.
Closes gh-24562
2020-03-05 15:32:31 +01:00
Rossen Stoyanchev
7e03728b2c
Polishing contribution
...
See gh-24632
2020-03-04 19:27:37 +00:00
sada-sigsci
cc1f57823b
Remove charset from content-type in SseEmitter
...
See gh-24632
2020-03-04 19:27:37 +00:00
Rossen Stoyanchev
a98bf30ee6
ShallowEtagHeaderFilter checks for pre-existing eTag
...
The filter now checks for an explicitly set eTag and uses it instead of
generating one, and also suppresses caching.
Closes gh-24635
2020-03-04 19:17:56 +00:00
Rossen Stoyanchev
c7e037da39
Remove unnecessary calls to disableContentCaching
...
These calls were added in error when trying to fix #22797 and #23775 .
They are not needed in 304 scenarios. Those have no response content and
are skipped by ShallowETagHeaderFilter based on the status.
This leaves disableContentCaching invoked only in streaming scenarios,
which was the original intent and should be the only reason for that
method.
See gh-24635
2020-03-04 19:17:56 +00:00
Rossen Stoyanchev
d3da7a50ec
Polishing and minor refactoring
...
See gh-24635
2020-03-04 19:17:56 +00:00
Christoph Dreis
2093e35f27
Avoid unnecessary sorting
2020-03-04 19:10:14 +00:00
ZhangT
c5fb7b9fb7
Simplify some redundant code
...
Closes gh-24586
Co-authored-by: Sam Brannen <sbrannen@pivotal.io >
2020-02-26 12:29:09 +01:00
Juergen Hoeller
6db20eb773
Avoid package import cycles
2020-02-25 14:55:53 +01:00