Juergen Hoeller
8325b10080
Consistent formatting of license headers, package javadocs, and import declarations
2014-10-21 01:44:07 +02:00
Rossen Stoyanchev
956b66bbd4
Fix issue with async return value type determination
...
Before this change, the type of asynchronously produced return values
(e.g. Callable, DeferredResult, ListenableFuture) could not be
properly determined with an actual resulting value of null. Or even
with an actual value returned, the generic type could not be properly
determined. This change fixes both of those issues.
Issue: SPR-12287
2014-10-15 16:39:03 -04:00
Juergen Hoeller
c7e7d11156
Polishing
2014-10-14 14:27:03 +02:00
Juergen Hoeller
d501137f4e
Consistently accept empty Content-Type header and empty character encoding
...
Issue: SPR-12173
2014-10-14 14:26:07 +02:00
Juergen Hoeller
0fb8f0b469
Polishing
2014-10-13 17:58:15 +02:00
Juergen Hoeller
8760be7d64
ResponseEntity's HeadersBuilder allows for specifying existing HttpHeaders
...
Issue: SPR-12324
2014-10-13 17:22:27 +02:00
Brian Clozel
0a68d265fb
Polish indentation
2014-10-08 17:02:26 +02:00
Sebastien Deleuze
f518ad9009
Add (de)serializerByType() and mixIn() to Jackson2ObjectMapperBuilder
...
Issue: SPR-12313
2014-10-08 10:57:29 +02:00
Tadaya Tsuyukubo
25bb58a1e8
Add shortcuts for Jackson mix-in annotations registration
...
This commit adds support for direct Jackson mix-in annotations registration in
Jackson2ObjectMapperFactoryBean and Jackson2ObjectMapperBuilder.
Issue: SPR-12144
2014-10-07 18:07:00 +02:00
Juergen Hoeller
20a8416c2e
Jackson2ObjectMapperBuilder allows for regular constructor usage as well
...
Issue: SPR-12243
2014-10-01 02:29:46 +02:00
Juergen Hoeller
3a3c52dbdd
Polishing
2014-10-01 01:10:25 +02:00
Juergen Hoeller
d778037f40
Jackson2ObjectMapperFactoryBean builds on revised Jackson2ObjectMapperBuilder now
...
Issue: SPR-12243
2014-10-01 01:04:16 +02:00
Juergen Hoeller
69998e3d50
Remove outdated references to ContextLoaderServlet
...
Issue: SPR-7725
(cherry picked from commit b45d08f )
2014-10-01 01:02:56 +02:00
Sebastien Deleuze
77abe07807
Set Jackson DEFAULT_VIEW_INCLUSION property to false by default
...
Issue: SPR-12179
2014-09-30 05:18:15 +02:00
Sebastien Deleuze
42aef5f5dc
Set Jackson FAIL_ON_UNKNOWN_PROPERTIES property to false by default
...
Issue: SPR-11891
2014-09-30 05:18:15 +02:00
Sebastien Deleuze
4e24d66ff7
Create a builder for Jackson ObjectMapper
...
Jackson2ObjectMapperBuilder now allows to create ObjectMapper and XmlMapper
instances easily thanks to its fluent API.
This builder is used in Jackson message converters and views to instantiate default
ObjectMapper and XmlMapper.
This commit also add a createXmlMapper property to
Jackson2ObjectMapperFactoryBean in order to allow to create easily a XmlMapper
instance.
Issue: SPR-12243
2014-09-30 05:18:15 +02:00
Juergen Hoeller
7bc8e5199e
Polishing
2014-09-29 23:50:23 +02:00
Juergen Hoeller
7f43f02a13
FormHttpMessageConverter uses a delegate class for JavaMail-based MIME encoding (isolating the JavaMail API dependency)
...
Issue: SPR-12108
2014-09-29 22:35:13 +02:00
Juergen Hoeller
bf99d6a3b5
WebAsyncManager avoids concurrentResult.toString() and builds correct DeferredResultProcessingInterceptor keys
...
Issue: SPR-12253
2014-09-26 14:15:21 +02:00
Sam Brannen
24d09a3b8d
Fix Javadoc link to DEFAULT_NONE in @RequestMapping
2014-09-26 12:56:25 +02:00
Rossen Stoyanchev
2a64834a44
Fix test dependency
2014-09-26 00:03:46 -04:00
Rossen Stoyanchev
9be0cf21e5
Support writing multipart non-ASCII file names
...
Issue: SPR-12108
2014-09-25 18:00:55 -04:00
Rossen Stoyanchev
6cbe1433e2
Polish FormHttpMessageConverter
2014-09-25 16:32:01 -04:00
Juergen Hoeller
1f3e195dac
Polishing
2014-09-25 17:00:45 +02:00
Juergen Hoeller
cfc821d179
DataBinder unwraps Optional objects and allows for proper handling of Optional.empty()
...
Issue: SPR-12241
2014-09-25 17:00:36 +02:00
Brian Clozel
26326fb40b
Mention DEFAULT_NONE in @RequestMapping's Javadoc
...
This change mentions `ValueConstants.DEFAULT_NONE` in @RequestMapping's
Javadoc, in order to explain the default value.
Issue: SPR-9967
2014-09-22 18:38:19 +02:00
Brian Clozel
b9348bb89c
Fix Protobuf support - HTTP headers already written
...
Prior to this commit, the `ProtobufHttpMessageConverter` would call
`outputMessage.getBody()` at the beginning of the `writeInternal`
method, thus writing HTTP headers. Since this method is trying to write
"x-protobuf" headers after that, protobuf support wasn't working
properly for the default "x-protobuf" media type.
Thanks Toshiaki Maki for the repro project!
Also fixed:
* improve `MockHttpOutputMessage` behavior to reproduce the read-only
state of HTTP headers once they've been written.
Issue: SPR-12229
2014-09-22 14:02:35 +02:00
Sebastien Deleuze
2989fe4203
Support Jackson based XML serialization in RestTemplate
...
Issue: SPR-12225
2014-09-22 01:10:21 +02:00
Sam Brannen
4aa97f8945
Remove references to CommonsHttpInvokerRequestExecutor
2014-09-21 19:53:54 +02:00
Juergen Hoeller
a833889c2a
Polishing
2014-09-17 21:55:46 +02:00
Juergen Hoeller
15320db414
Polishing
2014-09-17 02:35:41 +02:00
Juergen Hoeller
f394c8aa2a
Polishing
...
Issue: SPR-12196
2014-09-16 15:03:21 +02:00
Juergen Hoeller
26a93b6a33
Client request implementations enforce RFC 6265 (cookies in a single header)
...
Issue: SPR-12196
2014-09-16 15:02:21 +02:00
Juergen Hoeller
70412a9d0a
Accept empty Content-Type header
...
Issue: SPR-12173
2014-09-12 16:44:56 +02:00
Juergen Hoeller
1e7bfd91a7
Polishing
2014-09-10 01:28:54 +02:00
Juergen Hoeller
5790fc904a
Consistent support for java.util.Optional for all applicable handler method arguments
...
Issue: SPR-12171
2014-09-10 01:27:46 +02:00
Juergen Hoeller
c8bbd0bae4
Polishing
2014-09-07 22:51:21 +02:00
Juergen Hoeller
a5a56d5052
Polishing
2014-09-04 11:20:11 +02:00
Juergen Hoeller
81ba3b33f6
Dropped RequestEntity's template variable methods in order to remove dependencies on org.springframework.web
...
Instead, as outlined in the revised javadoc, let's recommend manual UriTemplate usage for RequestEntity URI input.
Issue: SPR-11752
2014-09-04 11:19:59 +02:00
Juergen Hoeller
d75f128752
Polishing
2014-09-04 03:03:12 +02:00
Juergen Hoeller
86b7118da8
Polishing
2014-09-04 02:30:25 +02:00
Juergen Hoeller
20c2ba35dc
Polishing
2014-09-04 00:55:38 +02:00
Sebastien Deleuze
36542549fa
Add HTTP status to ServletRequestHandledEvent
...
Issue: SPR-12119
2014-08-29 21:47:03 -04:00
Rossen Stoyanchev
a0b231d36d
Update port related code in UriComponentsBuilder
...
Use null to indicate no port has been provided.
Raise exception when port has not been expanded.
Issue: SPR-12123
2014-08-29 09:21:15 -04:00
Sebastien Deleuze
8fbd310b07
Support port URI template variables
...
This commit makes it possible to specify port with an URI template variable.
For example :
RestTemplate restTemplate = new RestTemplate();
restTemplate.getForObject("http://localhost:{port}/resource ", String.class, 8080);
Issue: SPR-12123
2014-08-29 08:59:11 -04:00
Juergen Hoeller
b93dd95475
Polishing
2014-08-22 22:55:57 +02:00
Juergen Hoeller
439ce4a1a5
Polishing
...
Issue: SPR-12112
2014-08-22 14:00:28 +02:00
Arjen Poutsma
dbe337f932
ResponseEntity provides static "badRequest()" convenience method as well
...
Issue: SPR-12112
2014-08-22 13:36:45 +02:00
Juergen Hoeller
b73c531527
PropertySource implementations perform conversion to String arrays via StringUtils (getting rid of EMPTY_NAMES_ARRAY)
2014-08-21 22:46:33 +02:00
Juergen Hoeller
0c32d66cbd
ShallowEtagHeaderFilter supports Servlet 3.1's setContentLengthLong as well
...
Issue: SPR-12097
2014-08-19 20:17:42 +02:00