Rossen Stoyanchev
1f3ac340fa
Polish X-Forwarded-Prefix handling
...
Issue: SPR-14270
2016-06-01 15:33:19 -04:00
Eddú Meléndez
7ee687c798
Support X-Forwarded-Prefix in ForwardedHeaderFilter
...
See SPR-14270
2016-06-01 14:28:19 -04:00
Sebastien Deleuze
8cf5ea91f8
Sync with TestSubscriber changes in reactor-core
2016-06-01 17:55:53 +02:00
youmoo
9975f02e4d
Method comment is wrong
2016-06-01 17:00:42 +02:00
Kamil Szymanski
5a81727180
MVC docs polishing
2016-06-01 16:58:20 +02:00
Rossen Stoyanchev
65246f8cfd
Remove FIXME on retain in ReactorServerHttpRequest
...
The converters release so this is the right thing to do, not a
temporary fix.
2016-06-01 10:17:12 -04:00
Juergen Hoeller
39f143563d
Latest dependency updates (Commons FileUpload 1.3.2, OkHttp 3.3.1, HSQLDB 2.3.4, H2 1.4.192)
2016-06-01 15:10:57 +02:00
Juergen Hoeller
37de0e45f6
Polishing
2016-06-01 11:39:08 +02:00
Juergen Hoeller
e4976a2c6d
ExecutorSubscribableChannel consistently rethrows Error as MessageDeliveryException
...
Issue: SPR-14323
2016-06-01 11:38:56 +02:00
Rossen Stoyanchev
a40a8b06bf
Polish view resolution
2016-05-31 22:14:17 -04:00
Rossen Stoyanchev
8cc72b320b
View resolution with content negotiation
...
ViewResolutionResultHandler and ResponseBodyResultHandler now share
a common base class ContentNegotiatingResultHandlerSupport that
supports content negotiation.
For view resolution we compare against the supported media types of
resolved View instances, which may include default View's delegating
to an HttpMessageConverter (e.g. JSON, XML, rendering).
2016-05-31 21:51:24 -04:00
Rossen Stoyanchev
5db1a54ff0
Add HttpMessageConverterView
2016-05-31 17:49:21 -04:00
Rossen Stoyanchev
a37b2e3a84
Refactor View contract
...
View now returns Mono<Void> rather than Flux<DataBuffer> which aligns
more closely with the reactive HttpMessageConverter vs the Encoder.
The change was prompted by the upcoming implementation of a View that
delegates to an existing HttpMessageConverter e.g. for JSON, XML.
The resulting change also brings the reactive View closer in spirit to
the View from spring-webmvc which returns void.
2016-05-31 16:50:38 -04:00
Rossen Stoyanchev
f8a7024b73
Polish SimpleResultHandler
2016-05-31 16:50:32 -04:00
Rossen Stoyanchev
1b308cffbf
Introduce base class for ResponseBodyResultHandler
...
The ContentNegotiatingResultHandlerSupport base class encapsulates the
logic for content negotiation needed for both @ResponseBody and view
resolution result handling.
2016-05-31 16:33:01 -04:00
Rossen Stoyanchev
fc40643033
Optimize Consumes/ProducesRequestCondition
...
Before this change Consumes/ProducesRequestCondition shared a common
match method in the package private AbstractMediaTypeExpression. The
benefit, two lines of code, was negligible but was forcing each
condition into parsing the content type of the request body or
evaluating the content type for the response respectively.
This change removes the shared match method and brings it down into
each sub-class resulting in a performance improvement as well as in
simpler code including exception handling.
Issue: SPR-14299
2016-05-31 14:55:50 -04:00
Rossen Stoyanchev
27215b5061
Negated produces works with no Accept header present
...
Issue: SPR-14299
2016-05-31 14:44:27 -04:00
Rossen Stoyanchev
8343ce9e44
Add defaultLocale to AcceptHeaderLocaleResolver
...
Issue: SPR-14312
2016-05-31 13:55:11 -04:00
Rossen Stoyanchev
e2fa282e14
Merge pull request #1055 from rwinch/SPR-14265
2016-05-31 12:57:17 -04:00
Rossen Stoyanchev
d10134b5a5
Polish
2016-05-31 12:56:17 -04:00
Rob Winch
54f84cbd97
MockMvcWebConnection stores cookies from response
...
Previously MockMvcWebConnection did not update the cookie manager with the
cookies from MockHttpServletResponse. This meant that newly added cookies
are not saved to the cookie manager and thus are not presented in the next
request.
This commit ensures that MockMvcWebConnection stores the response cookies
in the cookie manager.
Issue: SPR-14265
2016-05-31 12:43:58 -04:00
Rossen Stoyanchev
92f1b69e8c
Update MultipartFilter documentations
...
Issue: SPR-11373
2016-05-31 12:42:32 -04:00
Rossen Stoyanchev
22c260f3fe
Merge pull request #1069 from zhoulifu/SPR-14315
2016-05-31 09:35:49 -04:00
Rossen Stoyanchev
f20f6c952a
Flush headers after null ResponseBodyEmitter
...
Issue: SPR-14315
2016-05-31 09:35:02 -04:00
Rossen Stoyanchev
431a50823f
Polish
2016-05-31 09:35:01 -04:00
Lifu Zhou
7e95cd8b4e
Flush headers after null StreamingResponseBody
...
Issue: SPR-14315
2016-05-31 09:34:51 -04:00
Juergen Hoeller
71463fb399
AbstractBeanFactory consistently guards add/remove operations against alreadyCreated Set
...
Issue: SPR-14269
2016-05-31 14:12:06 +02:00
Stephane Maldini
3f7178ba9f
Sync Reactor
2016-05-31 13:00:51 +01:00
Stephane Maldini
7fc3031c7a
update after Schedulers change
2016-05-31 11:11:38 +01:00
Juergen Hoeller
9064d38e4c
AbstractBeanFactory.markBeanAsCreated() reliably clears merged bean definition only once
...
Issue: SPR-14269
2016-05-31 11:05:29 +02:00
Juergen Hoeller
bff8259fb0
Upgrade to Objenesis 2.4 (and EhCache 3.0.1)
...
Issue: SPR-14292
2016-05-31 10:11:46 +02:00
Juergen Hoeller
3576ff051c
ScheduledAnnotationBeanPostProcessor properly registers multiple tasks per bean
...
Issue: SPR-14286
2016-05-30 22:47:31 +02:00
Juergen Hoeller
24f5f368b0
Consistent meta-annotation attributes lookup through ASM
...
Issue: SPR-14257
2016-05-30 22:39:27 +02:00
Juergen Hoeller
822e40e24f
AssertionErrors.assertEquals exposes readable array representation
...
Issue: SPR-14281
2016-05-30 17:16:03 +02:00
Juergen Hoeller
86557f25af
ConcurrentMapCacheManager recreates caches when initializing ClassLoader
...
Issue: SPR-14314
2016-05-30 17:13:45 +02:00
Sebastien Deleuze
3f80b4ab2e
Polish
2016-05-30 15:26:55 +02:00
Juergen Hoeller
cf0a0cd5d8
BeanWrapper avoids StringIndexOutOfBoundsException for incompletely quoted keys
...
Issue: SPR-14293
2016-05-30 15:15:27 +02:00
Sebastien Deleuze
97155f1a30
Rename ReactiveHttpOutputMessage.setBody() to writeWith()
2016-05-30 15:09:37 +02:00
Juergen Hoeller
a1e9459a43
@SafeVarargs for header(String, Matcher...) method
...
Issue: SPR-14278
2016-05-30 15:06:55 +02:00
Juergen Hoeller
d6284202f1
Reference documentation updates
...
Issue: SPR-14087
Issue: SPR-14272
Issue: SPR-13535
Issue: SPR-13843
Issue: SPR-14164
Issue: SPR-14167
2016-05-30 15:04:57 +02:00
Brian Clozel
250d82768f
Merge pull request #1050 from fj/patch-1
...
Remove potential XSS vulnerability in Freemarker documentation
2016-05-30 09:44:18 +02:00
Juergen Hoeller
6efa058917
AbstractBeanFactory.markBeanAsCreated() reliably clears merged bean definition first
...
Issue: SPR-14269
2016-05-29 13:25:16 +02:00
Juergen Hoeller
f7f2327f60
ServletServerHttpRequest.getHeaders() ignores invalid content type
...
Issue: SPR-14309
2016-05-29 13:22:00 +02:00
Juergen Hoeller
98eaf05c8f
@Bean's "autowire" attribute does not affect annotation-driven autowiring
...
Issue: SPR-14282
2016-05-29 13:19:09 +02:00
Rossen Stoyanchev
58307ebac4
Support Model-related return values
...
This commit adds support for Model-related return values types such as
Map, Model, @ModelAttribute annotated, and non-simple types, which
helps to clarify the logic in ViewResolutionResultHandler.
2016-05-27 20:22:58 -04:00
Juergen Hoeller
42bf007604
Latest dependency updates (Joda-Time 2.9.4, Jetty 9.3.9, Netty 4.1 GA, Tomcat 8.5.2)
2016-05-27 23:46:15 +02:00
Juergen Hoeller
03affa02db
ConfigurationClassParser detects @Bean methods in interface hierarchies as well
...
Issue: SPR-14288
2016-05-27 22:34:09 +02:00
Rossen Stoyanchev
33c5a19769
Handle unresolved view name
2016-05-27 15:22:22 -04:00
Rossen Stoyanchev
a72462cd8c
Polish view resolution tests
2016-05-27 15:22:22 -04:00
Rossen Stoyanchev
f7d4688b84
Improve 404 "handler not found" handling
...
Remove handler inserted at the end to generate error in favor of doing
the same using the otherwiseIfEmpty operator.
2016-05-27 15:21:28 -04:00