Rossen Stoyanchev
b2d88ba858
SPR-6464 Polish following code review.
14 years ago
Rossen Stoyanchev
1300da06a6
SPR-8593 Fix issue in ModelAndViewMethodReturnValueHandler with ModelAndView containing a View
15 years ago
Arjen Poutsma
3f2ea7f50e
SPR-5973: UriComponents now encapsulates a PathCompont, switching between string paths and path segment lists automatically.
15 years ago
Arjen Poutsma
782c2a4657
Removed ServletUriComponentsBuilder for now.
15 years ago
Chris Beams
bc57f72bbb
Temporarily @Ignore failure in RequestContextTests
...
Issue: SPR-5973
15 years ago
Rossen Stoyanchev
de504fa613
SPR-8678 Use the lookup path to determine the media type by file name.
15 years ago
Rossen Stoyanchev
2799e710bc
SPR-6464 Add 'setAlwaysUseRedirectAttributes' flag.
...
When set to 'true' the flag makes RedirectAttributes the only way to add
attributes for a redirect thus ignoring the content of the default model
even if RedirectAttributes is not in the list of controller method args.
15 years ago
Arjen Poutsma
c8add61a72
SPR-5973: Using UriComponents in more places, replaced UriBuilder by UriComponentsBuilder, UriComponents is now immutable.
15 years ago
Rossen Stoyanchev
ce8bc8e7e4
SPR-6464 Add one more minor Javadoc comment
15 years ago
Rossen Stoyanchev
671744aa62
SPR-6464 Polish FlashMap changes.
15 years ago
Rossen Stoyanchev
56c8c69c4c
SPR-8642 IMPROVE ERROR REPORTING WHEN RESOLVING MULTIPART REQUEST METHOD ARGUMENTS
...
Separate client from server errors as much as possible in this order:
- raise MultipartException when resolving a multipart arg and the
request is not a multipart request (400)
- raise IllegalArgumentException when the arg type is MultipartFile
but the request is not of type MultipartHttpServletRequest (500)
- raise MissingServletRequestPartException when a MultipartResolver
is in use but the part is not found (400)
- detect presence of Servlet 3.0 before using standard multipart
parsing to find a request part or raise
IllegalArgumentException (500)
Unfortunately it is not always possible to separate client from
server errors mainly because the Servlet 3.0 API does not
distinguish between the case of 0 request parts vs multipart
processing not being configured.
15 years ago
Arjen Poutsma
6b7e7d9b5c
SPR-5973: UriBuilder
15 years ago
Rossen Stoyanchev
498d81f696
SPR-8646 Encode URI template variables in the target URL of RedirectView.
15 years ago
Rossen Stoyanchev
91251812b1
Polish @ExceptionHandler method resolution. Allow subclasses to plug in additional @ExceptionHandler methods.
15 years ago
Rossen Stoyanchev
b6d7c85f6e
SPR-7812 Provide separate methods for type and method-level custom request conditions. Polish javadoc in RequestMappingInfo and related HandlerMapping classes
15 years ago
Rossen Stoyanchev
37d22ad039
SPR-8611 Add detection of RedirectView when selecting the best view in ContentNegotiatingViewResolver.
15 years ago
Arjen Poutsma
4a669d1a0a
Removed UrlPathHelper, as it's provided by the superclass
15 years ago
Sam Brannen
1de71c6e37
[SPR-8222] Upgraded to JUnit 4.9.
15 years ago
Rossen Stoyanchev
6a06a17c47
SPR-6464 Add target request matching logic to DefaultFlashMapManager.
15 years ago
Rossen Stoyanchev
0460a5eceb
SPR-8536 Add exact matches when comparing 'produces' conditions (e.g. given Accept: text/*, method with text/* is preferred over text/plain). Also pick a media type alphabetically when two 'produces' condition media types match equally (e.g. given Accept: text/* method with text/plain is chosen over text/xhtml)
15 years ago
Rossen Stoyanchev
baea01ac90
SPR-6464 Add RedirectAttributes and SmartView interfaces.
15 years ago
Chris Beams
7d177ecfd4
Update Servlet 3.0 dependency in webmvc pom
15 years ago
Chris Beams
1b176db8e7
Remove obsolete taglibs dependency from webmvc pom
15 years ago
Sam Brannen
87dad65ff0
[SPR-8622] Upgraded to JUnit 4.8.2
15 years ago
Rossen Stoyanchev
152add37d5
SPR-6464 Add getInputFlashMap and getOutputFlashMap methods to RequestContextUtils
15 years ago
Rossen Stoyanchev
aa46d18125
SPR-6464 FlashMap polish
15 years ago
Rossen Stoyanchev
224bce1b64
SPR-8612 Allow explicit status code in HTTP 1.0 compatibility mode
15 years ago
Rossen Stoyanchev
936c83b030
SPR-6464 Add RedirectModel
15 years ago
Rossen Stoyanchev
45efe6184c
SPR-6464 FlashMap polish
15 years ago
Rossen Stoyanchev
c97257b16f
SPR-6464 Fix minor issue
15 years ago
Rossen Stoyanchev
6f1818a604
SPR-6464 Use the redirect URL and its request parameters (if any), instead of a synthetic key, to match a FlashMap instance to its intended recepient request. This should help to prevent conflicts in most cases transparently. Only if necessary a controller can add extra request parameters to distinguish the request even more uniquely.
15 years ago
Rossen Stoyanchev
1df0cd9f20
SPR-6464 Drop @FlashAttributes , add ResponseContext, ViewResponse, and RedirectResponse types for annotated controllers to use to prepare a redirect response with flash attributes; Add FlashMap and FlashMapManager and update DispatcherServlet to discover and invoke the FlashMapManager.
15 years ago
Rossen Stoyanchev
fc4ea16ba0
Replace RequestBodyNotValidException and RequestPartNotValidException with MethodArgumentNotValidException and add MethodParameter information to the exception message.
15 years ago
Rossen Stoyanchev
3c7e44ada4
SPR-8536 When two methods match a request for any content type (i.e. Accept=*/* or no Accept header), choose the one that doesn't define any 'Accept' media types by default. This addresses an important use case where methods serving browsers typically don't specify Accept media types.
15 years ago
Juergen Hoeller
8745024969
added getContentAsByteArray() and getContentAsString() methods (SPR-8575); actually implemented forward, include and handlePageException methods
15 years ago
Juergen Hoeller
df1f3d40bd
polishing
15 years ago
Juergen Hoeller
0a48936f4f
ContentNegotiatingViewResolver properly handles invalid accept headers (SPR-7712)
15 years ago
Rossen Stoyanchev
3fb753bc0c
SPR-8448 Use URI template vars rather than path vars in RedirectView
15 years ago
Rossen Stoyanchev
98ad8633bd
SPR-8524 Add flag to AbstractCachingViewResolver to suppress subsequent resolution of unresolved view names.
15 years ago
Juergen Hoeller
fad865fbad
polishing
15 years ago
Juergen Hoeller
4385367f2d
optimized getMethodResolver implementation to actually benefit from ConcurrentHashMap
15 years ago
Juergen Hoeller
19c2672dc3
polishing
15 years ago
Rossen Stoyanchev
f4adf227be
SPR-6464 Add @FlashAttributes annotation and FlashStatus method argument
15 years ago
Juergen Hoeller
2c504012ad
HtmlUtils properly escapes single quotes as well
15 years ago
Rossen Stoyanchev
9347ac358c
SPR-8540 Minor Freemarker import related documentation fix
15 years ago
Rossen Stoyanchev
38a6660777
SPR-8543 Fix issue in AnnotationMethodHandlerAdapter with extracting URI template variable from URL with file extension
15 years ago
Juergen Hoeller
ff8ebbb9c4
moved OpenSessionInViewTests back to orm module
15 years ago
Juergen Hoeller
83df082930
moved OpenSessionInViewTests back to orm module
15 years ago
Juergen Hoeller
d7cd11a48c
consistent update of HeaderValueHolder class
15 years ago
Juergen Hoeller
bbab294116
added Jetty dependency
15 years ago