Arjen Poutsma
bfb2effddb
Expose resource lookup function
...
This commit exposes the resource lookup function used by
`RouterFunctions.resources(String, Resource)`, so that it can be
composed upon.
Issue: SPR-16788
7 years ago
Arjen Poutsma
51325afbcc
Clean up path variables after non match
...
This commit makes sure the nested path variables are only commited to
the attributes when all predicates match.
Issue: SPR-16692
7 years ago
Sebastien Deleuze
af0cb53742
Support decoding Mono in Jaxb2XmlDecoder
...
Issue: SPR-16759
7 years ago
Arjen Poutsma
22edab852d
Provide simple way to create ServerRequest
...
This commit introduces support for creating a new `ServerRequest` from
an existing instance. This is especially useful when filtering requests
in a HandlerFilterFunction.
Issue: SPR-16707
7 years ago
Rossen Stoyanchev
64b8b6e978
Polish WebSocketIntegrationTests
7 years ago
Rossen Stoyanchev
725d685799
ReactorNettyWebSocketSession implements close properly
...
Issue: SPR-16774
7 years ago
Sam Brannen
de4b65a0f3
Suppress warnings in RequestMappingMessageConversionIntegrationTests
7 years ago
Juergen Hoeller
9bff5b48cf
Fine-tuned assertions and related polishing in WebFlux builders
7 years ago
Johnny Lim
6519e7b22a
Polish
7 years ago
Juergen Hoeller
a683472daa
Support for non-standard HTTP status in reactive ClientHttpResponse
...
Issue: SPR-16748
7 years ago
Johannes Edmeier
2a0540cb5f
Move init of excchangeStrategies to default ctor in DefaultWebClientBuilder
...
When the copy constructor is used the exchangeStrategies need not to be
initialized as they are set in the copyconstructor
fixes SPR-16771
7 years ago
sdeleuze
1d6540b1c2
Enable KotlinScriptTemplateTests after KT-18833 fix
7 years ago
Rossen Stoyanchev
b6da63aeb7
Align with 5.0.x change #cd3ed7
7 years ago
Rossen Stoyanchev
da98ff72d2
Use StringDecoder to split SSE stream
...
ServerSentEventHttpMessageReader had logic to split on new lines
and buffer until an empty new line (start of a new event). To account
for random data chunking, it later re-assembled the lines for each
event and split again on new lines. However bufferUntil was still
unreliable a chunk may contain nothing but a newline, which doesn't
necessarily mean an empty newline in the overall SSE stream.
This commit simplifies the above by delegating the splitting of the
stream along newlines to StringDecoder.
Issue: SPR-16744
7 years ago
Rossen Stoyanchev
30c98c8a1c
Polish tests to use WebClient retrieve()
7 years ago
Rossen Stoyanchev
06041ea4e2
Polish (minor) in AbstractMessageReaderArgumentResolver
7 years ago
Rossen Stoyanchev
babe6c59c4
Avoid creating Exception instance if not needed
...
Issue: SPR-16726
7 years ago
nkjackzhang
961c641973
Fix typo in javadoc
...
Closes gh-1791
7 years ago
Rossen Stoyanchev
5b9e7e44e0
Improve WebClient test with ParameterizedTypeReference
...
Issue: SPR-16715
7 years ago
Arjen Poutsma
7e2726f400
Add remoteAddress() to ServerRequest
...
Issue: SPR-16681
7 years ago
Juergen Hoeller
66a3a82fb3
Avoid reference to HandlerMethod class in ServerErrorException
...
This breaks the package dependency cycle between web.server/web.method and makes ServerErrorException more generally applicable. Includes deprecation of the plain reason constructor variant, in favor of providing a Method or MethodParameter context (which MatrixVariableMethodArgumentResolver does now).
7 years ago
Rossen Stoyanchev
d9e17a62ce
Refine SyncInvocableHandlerMethod error handling
...
Ensure the error is wrapped as ServerErrorException
7 years ago
Rossen Stoyanchev
4454ffd2b1
Replace remaining use of block operator
7 years ago
Juergen Hoeller
6393e5ce0c
Consistent Ordered.LOWEST_PRECEDENCE declarations for default order
7 years ago
Juergen Hoeller
d553ddc5b3
Nullability refinements (based on IntelliJ IDEA 2018.1 introspection)
...
Issue: SPR-15756
7 years ago
igor-suhorukov
ab96bb5428
Remove redundant check
7 years ago
Rossen Stoyanchev
dd96c873e3
Improve docs on forwarded headers
...
Issue: SPR-16660
7 years ago
Juergen Hoeller
695bf2961f
Consistent trace logging in PathResourceResolver
...
Issue: SPR-16616
7 years ago
igor-suhorukov
4aae6a6dda
Use Map.forEach instead of manual Map.Entry iteration wherever possible SPR-16646
7 years ago
Rossen Stoyanchev
224d52e032
Refine RequestedContentTypeResolver contract
...
Consistently return "*/*" if no media types were requested rather than
an empty list. Existing code has to check for both in any case to see
if nothing was requested.
Issue: SPR-16624
7 years ago
Juergen Hoeller
9a27bc9b3e
Upgrade to Jackson 2.9.5 and Hibernate Validator 6.0.9
7 years ago
Juergen Hoeller
98ad23bef8
Consistent logging of encoded path evaluation failure
...
Issue: SPR-16616
7 years ago
Juergen Hoeller
13356a7ee2
Consistent encoded path evaluation in reactive ResourceWebHandler and co
...
Issue: SPR-16616
7 years ago
Juergen Hoeller
e3d0ef6015
Use Map.forEach instead of manual Map.Entry iteration wherever possible
...
Issue: SPR-16646
7 years ago
Rossen Stoyanchev
729d0d2796
Property handling of Void.class in WebClient retrieve()
...
Issue: SPR-16636
7 years ago
Arjen Poutsma
c56317928f
Add formData() and multipartData() to ServerRequest
...
Issue: SPR-16551
7 years ago
Christoph Dreis
d3a0a8e007
Use Collection.removeIf() where possible ( #1747 )
...
Use Collection.removeIf() where possible
Issue: SPR-16622
7 years ago
Rossen Stoyanchev
94c525cdc8
Polish @RequestPart support
7 years ago
Juergen Hoeller
ba5ef6456f
WebFluxResponseStatusExceptionHandler for @ResponseStatus introspection
...
The web.server package is quite low-level and should not depend on web.bind in order to avoid a dependency cycle. Extracting the introspection of the ResponseStatus annotation into a WebFlux-level subclass resolves the cycle.
Issue: SPR-16567
7 years ago
Rossen Stoyanchev
0e28bee0f1
Clean duplicate separators in resource URLs
...
Most Servlet containers do this anyway, but not all, and not
consistently for forward and backslashes.
Issue: SPR-16616
7 years ago
Rossen Stoyanchev
313c6cef32
Polish
7 years ago
Arjen Poutsma
b31d55dfce
Deprecated ClientRequest.method in favor of ClientRequest.create
...
The former method clashed with the ClientRequest.method() getter.
7 years ago
Arjen Poutsma
04c2a2990d
Provide simple way to create ClientResponse
...
This commit introduces ClientResponse.Builder, an easier way to create a
ClientResponse from an existing response, or from scratch.
Issue: SPR-16553
7 years ago
Juergen Hoeller
2096676b3f
Upgrade to Apache Johnzon 1.1.7 and JRuby 9.1.16
7 years ago
Juergen Hoeller
d4a8f76bf9
Consistent volatile access to running flag in Lifecycle implementations
...
Issue: SPR-16488
7 years ago
Juergen Hoeller
58011f71e9
Consistent assertions for template method result vs servlet registration
7 years ago
Sam Brannen
2575c26020
Clean up warnings and dead code in spring-webflux module
7 years ago
Juergen Hoeller
2a3f90dc7b
Upgrade to Hibernate ORM 5.2.15 and Hibernate Validator 6.0.8
7 years ago
igor-suhorukov
d89f9af22d
parentheses should be removed from a single lambda input parameter when its type is inferred
7 years ago
igor-suhorukov
0c45c4c6a3
lamdbas containing only one statement should not nest this statement in a block
7 years ago