Arjen Poutsma
b6c1e88e4a
SPR-5973: Cleaning it up
2011-09-08 11:01:56 +00:00
Arjen Poutsma
5f208936ec
Added parse methods
2011-09-07 13:58:51 +00:00
Arjen Poutsma
99f68d3620
SPR-5973: javadoc
2011-09-07 11:49:15 +00:00
Arjen Poutsma
420d11911b
SPR-5973: Extract UriComponentTemplate out of UriTemplate
2011-09-07 11:26:22 +00:00
Arjen Poutsma
1d75e1b250
SPR-5973: Changed UriComponent from inner type to top-level enum
2011-09-07 10:40:40 +00:00
Arjen Poutsma
f1c68f243e
Changed ClientHttpRequestInterceptor array to List
2011-09-07 08:39:58 +00:00
Arjen Poutsma
9a25efbbda
SPR-5973: UriBuilder
2011-09-06 15:42:33 +00:00
Rossen Stoyanchev
91251812b1
Polish @ExceptionHandler method resolution. Allow subclasses to plug in additional @ExceptionHandler methods.
2011-09-02 11:04:23 +00:00
Rossen Stoyanchev
7bf44f06a0
SPR-8596 Detect case in UriPathHelper where originating request query (before forwarding) is null.
2011-08-31 13:00:24 +00:00
Arjen Poutsma
b06de49c72
Changed ClientHttpRequestInterceptor array to List
2011-08-31 09:03:19 +00:00
Sam Brannen
1de71c6e37
[SPR-8222] Upgraded to JUnit 4.9.
2011-08-30 13:16:12 +00:00
Rossen Stoyanchev
6a06a17c47
SPR-6464 Add target request matching logic to DefaultFlashMapManager.
2011-08-29 08:37:43 +00:00
Rossen Stoyanchev
00ff018b39
SPR-6464 Uncommitted file from the last commit.
2011-08-25 08:11:17 +00:00
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
2011-08-20 03:02:31 +00:00
Sam Brannen
87dad65ff0
[SPR-8622] Upgraded to JUnit 4.8.2
2011-08-18 16:06:31 +00:00
Juergen Hoeller
36084c348f
fixed timeout assertion
2011-08-15 21:28:13 +00:00
Juergen Hoeller
20f748865e
polishing
2011-08-15 21:23:53 +00:00
Juergen Hoeller
cce1e2010d
added HttpComponentsHttpInvokerRequestExecutor
2011-08-15 21:23:41 +00:00
Juergen Hoeller
f0db3d0992
polishing
2011-08-15 20:57:59 +00:00
Juergen Hoeller
c564049b23
consistent "connectTimeout" and "readTimeout" properties (SPR-8615)
2011-08-15 20:57:42 +00:00
Rossen Stoyanchev
936c83b030
SPR-6464 Add RedirectModel
2011-08-14 22:32:42 +00:00
Rossen Stoyanchev
d746dcaa63
SPR-5628 Use MediaType to parse the content type in HttpPutFormContentFilter
2011-08-14 12:19:06 +00:00
Juergen Hoeller
03c267e93a
added "connectTimeout" and "readTimeout" properties to SimpleClientHttpRequestFactory (SPR-8614)
2011-08-12 22:56:12 +00:00
David Syer
47f45ff743
SPR-8585: add generic composite filter
2011-08-09 10:17:35 +00:00
David Syer
0c0ab97a84
Switch servlet dependency to a public one
2011-08-09 10:16:33 +00:00
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.
2011-08-08 14:00:07 +00:00
Rossen Stoyanchev
fc4ea16ba0
Replace RequestBodyNotValidException and RequestPartNotValidException with MethodArgumentNotValidException and add MethodParameter information to the exception message.
2011-08-03 15:10:10 +00:00
Juergen Hoeller
8f23c66512
SpringBeanAutowiringSupport is able to process @Value annotations on any given target instance (SPR-8574)
2011-08-03 10:19:27 +00:00
Juergen Hoeller
8745024969
added getContentAsByteArray() and getContentAsString() methods (SPR-8575); actually implemented forward, include and handlePageException methods
2011-08-02 23:52:54 +00:00
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")
2011-07-28 20:25:18 +00:00
Rossen Stoyanchev
f4adf227be
SPR-6464 Add @FlashAttributes annotation and FlashStatus method argument
2011-07-27 21:46:36 +00:00
Juergen Hoeller
2c504012ad
HtmlUtils properly escapes single quotes as well
2011-07-27 21:22:04 +00:00
Juergen Hoeller
38837eddfd
HtmlUtils properly escapes single quotes as well
2011-07-27 20:35:41 +00:00
Rossen Stoyanchev
75ad185558
SPR-8561 Permit null values for simple controller method arguments types without annotations.
2011-07-26 12:36:01 +00:00
Juergen Hoeller
d7cd11a48c
consistent update of HeaderValueHolder class
2011-07-26 00:39:01 +00:00
Rossen Stoyanchev
2cf2fc195e
SPR-5628 Add HttpPutFormContentFilter in order to make form encoded data available via ServletRequest.getParameter*()
2011-07-25 18:58:34 +00:00
Juergen Hoeller
179dad8c24
defensive checking that a provided class actually implements WebApplicationInitializer (SPR-8557); avoid early initialization of Commons Logging (using ServletContext logging instead)
2011-07-25 11:33:08 +00:00
Rossen Stoyanchev
3363d05879
SPR-8483 Add integration test for accessing multipart request parts with @RequestPart
2011-07-21 16:24:33 +00:00
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
2011-07-20 20:46:53 +00:00
Juergen Hoeller
65ad44dadc
polishing
2011-07-18 20:50:35 +00:00
Rossen Stoyanchev
2568a3c2c6
SPR-8001 Recognize case when MultipartRequest is null and argument is of type MultipartFile and raise helpful exception.
2011-07-18 13:49:47 +00:00
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
2011-07-18 12:06:11 +00:00
Juergen Hoeller
0c2a6395e7
revised package-level request and response classes
2011-07-13 23:14:02 +00:00
Juergen Hoeller
6cd55b7986
ContextLoader and FrameworkServlet support "contextId" parameter for custom serialization id
2011-07-03 22:36:42 +00:00
Juergen Hoeller
36b582682d
added "autoGrowNestedPaths" property to ConfigurableWebBindingInitializer
2011-07-03 21:24:06 +00:00
Chris Beams
ce0a0ff3d4
Move JNDI_PROPERTY_SOURCE_ENABLED_FLAG constant
...
Move JNDI_PROPERTY_SOURCE_ENABLED_FLAG from JndiPropertySource to
StandardServletEnvironment, as this is the only context in which the
constant makes sense.
2011-07-02 21:26:38 +00:00
Chris Beams
fecd6edf75
Fix unnecessary casts in Servlet*PropertySource
2011-06-30 22:34:08 +00:00
Chris Beams
4756badc1d
Prevent NPE in SpringServletContainerInitializer
...
Issue: SPR-8496
2011-06-29 17:33:07 +00:00
Rossen Stoyanchev
0dae1a6bd8
SPR-8447 Provide sufficient contextwherever possible when exceptions are raised in new @MVC classes.
2011-06-29 15:36:18 +00:00
Rossen Stoyanchev
3a87d8e7cb
SPR-8483 Add support for @RequestPart annotated method parameters
2011-06-28 19:22:33 +00:00
Juergen Hoeller
3bbefb3e65
fixed getHeaderNames signature
2011-06-28 14:08:47 +00:00
Juergen Hoeller
0371f569ec
added headers support to MultipartFile abstraction
2011-06-27 23:02:13 +00:00
Rossen Stoyanchev
78470782d4
SPR-8487 Ensure setters for argument resolvers and return value handlers replace the defaults completely.
2011-06-27 22:23:10 +00:00
Chris Beams
24a8a05f24
Polish WebApplicationInitializer Javadoc
2011-06-25 03:49:54 +00:00
Rossen Stoyanchev
1e07af8827
SPR-7608 Add fallback mechanism for instantiating a model attribute from a path variable
2011-06-24 17:18:53 +00:00
Rossen Stoyanchev
8e240d814b
SPR-6909 Improve extension hooks in DefaultDataBinderFactory and subclasses.
2011-06-24 12:04:16 +00:00
Rossen Stoyanchev
efaa941672
SPR-8476 Translate JsonMappingExceptions to HttpMessageNotReadableException (and thus response status code 400) consistent with JsonParseExceptions
2011-06-23 13:17:18 +00:00
Rossen Stoyanchev
69bba30ed8
SPR-8429 Add test cases for missing header, cookie, and pathvar values
2011-06-23 12:47:54 +00:00
Chris Beams
e79e08d7f7
Prefer / or /app/* over /main in servlet examples
2011-06-16 22:42:50 +00:00
Arjen Poutsma
ac7d48e5a8
Fixing tests
2011-06-14 13:16:45 +00:00
Arjen Poutsma
c42671a78a
SPR-7911 - Better handling of 204 No Content in RestTemplate
2011-06-14 10:37:49 +00:00
Sam Brannen
f5bed462bf
Fixed Eclipse classpath regarding Commons IO and Codec
2011-06-11 19:26:38 +00:00
Juergen Hoeller
c60511bf04
shortened build properties "org.junit.version" to "junit.version" and "org.testng.version" to "testng.version"; reverted SLF4J version back to 1.5.3 (for Hibernate 3.3.1 compatibility)
2011-06-09 09:58:15 +00:00
Chris Beams
ae61aa3555
Revert introduction of AnnotationConfigCapableAC
...
Per review with Juergen in light of SPR-8413, which will revisit the
overall structure of ACAC and ACWAC.
Issue: SPR-8365, SPR-8413
2011-06-09 02:54:34 +00:00
Juergen Hoeller
3b704272e3
polishing
2011-06-08 22:52:43 +00:00
Juergen Hoeller
d5b9b26fea
extended coverage of JSF 2.0 implicit attributes: "viewScope", "flash", "resource"
2011-06-08 00:12:50 +00:00
Rossen Stoyanchev
7dcd71c543
SPR-7994 Add missing optional flag for Rome library in spring-web
2011-06-07 15:01:35 +00:00
Arjen Poutsma
fa3e9bdfdd
SPR-7439 - JSON (jackson) @RequestBody marshalling throws awkward exception
2011-06-06 10:33:04 +00:00
Chris Beams
bce9149947
Polish WebApplicationInitializer Javadoc
2011-06-06 08:30:36 +00:00
Rossen Stoyanchev
f1ad53d570
SPR-6709 Update changelog and add one test
2011-06-03 09:38:22 +00:00
Rossen Stoyanchev
d2a99de9fc
Add ModelFactory test for HttpSessionRequiredException
2011-06-03 09:38:16 +00:00
Chris Beams
c3675b44b4
Polish WebApplicationInitializer Javadoc
2011-05-31 06:42:36 +00:00
Chris Beams
847b54f3b1
Sort WebApplicationInitializers properly
...
Issue: SPR-7672
2011-05-31 01:12:34 +00:00
Chris Beams
948aa4f589
Introduce DelegatingFilterProxy constructors
...
Issue: SPR-7672
2011-05-30 12:57:19 +00:00
Chris Beams
1e1a05e9f8
Polish DelegatingFilterProxy Javadoc
2011-05-30 12:56:32 +00:00
Chris Beams
e36b5e9b7e
Introduce ContextLoader(Listener) constructors
...
Constructors have been added to both ContextLoader and
ContextLoaderListener to support instance-based programmatic
registration of listeners within ServletContainerInitializer
implementations in Servlet 3.0+ environments, and more particularly
when using Spring 3.1's WebApplicationInitializer SPI.
Issue: SPR-7672
2011-05-30 12:56:01 +00:00
Chris Beams
2b4328023e
Improve ApplicationContextInitializer sorting
...
ContextLoader and FrameworkServlet now use
AnnotationAwareOrderComparator to support @Order usage; previously
supported only implementation of the Ordered interface.
2011-05-30 12:55:33 +00:00
Chris Beams
fb9fb00c04
Update GenericWAC to implement ConfigurableWAC
...
GenericWebApplicationContext now implements
ConfigurableWebApplicationContext in order to be compatible with
Framework/DispatcherServlet and ContextLoader/Listener, especially with
regard to changes in SPR-7672 that allow for programmatic use of these
types within Servlet 3.0+ environments. For the first time, it's now
reasonable to imagine injecting a GWAC into DispatcherServlet; the most
robust way to accommodate this possibility is for GWAC to implement
CWAC.
The implementation is in name only, allowing for interchangable use of
GWAC anywhere, for example, an XWAC could otherwise go. Methods such
as setConfigLocation will throw UnsupportedOperationException if the
configLocation value actually contains text. Other methods are
implemented as no-ops or to throw UOE as appropriate.
Issue: SPR-7672
2011-05-30 12:53:57 +00:00
Chris Beams
c9e67b2ef2
Introduce Servlet 3.0 WebApplicationInitializer
...
WebApplicationInitializer provides a programmatic alternative to the
traditional WEB-INF/web.xml servlet container deployment descriptor
for Servlet API 3.0+ environments.
This is done by building atop the new ServletContainerInitializer
support in Servlet 3.0. See SpringServletContainerInitializer for
complete details. And see WebApplicationInitializer Javadoc for
typical usage examples.
Issue: SPR-7672
2011-05-30 12:53:32 +00:00
Juergen Hoeller
c303b22e30
updated IntelliJ dependency descriptors
2011-05-29 20:43:52 +00:00
Juergen Hoeller
af8aff3e49
added StandardServletMultipartResolver for Servlet 3.0
2011-05-29 20:38:23 +00:00
Chris Beams
367a0c2933
Upgrade javax.servlet dependency to 3.0 for .web
...
In support of SPR-7672 which will support code-based configuration
alternatives to web.xml using new features in the Servlet 3.0 API.
This upgrade does *not* force Spring users to upgrade to Servlet 3.0
capable containers. Compatibility with and support for
javax.servlet >= 2.4 remains.
Issue: SPR-7672
2011-05-26 13:34:21 +00:00
Chris Beams
0756a6abfe
Polish PropertySource and Environment Javadoc
2011-05-25 10:52:03 +00:00
Chris Beams
c696e195fa
Introduce AnnotationConfigCapableApplicationContext
...
AnnotationConfigApplicationContext and
AnnotationConfigWebApplicationContext both expose #register and #scan
methods as of the completion of SPR-8320. This change introduces a new
interface that declares each of these methods and refactors ACAC and
ACWAC to implement it.
Beyond information value, this is useful for implementors of the
ApplicationContextInitializer interface, in that users may create an ACI
that works consistently across ACAC and ACWAC for standalone (e.g.
testing, batch) or web (e.g. production) use.
Issue: SPR-8365,SPR-8320
2011-05-23 10:03:23 +00:00
Chris Beams
e128ee2464
Introduce AnnotationConfigWAC #scan and #register
...
Primarily for use in conjunction with ApplicationContextInitializer,
these new #scan and #register methods mirror those in
AnnotationConfigApplicationContext. #setConfigLocation
and #setConfigLocations methods remain for compatibility with
ContextLoader-style initialization, but have been locally overridden
and documented clearly.
AnnotationConfigWebApplicationContext#loadBeanDefinitions Javadoc has
also been updated to explain the processing logic for each of these
potential inputs.
Issue: SPR-8320
2011-05-23 10:02:50 +00:00
Chris Beams
c481d2e9fb
Rename {Default=>Standard}PortletEnvironment
...
Issue: SPR-8348
2011-05-20 03:57:35 +00:00
Chris Beams
f893b62a9b
Rename {DefaultWeb=>StandardServlet}Environment
...
Issue: SPR-8348
2011-05-20 03:55:56 +00:00
Chris Beams
c06752ef72
Rename {Default=>Standard}Environment
...
Issue: SPR-8348
2011-05-20 03:53:37 +00:00
Chris Beams
7271ba8182
Introduce AbstractEnvironment#customizePropertySources
...
This new hook in the AbstractEnvironment lifecycle allows for more
explicit and predictable customization of property sources by
subclasses. See Javadoc and existing implementations for detail.
Issue: SPR-8354
2011-05-20 03:50:14 +00:00
Arjen Poutsma
1eaca65720
@RequestMapping.consumes() and produces() now default to an empty array, instead of */*
2011-05-18 11:34:47 +00:00
Arjen Poutsma
a618bcc8cd
Exposing HttpServletRequest/Response in ServletServerHttpRequest/Response
2011-05-18 11:24:57 +00:00
Arjen Poutsma
ad2e0d4587
SPR-7353 - @ResponseBody and returned HttpEntity now respect @RequestMapping.produces()
2011-05-17 09:45:57 +00:00
Arjen Poutsma
bb2cc8457f
SPR-7353 - Added equivalent of JAX-RS @Produces to Spring MVC
2011-05-13 09:43:45 +00:00
Arjen Poutsma
8190b4f70a
Javadoc
2011-05-12 09:00:39 +00:00
Arjen Poutsma
71aae405d5
SPR-7354 - Added equivalent of JAX-RS @Consumes to Spring MVC
2011-05-10 09:23:00 +00:00
Arjen Poutsma
b058d1e07a
Made comparators public, as they are needed elsewhere.
2011-05-09 11:20:49 +00:00
Chris Beams
2092a31f9d
Rename DataBinderFactory subtypes for concision
2011-05-06 19:12:14 +00:00
Rossen Stoyanchev
50117dce40
SPR-6909 Include URI template vars in data binding
2011-04-26 11:54:54 +00:00
Rossen Stoyanchev
ed9d9a402b
SPR-7543 Add @PathVariables to the model
2011-04-21 15:18:45 +00:00
Arjen Poutsma
a4716c2a94
Buffering RequestFactory that allows for multiple response body reads.
2011-04-21 15:09:44 +00:00