Juergen Hoeller
bb1d1e916e
Polishing
2014-12-07 20:52:18 +01:00
Juergen Hoeller
03d4e1bc22
Consistent bridge method handling in annotation post-processors
...
Issue: SPR-12490
Issue: SPR-12495
2014-12-07 20:51:35 +01:00
Juergen Hoeller
15d3b88037
DefaultSingletonBeanRegistry's isDependent defensively checks for circular recursion
...
Issue: SPR-10787
2014-12-07 16:30:31 +01:00
Juergen Hoeller
1daa5eb383
ResponseEntity provides static "unprocessableEntity()" convenience method as well
...
Issue: SPR-12515
2014-12-07 15:34:39 +01:00
Rossen Stoyanchev
03f5176df1
List Tomcat and Jetty Web first.
2014-12-05 12:19:06 -05:00
Rossen Stoyanchev
189ec75789
Add ability to clone to UriComponentsBuilder hierarchy
...
Issue: SPR-12494
2014-12-05 12:16:15 -05:00
Sebastien Deleuze
2fccf3ff44
Add support for autowiring Jackson handlers
...
This commit introduces the SpringHandlerInstantiator
class, a Jackson HandlerInstantiator that allows to autowire
Jackson handlers (JsonSerializer, JsonDeserializer, KeyDeserializer,
TypeResolverBuilder and TypeIdResolver) if needed.
SpringHandlerInstantiator is automatically used with
@EnableWebMvc and <mvc:annotation-driven />.
Issue: SPR-10768
2014-12-05 17:37:28 +01:00
Sebastien Deleuze
ea7f787ad8
Update supported WebSocket runtimes in the reference documentation
2014-12-05 17:13:33 +01:00
Juergen Hoeller
016b3b758a
Upgrade to JUnit 4.12
...
Issue: SPR-12511
2014-12-05 13:26:43 +01:00
Juergen Hoeller
d1f8968595
ControllerAdvice basePackages specifically refer to actual packages (avoiding accidental prefix matches with other packages)
...
Issue: SPR-12509
2014-12-05 13:25:48 +01:00
Brian Clozel
98870251f9
Better empty response body support in RestTemplate
...
Prior to this change, RestTemplate returned an empty response body if:
* HTTP return status 204 or 304
* Content-length header equals 0
This change adds a new condition for this, better supporting RFC7230
section 3.4, for connections that are closed without response body:
* No Content-length header
* No Transfer-encoding: chunked header value
* a Connection: close header value
See SPR-7911 for previous efforts in that space.
Issue: SPR-8016
2014-12-05 09:57:41 +01:00
Brian Clozel
b2878a4f60
Merge pull request #704 from aantono/master
...
Fixed the output stream incomplete data by explicitly flushing the OutputStreamWriter
2014-12-05 09:51:55 +01:00
Alex Antonov
bf8d99d7e4
Fixed the output stream incomplete data by explicitly flushing the OutputStreamWriter
2014-12-04 16:46:15 -06:00
Juergen Hoeller
4013fe03a5
Revised ControllerAdvice basePackages handling (based on package names instead of java.lang.Package)
...
Issue: SPR-12506
2014-12-04 17:56:01 +01:00
Rossen Stoyanchev
ad65119a2c
Polish ServletUriComponentsBuilder
2014-12-04 10:30:14 -05:00
Rossen Stoyanchev
7f11c1ee2f
Also apply X-Forwarded-Prefix in fromContextPath
...
Issue: SPR-12500
2014-12-04 10:15:55 -05:00
Juergen Hoeller
9ef0bdcb17
Consistent resolution of Class methods and static methods
...
Issue: SPR-12502
2014-12-03 23:03:24 +01:00
Brian Clozel
1de71511f0
Merge pull request #702 from aantono/master
...
Fix for NPE when creating ProtobufHttpMessageConverter without ExtensionRegistryInitializer
2014-12-03 21:01:34 +01:00
Rossen Stoyanchev
d322bcfbf4
Use X-Forwarded-Prefix in ServletUriComponentsBuilder
...
Issue: SPR-12500
2014-12-03 13:46:25 -05:00
Alex Antonov
b041cffe5d
Fix for NPE when creating ProtobufHttpMessageConverter without ExtensionRegistryInitializer
2014-12-03 12:26:18 -06:00
Sebastien Deleuze
af2782aa79
Fix Undertow exclusion (and upgrade to 1.1.1.Final)
2014-12-03 16:58:37 +01:00
Stephane Nicoll
e7c577fd08
Merge pull request #694 from kicktipp/SPR-12447
...
* SPR-12447:
Add @AjSuppressWarnings on static mocks
2014-12-03 10:57:25 +01:00
Janning Vygen
061b246307
Add @AjSuppressWarnings on static mocks
...
Issue: SPR-12447
2014-12-03 10:55:39 +01:00
Sebastien Deleuze
fbd85925de
Use Jackson improved default configuration everywhere
...
With this commit, Jackson builder is now used in spring-websocket
to create the ObjectMapper instance.
It is not possible to use the builder for spring-messaging
and spring-jms since these modules don't have a dependency on
spring-web, thus they now just customize the same features:
- MapperFeature#DEFAULT_VIEW_INCLUSION is disabled
- DeserializationFeature#FAIL_ON_UNKNOWN_PROPERTIES is disabled
Issue: SPR-12293
2014-12-03 09:49:41 +01:00
Phillip Webb
87f1512e88
Add protected YamlProcessor.getFlattenedMap method
...
Add a protected getFlattenedMap method to the YamlProcessor that
subclasses can use to flatten a source Map so that it has the same
entries as the Properties, but retains order.
Issue: SPR-12499
2014-12-02 17:17:34 -08:00
Roy Clarkson
83ecf5ca1d
Fix issue where FormHttpMessageConverter fails to write multipart data
...
FormHttpMessageConverter incorrectly determines that the media type
"multipart/form-data; charset=utf-8" is not multipart. This commit
allows the media type to contain a charset parameter.
2014-12-02 16:06:49 -05:00
Rossen Stoyanchev
7aa5e65235
Add info on intercepting static resource requests
...
Issue: SPR-10655
2014-12-02 15:59:43 -05:00
Rossen Stoyanchev
ed4cd9947f
Add private method to remove duplication
2014-12-02 15:26:50 -05:00
Rossen Stoyanchev
fa89ae244f
Enrich CONNECTED frames with Principal
...
Issue: SPR-12479
2014-12-02 14:30:36 -05:00
Rossen Stoyanchev
dc5b5ca8ee
Check the user of a SockJS request
...
Issue: SPR-12497
2014-12-02 12:13:35 -05:00
Juergen Hoeller
6e54fc960a
Latest dependency updates (Joda-Time 2.6, H2 1.4.182, Jettison 1.3.7, xpp3 1.1.4c)
2014-12-02 15:12:32 +01:00
Juergen Hoeller
5018889d78
AnnotationAttributesReadingVisitor defensively handles meta-annotation retrieval failure
...
Issue: SPR-12493
2014-12-02 15:12:23 +01:00
Stephane Nicoll
1aad4da6b6
Remove compiler warning
2014-12-02 14:18:22 +01:00
Stephane Nicoll
c1f1cac359
Remove DisposableBeanMethodInterceptor
...
Previously, any @Configuration class was enhanced to namely implement
DisposableBean in order to remove static callbacks that were registered
for that class. This leads to problem if an ApplicationContext is created
and destroyed within the lifecycle on another ApplicationContext in the
same class loader.
It turns out that the destruction callback is no longer necessary as the
interceptors are now stateless: the VM is free to reclaim any of those if
necessary.
Issue: SPR-12445
2014-12-02 13:56:50 +01:00
Juergen Hoeller
82651a07ab
BeanFactory accepts getBean arguments for non-prototype beans as well
...
Issue: SPR-12488
2014-12-01 20:05:11 +01:00
Juergen Hoeller
c85686ac78
Polishing
2014-12-01 19:16:31 +01:00
Juergen Hoeller
fa0ef2d87e
BeanFactory accepts getBean arguments for non-prototype beans as well
...
Issue: SPR-12488
2014-12-01 19:05:26 +01:00
Juergen Hoeller
c5c5473d44
Common annotation processing for imported and nested classes within configuration classes
...
Issue: SPR-12486
2014-12-01 18:54:56 +01:00
Juergen Hoeller
c94d584f37
OrderUtils defensively checks for presence of javax.annotation.Priority
...
Issue: SPR-12489
2014-12-01 18:08:11 +01:00
Juergen Hoeller
9a71a0c6c9
YamlProcessor defensively closes InputStream
...
Issue: SPR-12487
2014-12-01 16:02:42 +01:00
Juergen Hoeller
2496d68e9f
Relaxed final declarations and protected doInvoke methods
...
Issue: SPR-12484
2014-12-01 15:07:24 +01:00
Juergen Hoeller
efb114d49a
Polishing
2014-11-29 20:49:21 +01:00
Juergen Hoeller
bfbd25a0e9
BeanWrapper auto-growing support for EnumSet / EnumMap
...
Issue: SPR-12483
2014-11-29 20:49:06 +01:00
Juergen Hoeller
7635e7b7f2
Polishing
...
Issue: SPR-12483
2014-11-28 20:32:35 +01:00
Juergen Hoeller
fef4cd0ed6
Default conversion support for EnumSet / EnumMap
...
Issue: SPR-12483
2014-11-28 20:30:46 +01:00
Juergen Hoeller
717b2af50f
Latest dependency updates (Groovy 2.3.8, Apache HttpClient 4.3.6)
2014-11-28 17:37:42 +01:00
Juergen Hoeller
e6d7af4ea8
Polishing
2014-11-28 17:36:58 +01:00
Juergen Hoeller
decc5cd1ae
Extracted ContentCachingRequestWrapper and ContentCachingResponseWrapper
...
Issue: SPR-12477
2014-11-28 17:17:02 +01:00
Juergen Hoeller
3b1584904f
Polishing
...
Issue: SPR-12476
2014-11-27 19:57:53 +01:00
Juergen Hoeller
2bf6d5b8eb
Core dependency updates (Commons Logging 1.2, Commons Codec 1.10, JOpt Simple 4.8)
2014-11-27 19:19:58 +01:00