Brian Clozel
7a88776329
Fix missing ResourceHttpRequestHandler init in registry
...
Issue: SPR-14577
2016-08-31 10:43:11 +02:00
Rossen Stoyanchev
436486b8a1
Relax ServletContext check for resource handling
...
This is a follow-up on commit 3b95e0b relaxing the expectation that a
ServletContext is present. Instead we check defensively and fall back
on PathExtensionContentNegotiationStrategy which can use JAF.
Issue: SPR-14577
2016-08-30 13:04:58 -04:00
Sebastien Deleuze
e8530c917e
Add Smile and CBOR Jackson data formats support
...
This commit adds Smile and CBOR Jackson HttpMessageConverters
and make it possible to create Smile and CBOR ObjectMapper via
Jackson2ObjectMapperBuilder, which now allows to specify any
custom JsonFactory.
Like with JSON and XML Jackson support, the relevant
HttpMessageConverters are automaticially configurered by
Spring MVC WebMvcConfigurationSupport if jackson-dataformat-smile
or jackson-dataformat-cbor dependencies are found in the classpath.
Issue: SPR-14435
2016-08-30 11:06:40 +02:00
Rossen Stoyanchev
204a50ee6c
Fix compile issue
2016-08-29 21:06:35 -04:00
Rossen Stoyanchev
4d3c3056ed
Polish media type change in ResourceHttpRequestHandler
2016-08-29 19:49:24 -04:00
Rossen Stoyanchev
3b95e0b6e0
Fix media type regression in resource handling
...
Issue: SPR-14577
2016-08-29 16:27:24 -04:00
Juergen Hoeller
dfdfd72a3e
Polishing
...
(cherry picked from commit 430180a )
2016-08-26 18:59:40 +02:00
Brian Clozel
d8fc13f6fc
Fix server errors for invalid If-None-Match request headers
...
HttpEntityMethodProcessor should not throw IllegalArgumentExceptions for
invalid If-None-Match headers.
For those cases, this commit makes sure that both
`HttpEntityMethodProcessor` and `ServletWebRequest` have a consistent
behavior and stop processing the request as conditional and leave the
handler handle it.
Issue: SPR-14559
2016-08-26 15:48:47 +02:00
Juergen Hoeller
2e4a7480fc
Consistent use of JDK 7 StandardCharsets over Charset.forName
...
Issue: SPR-14492
2016-08-26 14:16:19 +02:00
Juergen Hoeller
14046575b0
Polishing
2016-08-26 13:27:33 +02:00
Juergen Hoeller
a8f7f75f64
Moved encodeHttpHeaderFieldParam method to HttpHeaders itself (including tests)
...
This commit also sets the test source encoding to UTF-8.
Issue: SPR-14547
2016-08-26 11:14:02 +02:00
Juergen Hoeller
d047174c6b
Unit test for empty Access-Control-Request-Headers (Chrome 52)
...
Includes optimized method/header resolution in CorsConfiguration.
Issue: SPR-14617
2016-08-24 11:40:18 +02:00
Juergen Hoeller
7bb4ab6842
Various @since tags (and varargs on setInterceptors)
...
(cherry picked from commit 5222489 )
2016-08-18 12:58:02 +02:00
Juergen Hoeller
453822817f
Protected visibility for configurePathMatch and configureAsyncSupport
...
Issue: SPR-14599
2016-08-18 10:15:48 +02:00
Juergen Hoeller
d2e3a1a4f5
DelegatingWebMvcConfiguration properly delegates extendHandlerExceptionResolvers
...
Issue: SPR-14599
2016-08-18 09:05:47 +02:00
Juergen Hoeller
eeeab27f1f
Polishing
...
(cherry picked from commit 35e247a )
2016-08-10 16:42:21 +02:00
Juergen Hoeller
59a24b406a
Polishing
2016-08-10 14:20:42 +02:00
Sebastien Deleuze
e86529ec90
Prevent StackOverflowError in AbstractJackson2HttpMessageConverter
...
Issue: SPR-14520
2016-08-04 11:20:38 -07:00
Juergen Hoeller
e03dea1d64
Polishing
2016-07-26 17:15:19 +02:00
Juergen Hoeller
382a931e7d
Polishing
2016-07-22 22:28:20 +02:00
Marius Grama
3635c9dbfe
Update xmlunit library to version 2.1.0
...
xmlunit 2.1.0 is the latest release for xmlunit.
Most of the xmlunit functionality used within spring-framework
was done through the xmlunit 1.x helper class
`org.custommonkey.xmlunit.XMLAssert`.
As of xmlunit 2.0.0 most of the XML comparison methods are done
through hamcrest matchers exposed by the xmlunit-matchers
library. In some cases during the migration, the matchers
had to be customized with custom `NodeMatcher` or
`DifferenceEvaluator` instances in order to keep the assertions
correct (they were performed with xmlunit 1.x previously).
Issue: SPR-14043
2016-07-21 15:04:21 +02:00
Juergen Hoeller
9cc625ee2c
Polishing
...
(cherry picked from commit 5a92aa4 )
2016-07-20 23:25:17 +02:00
Juergen Hoeller
28e7c11234
Polishing
2016-07-20 22:41:56 +02:00
Sebastien Deleuze
3a4e5d5da8
Fix ParameterizedType + contextClass support in Jackson converter
...
Issue: SPR-14470
2016-07-20 09:29:23 +02:00
Juergen Hoeller
99be15f58b
Revise encoding steps towards use of JDK Charset and StandardCharsets
...
Issue: SPR-14492
2016-07-19 23:43:06 +02:00
Juergen Hoeller
adc595b5f1
Avoid dependency on WebUtils for extracting file extension
...
Issue: SPR-14479
2016-07-19 23:30:33 +02:00
Juergen Hoeller
fd4b5ac892
Ignore JRuby template tests (not compatible with JDK 9 yet)
...
Issue: SPR-13344
2016-07-19 19:42:31 +02:00
Juergen Hoeller
d07381e862
Avoid deprecated number constructors on JDK 9
...
Issue: SPR-13344
2016-07-19 19:25:55 +02:00
Juergen Hoeller
aaac199e8b
Consistently use constructor-based instantiation instead of Class.newInstance / BeanUtils.instantiate
...
Issue: SPR-14486
2016-07-19 19:21:06 +02:00
Juergen Hoeller
8bb34bc962
Resource.isFile() and JAF MediaTypeFactory
...
Issue: SPR-14484
2016-07-19 18:53:31 +02:00
Juergen Hoeller
dc1664939c
Javadoc fixes and pruning of outdated references
2016-07-15 22:12:11 +02:00
Juergen Hoeller
503f0e3397
Polishing
2016-07-15 17:27:59 +02:00
Juergen Hoeller
8ccd727c9a
AbstractHandlerMethodMapping adds type+method info to getMappingForMethod exceptions
...
Issue: SPR-14452
2016-07-13 15:42:34 +02:00
Juergen Hoeller
84afc601b8
Configurable UrlPathHelper in PathExtensionContentNegotiationStrategy
...
This commit also aligns ResourceUrlProvider's and RequestMappingInfo's UrlPathHelper setter/getter signatures.
Issue: SPR-14454
2016-07-13 15:14:42 +02:00
Juergen Hoeller
6aa5931e28
Polishing
2016-07-07 01:05:25 +02:00
Juergen Hoeller
a1f5fb53db
Java 8 getParameterCount() instead of getParameterTypes().length
...
Issue: SPR-13188
2016-07-07 01:04:24 +02:00
Juergen Hoeller
da9c24c41e
Polishing
2016-07-06 18:11:33 +02:00
Juergen Hoeller
102dc8a4dd
Polishing
2016-07-06 15:29:15 +02:00
Juergen Hoeller
76dedd7ca2
FactoryBean, BeanPostProcessor and HandlerInterceptor variants declared with default methods
...
Issue: SPR-14432
2016-07-06 15:10:08 +02:00
Stephane Nicoll
e4b0486c5a
Add @FunctionalInterface on candidate interfaces
...
Issue: SPR-14432
2016-07-06 14:32:13 +02:00
Juergen Hoeller
7dda9fbd8c
Drop JasperReports support
...
Issue: SPR-13294
2016-07-05 23:06:15 +02:00
Juergen Hoeller
bc2c22d51e
Streamline XML namespace support towards unversioned schemas
...
This commit also removes support code for outdated options which were only available in older schema versions.
Issue: SPR-13499
2016-07-05 20:50:03 +02:00
Sam Brannen
1391248ea6
Introduce log4j 2 for Spring's test suite
...
This commit adds a test runtime dependency on log4j 2 for every project
and migrates all log4j.properties files to log4j2-test.xml files.
Issue: SPR-14431
2016-07-05 19:19:09 +02:00
Stephane Nicoll
00d2606b00
Explicit type can be replaced by <>
...
Issue: SPR-13188
2016-07-05 17:00:34 +02:00
Juergen Hoeller
b5db5d3aac
Broadly remove deprecated core classes and methods
...
Issue: SPR-14430
2016-07-05 15:52:49 +02:00
Juergen Hoeller
0fc0ce78ae
Drop deprecated dependencies on Log4j, JRuby, JExcel, Burlap, Commons Pool/DBCP
...
This commit also removes outdated support classes for Oracle, GlassFish, JBoss.
Issue: SPR-14429
2016-07-05 15:46:53 +02:00
Juergen Hoeller
51252ebbca
Avoid defensive checks against Java 8 API (java.util.Optional etc)
...
This commit also fixes broken javadoc links and code references.
Issue: SPR-13188
2016-07-05 02:09:00 +02:00
Juergen Hoeller
2b3445df81
Drop Portlet MVC support
...
This commit also removes the corresponding deprecated Servlet MVC variant and updates DispatcherServlet.properties to point to RequestMappingHandlerMapping/Adapter by default.
Issue: SPR-14129
2016-07-04 23:33:47 +02:00
Juergen Hoeller
ae0b7c26c5
Drop Servlet 2.5 runtime compatibility
...
Issue: SPR-13189
2016-07-04 23:31:21 +02:00
Juergen Hoeller
ff6ead1fff
Remove Velocity support
...
Issue: SPR-13795
2016-07-04 23:30:58 +02:00