Arjen Poutsma
38f05678c1
SPR-5973: UriComponents now encapsulates uri template variables
13 years ago
Arjen Poutsma
3f2ea7f50e
SPR-5973: UriComponents now encapsulates a PathCompont, switching between string paths and path segment lists automatically.
13 years ago
Arjen Poutsma
1b61f27f5b
polishing
13 years ago
Arjen Poutsma
663f056329
SPR-5973: UriComponents no longer a Map, moved all static methods from UriComponents to builder, added expand method to UriComponents
13 years ago
Rossen Stoyanchev
28a696ba51
SPR-8676 Fix minor issue in how ServletServletHttpRequest detects form content-type requests
13 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.
13 years ago
Arjen Poutsma
c8add61a72
SPR-5973: Using UriComponents in more places, replaced UriBuilder by UriComponentsBuilder, UriComponents is now immutable.
13 years ago
Arjen Poutsma
f0ed37c233
SPR-5973: UriUtils.parse returns UriComponents
13 years ago
Arjen Poutsma
65baafa032
SPR-5973: Made UriComponent enum inner type of UriComponents
13 years ago
Arjen Poutsma
6c58da0e55
SPR-5973: Added UriComponents type
13 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.
13 years ago
Arjen Poutsma
b6c1e88e4a
SPR-5973: Cleaning it up
13 years ago
Arjen Poutsma
5f208936ec
Added parse methods
13 years ago
Arjen Poutsma
99f68d3620
SPR-5973: javadoc
13 years ago
Arjen Poutsma
420d11911b
SPR-5973: Extract UriComponentTemplate out of UriTemplate
13 years ago
Arjen Poutsma
1d75e1b250
SPR-5973: Changed UriComponent from inner type to top-level enum
13 years ago
Arjen Poutsma
f1c68f243e
Changed ClientHttpRequestInterceptor array to List
13 years ago
Arjen Poutsma
9a25efbbda
SPR-5973: UriBuilder
13 years ago
Rossen Stoyanchev
91251812b1
Polish @ExceptionHandler method resolution. Allow subclasses to plug in additional @ExceptionHandler methods.
13 years ago
Rossen Stoyanchev
7bf44f06a0
SPR-8596 Detect case in UriPathHelper where originating request query (before forwarding) is null.
13 years ago
Arjen Poutsma
b06de49c72
Changed ClientHttpRequestInterceptor array to List
13 years ago
Rossen Stoyanchev
6a06a17c47
SPR-6464 Add target request matching logic to DefaultFlashMapManager.
13 years ago
Rossen Stoyanchev
00ff018b39
SPR-6464 Uncommitted file from the last commit.
13 years ago
Chris Beams
6db594c79d
Register JndiPropertySource by default in servlet environments
...
Prior to this change, StandardServletEnvironment evaluated a
"jndiPropertySourceEnabled" flag to determine whether or not to add a
JndiPropertySource. Following the changes introduced in SPR-8490, there
is now no reason not to enable a JNDI property source by default. This
change eliminates the support for "jndiPropertySourceEnabled" and adds
a JndiPropertySource automatically.
Issue: SPR-8545, SPR-8490
13 years ago
Juergen Hoeller
36084c348f
fixed timeout assertion
13 years ago
Juergen Hoeller
20f748865e
polishing
13 years ago
Juergen Hoeller
cce1e2010d
added HttpComponentsHttpInvokerRequestExecutor
13 years ago
Juergen Hoeller
f0db3d0992
polishing
13 years ago
Juergen Hoeller
c564049b23
consistent "connectTimeout" and "readTimeout" properties (SPR-8615)
13 years ago
Rossen Stoyanchev
936c83b030
SPR-6464 Add RedirectModel
13 years ago
Rossen Stoyanchev
d746dcaa63
SPR-5628 Use MediaType to parse the content type in HttpPutFormContentFilter
13 years ago
Juergen Hoeller
03c267e93a
added "connectTimeout" and "readTimeout" properties to SimpleClientHttpRequestFactory (SPR-8614)
13 years ago
David Syer
47f45ff743
SPR-8585: add generic composite filter
13 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.
13 years ago
Rossen Stoyanchev
fc4ea16ba0
Replace RequestBodyNotValidException and RequestPartNotValidException with MethodArgumentNotValidException and add MethodParameter information to the exception message.
13 years ago
Juergen Hoeller
8f23c66512
SpringBeanAutowiringSupport is able to process @Value annotations on any given target instance (SPR-8574)
13 years ago
Juergen Hoeller
8745024969
added getContentAsByteArray() and getContentAsString() methods (SPR-8575); actually implemented forward, include and handlePageException methods
13 years ago
Juergen Hoeller
c864908779
Spring JSP tags do not use their own expression support on Servlet 3.0 containers by default; added support for web.xml context-param "springJspExpressionSupport" (explicit "true"/"false")
13 years ago
Rossen Stoyanchev
f4adf227be
SPR-6464 Add @FlashAttributes annotation and FlashStatus method argument
13 years ago
Juergen Hoeller
2c504012ad
HtmlUtils properly escapes single quotes as well
13 years ago
Juergen Hoeller
38837eddfd
HtmlUtils properly escapes single quotes as well
13 years ago
Rossen Stoyanchev
75ad185558
SPR-8561 Permit null values for simple controller method arguments types without annotations.
13 years ago
Juergen Hoeller
d7cd11a48c
consistent update of HeaderValueHolder class
13 years ago
Rossen Stoyanchev
2cf2fc195e
SPR-5628 Add HttpPutFormContentFilter in order to make form encoded data available via ServletRequest.getParameter*()
13 years ago
Juergen Hoeller
179dad8c24
defensive checking that a provided class actually implements WebApplicationInitializer (SPR-8557); avoid early initialization of Commons Logging (using ServletContext logging instead)
13 years ago
Rossen Stoyanchev
3363d05879
SPR-8483 Add integration test for accessing multipart request parts with @RequestPart
13 years ago
Juergen Hoeller
571535352b
revised Servlet 3.0 based StandardServletMultipartResolver for correct param/file distinction; added multipart content type and headers access to MultipartRequest (dropping the previous header access solution on MultipartFile); MultipartFilter uses a Servlet 3.0 based StandardServletMultipartResolver by default
13 years ago
Juergen Hoeller
65ad44dadc
polishing
13 years ago
Rossen Stoyanchev
2568a3c2c6
SPR-8001 Recognize case when MultipartRequest is null and argument is of type MultipartFile and raise helpful exception.
13 years ago
Rossen Stoyanchev
b8c723d080
SPR-8532 Upgrade org.springframework.web.servlet to Servlet 3.0 (as provided dependency) and add support for javax.servlet.Part parameter
13 years ago