Сергей Цыпанов
b929edb221
Remove unused package-private class o.s.w.u.p.SubSequence
...
(cherry picked from commit 42216b77df )
5 years ago
Juergen Hoeller
e238c8a87c
Declare resolvedCharset as transient (restoring serializability)
...
Closes gh-26127
5 years ago
Rossen Stoyanchev
37bda566eb
Allow "*" for Access-Control-Expose-Headers
...
Closes gh-26113
5 years ago
Rossen Stoyanchev
db2786264b
UrlPathHelper.removeJsessionid correctly appends remainder
...
Closes gh-26079
5 years ago
Juergen Hoeller
e9416b369e
Polishing
5 years ago
Juergen Hoeller
7881329cf7
Polishing
5 years ago
Rossen Stoyanchev
8c3cdc6118
Remove unused import
6 years ago
Rossen Stoyanchev
01827fd8d2
Ensure response not closed by MappingJackson2HttpMessageConverter
...
Closes gh-25987
6 years ago
Sam Brannen
449377908f
Fix JUnit 4 to AssertJ migration bugs
...
The migration from JUnit 4 assertions to AssertJ assertions resulted in
several unnecessary casts from int to long that actually cause
assertions to pass when they should otherwise fail.
This commit fixes all such bugs for the pattern `.isNotEqualTo((long)`.
6 years ago
Brian Clozel
7bee3d1574
Optimize Jackson resource management in codecs
...
Prior to this commit, references to `JsonGenerator` and
`ByteArrayBuilder` were not closed/released within codecs calls.
This prevents Jackson from reusing more efficiently shared memory
resources.
This commit properly closes/releases Jackson resources in Spring MVC,
Spring WebFlux and Spring Messaging codecs.
A benchmark on WebFlux codecs (in both single value/streaming mode)
shows significant throughput and allocation improvements for small
payloads.
Closes gh-25910
6 years ago
Rossen Stoyanchev
431ec906c4
Ensure buffers released in HttpHeadResponseDecorator
...
See gh-25908
6 years ago
Rossen Stoyanchev
1d96f6a266
HttpHeaderResponseDecorator checks for "Transfer-Encoding"
...
This commit extends the fix from b86c11cc9b
by checking for both existing Content-Length and Transfer-Encoding.
Closes gh-25908
6 years ago
Juergen Hoeller
7b6293fa05
Avoid outdated Jackson API in tests
...
See gh-25907
6 years ago
Juergen Hoeller
06b6a4be16
Polishing
6 years ago
Juergen Hoeller
f3f19504c6
Polishing
6 years ago
Juergen Hoeller
e176c4e799
Polishing
6 years ago
Juergen Hoeller
66a67ec807
Polishing
6 years ago
Juergen Hoeller
69c330d905
Attempt fallback Part resolution even without StandardMultipartHttpServletRequest
...
Closes gh-25829
6 years ago
Rossen Stoyanchev
eb11c6fa23
Reinstate removal of jsessionid from lookup path
...
Closes gh-25864
6 years ago
Juergen Hoeller
f83bb7183e
Polishing
6 years ago
Rossen Stoyanchev
2533ba5253
Use Mono.fromDirect for Jetty ReactiveRespnose
...
Closes gh-25849
6 years ago
Rossen Stoyanchev
e44b08f1fc
Minor refactoring in JettyClientHttpConnector
...
See gh-25849
6 years ago
Juergen Hoeller
6e4fcb69f0
Polishing
6 years ago
Juergen Hoeller
c1617d3c52
Polishing
6 years ago
Juergen Hoeller
f010368a66
Polishing
6 years ago
Juergen Hoeller
3c84863271
Polishing
6 years ago
Juergen Hoeller
c2f6a98c90
Lenient handling of empty Content-Disposition filename
...
Closes gh-25769
6 years ago
Arjen Poutsma
07d2c08f48
Do not tokenize Forward header value
...
This commit remove the tokenization previously used in
UriComponentsBuilder#adaptFromForwardedHeaders, in order to support
Forwarded headers that have multiple, comma-separated 'for' elements.
Closes gh-25737
6 years ago
Juergen Hoeller
ae1d15c8f4
Declare protected getCharset method as non-static
...
See gh-25509
6 years ago
Rossen Stoyanchev
b6ff12d2f5
Expose protected method in AbstractJackson2HttpMessageConverter
...
Closes gh-25509
6 years ago
Rossen Stoyanchev
b1d84067cd
UriComponentsBuilder Javadoc update
...
Closes gh-25604
6 years ago
Rossen Stoyanchev
899761f0a8
Avoid unnecessary parsing of path params
...
See gh-25690
6 years ago
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
6 years ago
Juergen Hoeller
141470ff58
Explicit nullability declarations for getTarget() implementations
6 years ago
Juergen Hoeller
d62202f464
Polishing
6 years ago
Juergen Hoeller
bcdc2503fa
Avoid repeated calls to getPathWithinApplication from getLookupPathForRequest
...
Closes gh-25669
6 years ago
Juergen Hoeller
6d9d4157ef
Specifically detect Joda-Time 2.x
...
Closes gh-25655
6 years ago
Juergen Hoeller
cf2e0c7959
Selected use of ArrayList instead of LinkedList in common places
...
See gh-25652
6 years ago
Juergen Hoeller
04df9b8f49
Efficient checks for empty strings and single character matches
...
Closes gh-25552
Closes gh-25553
6 years ago
Juergen Hoeller
9bf5cba3c2
Drop outdated notes on handler type versus handler method restrictions
...
Closes gh-25482
6 years ago
Juergen Hoeller
8dd285f877
Polishing
6 years ago
Sam Brannen
5576321b04
Reset charset field in MockHttpServletResponse
...
Prior to this commit, calling reset() on MockHttpServletResponse did not
reset the `charset` field to `false` which could result in the
"Content-Type" header containing `;charset=null` which in turn would
result in errors when parsing the "Content-Type" header.
This commit resets the charset field to `false` in
MockHttpServletResponse's reset() method to avoid such errors.
Closes gh-25501
6 years ago
Sam Brannen
785ab5798a
Sync MockHttpServletResponse changes
6 years ago
Sam Brannen
89bb9cb749
Polish Javadoc
6 years ago
Sam Brannen
335c3d5db6
Polish contribution
...
See gh-25445
6 years ago
XenoAmess
ab859fcc96
Refine use of substring operations
...
Closes gh-25445
6 years ago
Juergen Hoeller
65e601090f
Copy queryParams MultiValueMap through addAll (for independent List entries)
...
Closes gh-25423
6 years ago
Juergen Hoeller
9a618dc7a1
Enforce ConditionalContentCachingResponseWrapper in ShallowEtagHeaderFilter
...
Closes gh-24976
6 years ago
Juergen Hoeller
e9898f7d52
Polishing
6 years ago
Juergen Hoeller
01bab89dba
Consistently use PropertySource.getName() for comparison
...
Includes synchronization for mutators on MutablePropertySources.
Closes gh-25369
6 years ago