language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
spring-projects
spring-framework
b50bb5071ac353e77e9d38c72f888de3add923b2.json
Address various ExtendedBeanInfo bugs - Ensure that ExtendedBeanInfoTests succeeds when building under JDK 7 - Improve handling of read and write method registration where generic interfaces are involved, per SPR-9453 - Add repro test for SPR-9702, in which EBI fails to register an indexed read method under...
spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java
@@ -34,6 +34,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.springframework.core.BridgeMethodResolver; import org.springframework.util.Assert; import org.springframework.util.ClassUtils; import org.springframework.util.ReflectionUtils; @@ -77,7 +78,7 @@ publ...
true
Other
spring-projects
spring-framework
b50bb5071ac353e77e9d38c72f888de3add923b2.json
Address various ExtendedBeanInfo bugs - Ensure that ExtendedBeanInfoTests succeeds when building under JDK 7 - Improve handling of read and write method registration where generic interfaces are involved, per SPR-9453 - Add repro test for SPR-9702, in which EBI fails to register an indexed read method under...
spring-beans/src/test/java/org/springframework/beans/ExtendedBeanInfoTests.java
@@ -16,29 +16,30 @@ package org.springframework.beans; -import static org.hamcrest.CoreMatchers.equalTo; -import static org.hamcrest.CoreMatchers.instanceOf; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.Matchers.greaterThan; -import static org.hamcrest.Matchers.lessThan; -import static ...
true
Other
spring-projects
spring-framework
70b0b97b54d545118696b6fe279b57044f739e92.json
Fix cyclical package dependency
spring-web/src/main/java/org/springframework/web/method/ControllerAdviceBean.java
@@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.springframework.web.bind.support; +package org.springframework.web.method; import java.util.ArrayList; import java.util.List; @@ -29,7 +29,11 @@ /** * Encapsulates info...
true
Other
spring-projects
spring-framework
70b0b97b54d545118696b6fe279b57044f739e92.json
Fix cyclical package dependency
spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java
@@ -29,13 +29,15 @@ import org.springframework.util.ClassUtils; /** - * Encapsulates information about a bean method consisting of a {@linkplain #getMethod() method} and a - * {@linkplain #getBean() bean}. Provides convenient access to method parameters, the method return value, - * method annotations. + * Encapsul...
true
Other
spring-projects
spring-framework
70b0b97b54d545118696b6fe279b57044f739e92.json
Fix cyclical package dependency
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java
@@ -41,8 +41,8 @@ import org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter; import org.springframework.web.accept.ContentNegotiationManager; import org.springframework.web.bind.annotation.ControllerAdvice; -import org.springframework.web.bind.support.ControllerAdviceBean; import org.springfram...
true
Other
spring-projects
spring-framework
70b0b97b54d545118696b6fe279b57044f739e92.json
Fix cyclical package dependency
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java
@@ -54,7 +54,6 @@ import org.springframework.web.bind.annotation.InitBinder; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.support.ControllerAdviceBean; import org.springframework.web.bind.support.De...
true
Other
spring-projects
spring-framework
cb564b287fe36bf5d6840a674d4486f2d0fc91fd.json
Provide support for filter registrations The AbstractDispatcherServletInitializer now provides support for the registration of filters to be mapped to the DispatcherServlet. It also sets the asyncSupported flag by default on the DispatcherServlet and all registered filters. Issue: SPR-9696
spring-webmvc/src/main/java/org/springframework/web/servlet/support/AbstractDispatcherServletInitializer.java
@@ -16,11 +16,19 @@ package org.springframework.web.servlet.support; +import java.util.EnumSet; + +import javax.servlet.DispatcherType; +import javax.servlet.Filter; +import javax.servlet.FilterRegistration; +import javax.servlet.FilterRegistration.Dynamic; import javax.servlet.ServletContext; import javax.servl...
true
Other
spring-projects
spring-framework
cb564b287fe36bf5d6840a674d4486f2d0fc91fd.json
Provide support for filter registrations The AbstractDispatcherServletInitializer now provides support for the registration of filters to be mapped to the DispatcherServlet. It also sets the asyncSupported flag by default on the DispatcherServlet and all registered filters. Issue: SPR-9696
spring-webmvc/src/test/java/org/springframework/web/servlet/support/AnnotationConfigDispatcherServletInitializerTests.java
@@ -16,26 +16,33 @@ package org.springframework.web.servlet.support; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; + import java.util.Collections; +import java.util.EnumSet; imp...
true
Other
spring-projects
spring-framework
cb564b287fe36bf5d6840a674d4486f2d0fc91fd.json
Provide support for filter registrations The AbstractDispatcherServletInitializer now provides support for the registration of filters to be mapped to the DispatcherServlet. It also sets the asyncSupported flag by default on the DispatcherServlet and all registered filters. Issue: SPR-9696
spring-webmvc/src/test/java/org/springframework/web/servlet/support/DispatcherServletInitializerTests.java
@@ -51,14 +51,14 @@ public class DispatcherServletInitializerTests { private Map<String, Servlet> servlets; - private Map<String, MockDynamic> registrations; + private Map<String, MockServletRegistration> registrations; @Before public void setUp() throws Exception { servletContext = new MyMockServletCont...
true
Other
spring-projects
spring-framework
cb564b287fe36bf5d6840a674d4486f2d0fc91fd.json
Provide support for filter registrations The AbstractDispatcherServletInitializer now provides support for the registration of filters to be mapped to the DispatcherServlet. It also sets the asyncSupported flag by default on the DispatcherServlet and all registered filters. Issue: SPR-9696
spring-webmvc/src/test/java/org/springframework/web/servlet/support/MockFilterRegistration.java
@@ -0,0 +1,92 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
cb564b287fe36bf5d6840a674d4486f2d0fc91fd.json
Provide support for filter registrations The AbstractDispatcherServletInitializer now provides support for the registration of filters to be mapped to the DispatcherServlet. It also sets the asyncSupported flag by default on the DispatcherServlet and all registered filters. Issue: SPR-9696
spring-webmvc/src/test/java/org/springframework/web/servlet/support/MockServletRegistration.java
@@ -26,14 +26,16 @@ import javax.servlet.ServletRegistration; import javax.servlet.ServletSecurityElement; -class MockDynamic implements ServletRegistration.Dynamic { +class MockServletRegistration implements ServletRegistration.Dynamic { private int loadOnStartup; private Set<String> mappings = new LinkedH...
true
Other
spring-projects
spring-framework
cb564b287fe36bf5d6840a674d4486f2d0fc91fd.json
Provide support for filter registrations The AbstractDispatcherServletInitializer now provides support for the registration of filters to be mapped to the DispatcherServlet. It also sets the asyncSupported flag by default on the DispatcherServlet and all registered filters. Issue: SPR-9696
src/reference/docbook/mvc.xml
@@ -272,7 +272,33 @@ <para>In the preceding example, all requests starting with <literal>/example</literal> will be handled by the <classname>DispatcherServlet</classname> instance named - <literal>example</literal>. This is only the first step in setting up + <literal>example</literal>. + In a ...
true
Other
spring-projects
spring-framework
cb564b287fe36bf5d6840a674d4486f2d0fc91fd.json
Provide support for filter registrations The AbstractDispatcherServletInitializer now provides support for the registration of filters to be mapped to the DispatcherServlet. It also sets the asyncSupported flag by default on the DispatcherServlet and all registered filters. Issue: SPR-9696
src/reference/docbook/new-in-3.2.xml
@@ -66,7 +66,7 @@ </section> <section id="new-in-3.2-webmvc-controller-advice"> - <title>New <interfacename>@ControllerAdvice</interfacename> annotation</title> + <title><interfacename>@ControllerAdvice</interfacename> annotation</title> <para>Classes annotated with <interfacename>@...
true
Other
spring-projects
spring-framework
a49851d5ebcb5d3c65e324f279f3a8c33f4db16f.json
Add equals/hashcode to ResponseEntity Issue: SPR-9714
spring-web/src/main/java/org/springframework/http/HttpEntity.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2011 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package org.springframework....
true
Other
spring-projects
spring-framework
a49851d5ebcb5d3c65e324f279f3a8c33f4db16f.json
Add equals/hashcode to ResponseEntity Issue: SPR-9714
spring-web/src/main/java/org/springframework/http/ResponseEntity.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2011 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package org.springframework....
true
Other
spring-projects
spring-framework
a49851d5ebcb5d3c65e324f279f3a8c33f4db16f.json
Add equals/hashcode to ResponseEntity Issue: SPR-9714
spring-web/src/test/java/org/springframework/http/HttpEntityTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2010 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ public void noHeaders() { ...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-web/src/main/java/org/springframework/web/bind/annotation/MatrixVariable.java
@@ -0,0 +1,66 @@ +/* + * Copyright 2002-2010 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java
@@ -82,6 +82,13 @@ * Additionally, {@code @PathVariable} can be used on a * {@link java.util.Map Map&lt;String, String&gt;} to gain access to all * URI template variables. + * <li>{@link MatrixVariable @MatrixVariable} annotated parameters (Servlet-only) + * for access to name-value pairs located in URI path segm...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-web/src/main/java/org/springframework/web/method/annotation/AbstractNamedValueMethodArgumentResolver.java
@@ -35,19 +35,21 @@ import org.springframework.web.method.support.ModelAndViewContainer; /** - * Abstract base class for resolving method arguments from a named value. Request parameters, request headers, and - * path variables are examples of named values. Each may have a name, a required flag, and a default value...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java
@@ -61,6 +61,8 @@ public class UrlPathHelper { private boolean urlDecode = true; + private boolean removeSemicolonContent = true; + private String defaultEncoding = WebUtils.DEFAULT_CHARACTER_ENCODING; @@ -92,6 +94,21 @@ public void setUrlDecode(boolean urlDecode) { this.urlDecode = urlDecode; } + /*...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-web/src/main/java/org/springframework/web/util/WebUtils.java
@@ -20,6 +20,7 @@ import java.io.FileNotFoundException; import java.util.Enumeration; import java.util.Map; +import java.util.StringTokenizer; import java.util.TreeMap; import javax.servlet.ServletContext; @@ -33,6 +34,8 @@ import javax.servlet.http.HttpSession; import org.springframework.util.Assert; +impor...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-web/src/test/java/org/springframework/web/util/UrlPathHelperTests.java
@@ -16,11 +16,14 @@ package org.springframework.web.util; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNull; + +import java.io.UnsupportedEncodingException; + import org.junit.Before; import org.junit.Ignore; import org.junit.Test; - imp...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-web/src/test/java/org/springframework/web/util/WebUtilsTests.java
@@ -16,16 +16,19 @@ package org.springframework.web.util; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import org.junit.Test; +import org.springframework.util.MultiValueMap; /** * @autho...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerMapping.java
@@ -93,10 +93,21 @@ public interface HandlerMapping { String URI_TEMPLATE_VARIABLES_ATTRIBUTE = HandlerMapping.class.getName() + ".uriTemplateVariables"; /** - * Name of the {@link HttpServletRequest} attribute that contains the set of producible MediaTypes - * applicable to the mapped handler. - * <p>Note: ...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java
@@ -157,6 +157,7 @@ public BeanDefinition parse(Element element, ParserContext parserContext) { handlerMappingDef.setSource(source); handlerMappingDef.setRole(BeanDefinition.ROLE_INFRASTRUCTURE); handlerMappingDef.getPropertyValues().add("order", 0); + handlerMappingDef.getPropertyValues().add("removeSemicolo...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java
@@ -183,6 +183,7 @@ public void setApplicationContext(ApplicationContext applicationContext) throws public RequestMappingHandlerMapping requestMappingHandlerMapping() { RequestMappingHandlerMapping handlerMapping = new RequestMappingHandlerMapping(); handlerMapping.setOrder(0); + handlerMapping.setRemoveSemico...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMapping.java
@@ -37,7 +37,7 @@ /** * Abstract base class for {@link org.springframework.web.servlet.HandlerMapping} - * implementations. Supports ordering, a default handler, handler interceptors, + * implementations. Supports ordering, a default handler, handler interceptors, * including handler interceptors mapped by pat...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/AbstractUrlViewController.java
@@ -65,6 +65,14 @@ public void setUrlDecode(boolean urlDecode) { this.urlPathHelper.setUrlDecode(urlDecode); } + /** + * Set if ";" (semicolon) content should be stripped from the request URI. + * @see org.springframework.web.util.UrlPathHelper#setRemoveSemicolonContent(boolean) + */ + public void setRemoveSe...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoHandlerMapping.java
@@ -19,13 +19,16 @@ import java.util.ArrayList; import java.util.Comparator; import java.util.HashSet; +import java.util.LinkedHashMap; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import org.spr...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/CopyOfRequestMappingHandlerMapping.java
@@ -0,0 +1,199 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MatrixVariableMapMethodArgumentResolver.java
@@ -0,0 +1,88 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MatrixVariableMethodArgumentResolver.java
@@ -0,0 +1,129 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/PathVariableMethodArgumentResolver.java
@@ -100,11 +100,9 @@ protected void handleMissingValue(String name, MethodParameter param) throws Ser @Override @SuppressWarnings("unchecked") - protected void handleResolvedValue(Object arg, - String name, - MethodParameter parameter, - ModelAndViewContainer mavContainer, - ...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java
@@ -480,6 +480,8 @@ private List<HandlerMethodArgumentResolver> getDefaultArgumentResolvers() { resolvers.add(new RequestParamMapMethodArgumentResolver()); resolvers.add(new PathVariableMethodArgumentResolver()); resolvers.add(new PathVariableMapMethodArgumentResolver()); + resolvers.add(new MatrixVariableMet...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/main/java/org/springframework/web/servlet/view/DefaultRequestToViewNameTranslator.java
@@ -145,6 +145,14 @@ public void setUrlDecode(boolean urlDecode) { this.urlPathHelper.setUrlDecode(urlDecode); } + /** + * Set if ";" (semicolon) content should be stripped from the request URI. + * @see org.springframework.web.util.UrlPathHelper#setRemoveSemicolonContent(boolean) + */ + public void setRemove...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/test/java/org/springframework/web/servlet/handler/MappedInterceptorTests.java
@@ -45,15 +45,21 @@ public void noPatterns() { } @Test - public void includePatternOnly() { + public void includePattern() { MappedInterceptor mappedInterceptor = new MappedInterceptor(new String[] { "/foo/*" }, this.interceptor); assertTrue(mappedInterceptor.matches("/foo/bar", pathMatcher)); assertFa...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/UrlFilenameViewControllerTests.java
@@ -55,6 +55,15 @@ public void testWithFilenamePlusExtension() throws Exception { assertTrue(mv.getModel().isEmpty()); } + public void testWithFilenameAndMatrixVariables() throws Exception { + UrlFilenameViewController ctrl = new UrlFilenameViewController(); + MockHttpServletRequest request = new MockHttpServl...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoHandlerMappingTests.java
@@ -30,12 +30,15 @@ import java.util.Map; import java.util.Set; +import javax.servlet.http.HttpServletRequest; + import org.junit.Before; import org.junit.Test; import org.springframework.core.annotation.AnnotationUtils; import org.springframework.http.MediaType; import org.springframework.mock.web.MockHttpSer...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/AbstractServletHandlerMethodTests.java
@@ -31,24 +31,24 @@ import org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver; /** - * Base class for tests using on the DispatcherServlet and HandlerMethod infrastructure classes: + * Base class for tests using on the DispatcherServlet and HandlerMethod infrastructure classes: * <ul> - ...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/MatrixVariablesMapMethodArgumentResolverTests.java
@@ -0,0 +1,186 @@ +/* + * Copyright 2002-2011 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/MatrixVariablesMethodArgumentResolverTests.java
@@ -0,0 +1,159 @@ +/* + * Copyright 2002-2011 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/UriTemplateServletAnnotationControllerHandlerMethodTests.java
@@ -22,9 +22,11 @@ import java.io.IOException; import java.io.Writer; import java.text.SimpleDateFormat; +import java.util.Arrays; import java.util.Date; import java.util.GregorianCalendar; import java.util.HashMap; +import java.util.List; import java.util.Locale; import java.util.Map; @@ -38,8 +40,10 @@ imp...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
spring-webmvc/src/test/java/org/springframework/web/servlet/view/DefaultRequestToViewNameTranslatorTests.java
@@ -84,6 +84,12 @@ public void testGetViewNameWithNoExtension() { assertViewName(VIEW_NAME); } + @Test + public void testGetViewNameWithSemicolonContent() { + request.setRequestURI(CONTEXT_PATH + VIEW_NAME + ";a=A;b=B"); + assertViewName(VIEW_NAME); + } + @Test public void testGetViewNameWithPrefix() { ...
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
src/reference/docbook/mvc.xml
@@ -1054,6 +1054,93 @@ public class RelativePathUriTemplateController { <filename>/owners/*/pets/{petId}</filename>).</para> </section> + <section id="mvc-ann-matrix-variables"> + <title>Matrix Variables</title> + + <para>The URI specification + <ulink url="http://tools.ietf....
true
Other
spring-projects
spring-framework
2201dd8c45051230ad1a5a0e895cb5951edbfb74.json
Add support for matrix variables A new @MatrixVariable annotation allows injecting matrix variables into @RequestMapping methods. The matrix variables may appear in any path segment and should be wrapped in a URI template for request mapping purposes to ensure request matching is not affected by the order or the prese...
src/reference/docbook/new-in-3.2.xml
@@ -80,6 +80,14 @@ </section> + <section id="new-in-3.2-matrix-variables"> + <title>Matrix variables</title> + + <para>A new <interfacename>@MatrixVariable</interfacename> annotation + adds support for extracting matrix variables from the request URI. + For more details see <xref ...
true
Other
spring-projects
spring-framework
ca017a488056701a07673b872e8faa40667cd32e.json
Introduce strategy for BeanInfo creation Before this commit, the CachedIntrospectionResults was hard-coded to create ExtendedBeanInfos for bean classes. The ExtendedBeanInfo support the JavaBeans property contract only. This commit introduces the BeanInfoFactory, a strategy for creating BeanInfos. Through this strate...
spring-beans/src/main/java/org/springframework/beans/BeanInfoFactory.java
@@ -0,0 +1,47 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
ca017a488056701a07673b872e8faa40667cd32e.json
Introduce strategy for BeanInfo creation Before this commit, the CachedIntrospectionResults was hard-coded to create ExtendedBeanInfos for bean classes. The ExtendedBeanInfo support the JavaBeans property contract only. This commit introduces the BeanInfoFactory, a strategy for creating BeanInfos. Through this strate...
spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2011 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -518,7 +518,7 @@ private Object convertForPr...
true
Other
spring-projects
spring-framework
ca017a488056701a07673b872e8faa40667cd32e.json
Introduce strategy for BeanInfo creation Before this commit, the CachedIntrospectionResults was hard-coded to create ExtendedBeanInfos for bean classes. The ExtendedBeanInfo support the JavaBeans property contract only. This commit introduces the BeanInfoFactory, a strategy for creating BeanInfos. Through this strate...
spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2010 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,19 +20,25 @@ import java.beans.Introspe...
true
Other
spring-projects
spring-framework
ca017a488056701a07673b872e8faa40667cd32e.json
Introduce strategy for BeanInfo creation Before this commit, the CachedIntrospectionResults was hard-coded to create ExtendedBeanInfos for bean classes. The ExtendedBeanInfo support the JavaBeans property contract only. This commit introduces the BeanInfoFactory, a strategy for creating BeanInfos. Through this strate...
spring-beans/src/test/java/org/springframework/beans/CachedIntrospectionResultsTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,21 +16,24 @@ package org.springframew...
true
Other
spring-projects
spring-framework
ca017a488056701a07673b872e8faa40667cd32e.json
Introduce strategy for BeanInfo creation Before this commit, the CachedIntrospectionResults was hard-coded to create ExtendedBeanInfos for bean classes. The ExtendedBeanInfo support the JavaBeans property contract only. This commit introduces the BeanInfoFactory, a strategy for creating BeanInfos. Through this strate...
spring-beans/src/test/java/org/springframework/beans/DummyBeanInfoFactory.java
@@ -0,0 +1,41 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
ca017a488056701a07673b872e8faa40667cd32e.json
Introduce strategy for BeanInfo creation Before this commit, the CachedIntrospectionResults was hard-coded to create ExtendedBeanInfos for bean classes. The ExtendedBeanInfo support the JavaBeans property contract only. This commit introduces the BeanInfoFactory, a strategy for creating BeanInfos. Through this strate...
spring-beans/src/test/resources/META-INF/spring.beanInfoFactories
@@ -0,0 +1,3 @@ +# Dummy bean info factories file, used by CachedIntrospectionResultsTests + +org.springframework.beans.DummyBeanInfoFactory \ No newline at end of file
true
Other
spring-projects
spring-framework
ca017a488056701a07673b872e8faa40667cd32e.json
Introduce strategy for BeanInfo creation Before this commit, the CachedIntrospectionResults was hard-coded to create ExtendedBeanInfos for bean classes. The ExtendedBeanInfo support the JavaBeans property contract only. This commit introduces the BeanInfoFactory, a strategy for creating BeanInfos. Through this strate...
spring-core/src/main/java/org/springframework/core/convert/Property.java
@@ -57,11 +57,20 @@ public final class Property { public Property(Class<?> objectType, Method readMethod, Method writeMethod) { + this(objectType, readMethod, writeMethod, null); + } + + public Property(Class<?> objectType, Method readMethod, Method writeMethod, String name) { this.objectType = objectType; ...
true
Other
spring-projects
spring-framework
c9b7b132fb0370f51169929b704862b71183b49a.json
Support generic types in @RequestBody arguments This change makes it possible to declare an @RequestBody argument with a generic type (e.g. List<Foo>). If a GenericHttpMessageConverter implementation supports the method argument, then the request will be converted to the apropiate target type. The new GenericHttpMess...
spring-web/src/main/java/org/springframework/web/client/HttpMessageConverterExtractor.java
@@ -42,6 +42,8 @@ private final Type responseType; + private final Class<T> responseClass; + private final List<HttpMessageConverter<?>> messageConverters; private final Log logger; @@ -64,10 +66,12 @@ public HttpMessageConverterExtractor(Type responseType, List<HttpMessageConverte this(responseType, mes...
true
Other
spring-projects
spring-framework
c9b7b132fb0370f51169929b704862b71183b49a.json
Support generic types in @RequestBody arguments This change makes it possible to declare an @RequestBody argument with a generic type (e.g. List<Foo>). If a GenericHttpMessageConverter implementation supports the method argument, then the request will be converted to the apropiate target type. The new GenericHttpMess...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodArgumentResolver.java
@@ -17,6 +17,7 @@ package org.springframework.web.servlet.mvc.method.annotation; import java.io.IOException; +import java.lang.reflect.Type; import java.util.ArrayList; import java.util.Collections; import java.util.LinkedHashSet; @@ -30,6 +31,7 @@ import org.springframework.core.MethodParameter; import org.sp...
true
Other
spring-projects
spring-framework
c9b7b132fb0370f51169929b704862b71183b49a.json
Support generic types in @RequestBody arguments This change makes it possible to declare an @RequestBody argument with a generic type (e.g. List<Foo>). If a GenericHttpMessageConverter implementation supports the method argument, then the request will be converted to the apropiate target type. The new GenericHttpMess...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/HttpEntityMethodProcessor.java
@@ -79,13 +79,13 @@ public Object resolveArgument( throws IOException, HttpMediaTypeNotSupportedException { HttpInputMessage inputMessage = createInputMessage(webRequest); - Class<?> paramType = getHttpEntityType(parameter); + Type paramType = getHttpEntityType(parameter); Object body = readWithMessageC...
true
Other
spring-projects
spring-framework
c9b7b132fb0370f51169929b704862b71183b49a.json
Support generic types in @RequestBody arguments This change makes it possible to declare an @RequestBody argument with a generic type (e.g. List<Foo>). If a GenericHttpMessageConverter implementation supports the method argument, then the request will be converted to the apropiate target type. The new GenericHttpMess...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessor.java
@@ -18,6 +18,7 @@ import java.io.IOException; import java.lang.annotation.Annotation; +import java.lang.reflect.Type; import java.util.List; import org.springframework.core.Conventions; @@ -86,7 +87,7 @@ public boolean supportsReturnType(MethodParameter returnType) { public Object resolveArgument(MethodParame...
true
Other
spring-projects
spring-framework
c9b7b132fb0370f51169929b704862b71183b49a.json
Support generic types in @RequestBody arguments This change makes it possible to declare an @RequestBody argument with a generic type (e.g. List<Foo>). If a GenericHttpMessageConverter implementation supports the method argument, then the request will be converted to the apropiate target type. The new GenericHttpMess...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/HttpEntityMethodProcessorMockTests.java
@@ -0,0 +1,305 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
c9b7b132fb0370f51169929b704862b71183b49a.json
Support generic types in @RequestBody arguments This change makes it possible to declare an @RequestBody argument with a generic type (e.g. List<Foo>). If a GenericHttpMessageConverter implementation supports the method argument, then the request will be converted to the apropiate target type. The new GenericHttpMess...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/HttpEntityMethodProcessorTests.java
@@ -15,64 +15,40 @@ */ package org.springframework.web.servlet.mvc.method.annotation; -import static org.easymock.EasyMock.capture; -import static org.easymock.EasyMock.createMock; -import static org.easymock.EasyMock.eq; -import static org.easymock.EasyMock.expect; -import static org.easymock.EasyMock.isA; -impor...
true
Other
spring-projects
spring-framework
c9b7b132fb0370f51169929b704862b71183b49a.json
Support generic types in @RequestBody arguments This change makes it possible to declare an @RequestBody argument with a generic type (e.g. List<Foo>). If a GenericHttpMessageConverter implementation supports the method argument, then the request will be converted to the apropiate target type. The new GenericHttpMess...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorMockTests.java
@@ -0,0 +1,356 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
c9b7b132fb0370f51169929b704862b71183b49a.json
Support generic types in @RequestBody arguments This change makes it possible to declare an @RequestBody argument with a generic type (e.g. List<Foo>). If a GenericHttpMessageConverter implementation supports the method argument, then the request will be converted to the apropiate target type. The new GenericHttpMess...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorTests.java
@@ -16,75 +16,43 @@ package org.springframework.web.servlet.mvc.method.annotation; -import static org.easymock.EasyMock.createMock; -import static org.easymock.EasyMock.eq; -import static org.easymock.EasyMock.expect; -import static org.easymock.EasyMock.isA; -import static org.easymock.EasyMock.replay; -import st...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-core/src/main/java/org/springframework/core/ParameterizedTypeReference.java
@@ -0,0 +1,99 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + *...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-core/src/test/java/org/springframework/core/ParameterizedTypeReferenceTest.java
@@ -0,0 +1,61 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + *...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-web/src/main/java/org/springframework/http/converter/GenericHttpMessageConverter.java
@@ -0,0 +1,60 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + *...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-web/src/main/java/org/springframework/http/converter/json/MappingJackson2HttpMessageConverter.java
@@ -17,17 +17,10 @@ package org.springframework.http.converter.json; import java.io.IOException; +import java.lang.reflect.Type; import java.nio.charset.Charset; import java.util.List; -import org.springframework.http.HttpInputMessage; -import org.springframework.http.HttpOutputMessage; -import org.springframew...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-web/src/main/java/org/springframework/http/converter/json/MappingJacksonHttpMessageConverter.java
@@ -1,11 +1,11 @@ /* - * Copyright 2002-2011 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-web/src/main/java/org/springframework/http/converter/xml/Jaxb2CollectionHttpMessageConverter.java
@@ -0,0 +1,228 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-web/src/main/java/org/springframework/web/client/HttpMessageConverterExtractor.java
@@ -17,6 +17,7 @@ package org.springframework.web.client; import java.io.IOException; +import java.lang.reflect.Type; import java.util.List; import org.apache.commons.logging.Log; @@ -25,34 +26,45 @@ import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframe...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-web/src/main/java/org/springframework/web/client/RestOperations.java
@@ -1,11 +1,11 @@ /* - * Copyright 2002-2010 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-web/src/main/java/org/springframework/web/client/RestTemplate.java
@@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * dist...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-web/src/test/java/org/springframework/http/converter/json/MappingJackson2HttpMessageConverterTests.java
@@ -16,23 +16,22 @@ package org.springframework.http.converter.json; -import static org.junit.Assert.assertArrayEquals; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - import java.io.IOException; +import java.lang.reflect.Type; import java.nio.charset.Charset; import ...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-web/src/test/java/org/springframework/http/converter/json/MappingJacksonHttpMessageConverterTests.java
@@ -16,18 +16,18 @@ package org.springframework.http.converter.json; -import static org.junit.Assert.assertArrayEquals; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - import java.io.IOException; +import java.lang.reflect.Type; import java.nio.charset.Charset; import ...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-web/src/test/java/org/springframework/http/converter/xml/Jaxb2CollectionHttpMessageConverterTests.java
@@ -0,0 +1,189 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-web/src/test/java/org/springframework/web/client/HttpMessageConverterExtractorTests.java
@@ -0,0 +1,196 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
ed3823b045fd19cdb801609eb034c93dd4d75c3f.json
Support generic target types in the RestTemplate This change makes it possible to use the RestTemplate to read an HTTP response into a target generic type object. The RestTemplate has three new exchange(...) methods that accept ParameterizedTypeReference -- a new class that enables capturing and passing generic type i...
spring-web/src/test/java/org/springframework/web/client/RestTemplateTests.java
@@ -1,11 +1,11 @@ /* - * Copyright 2002-2011 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
true
Other
spring-projects
spring-framework
2965df6bee12638e3e1a1208c382679fe3d46751.json
Update Javadoc of UriComponentsBuilder Issue: SPR-9474
spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java
@@ -143,7 +143,19 @@ public static UriComponentsBuilder fromUri(URI uri) { /** * Returns a builder that is initialized with the given URI string. * - * @param uri the URI string to initialize with + * <p><strong>Note:</strong> The presence of reserved characters can prevent + * correct parsing of the URI str...
false
Other
spring-projects
spring-framework
b3f0b6e2d664bf232e3468acac2eba0e39dab4ab.json
Fix links in MVC chapter Issue: SPR-9344
src/reference/docbook/mvc.xml
@@ -868,9 +868,9 @@ public class ClinicController { <classname>RequestMappingHandlerAdapter</classname> respectively. They are recommended for use and even required to take advantage of new features in Spring MVC 3.1 and going forward. The new support - classes are enabled by default b...
false
Other
spring-projects
spring-framework
888835445c4f0bfb49055167d19b2c6cb25d7b45.json
Update error message in DispatcherServlet Issue: SPR-8338
spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java
@@ -1126,7 +1126,7 @@ protected HandlerAdapter getHandlerAdapter(Object handler) throws ServletExcepti } } throw new ServletException("No adapter for handler [" + handler + - "]: Does your handler implement a supported interface like Controller?"); + "]: The DispatcherServlet configuration needs to incl...
false
Other
spring-projects
spring-framework
af1561634c0b039c7dd16d526e831e09b8b11045.json
Allow Errors after @RequestBody and @RequestPart An @RequestBody or an @RequestPart argument can now be followed by an Errors/BindingResult argument making it possible to handle validation errors (as a result of an @Valid annotation) locally within the @RequestMapping method. Issue: SPR-7114
spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java
@@ -100,9 +100,8 @@ * converted to the declared method argument type using * {@linkplain org.springframework.http.converter.HttpMessageConverter message * converters}. Such parameters may optionally be annotated with {@code @Valid} - * but do not support access to validation results through a - * {@link org.sprin...
true
Other
spring-projects
spring-framework
af1561634c0b039c7dd16d526e831e09b8b11045.json
Allow Errors after @RequestBody and @RequestPart An @RequestBody or an @RequestPart argument can now be followed by an Errors/BindingResult argument making it possible to handle validation errors (as a result of an @Valid annotation) locally within the @RequestMapping method. Issue: SPR-7114
spring-web/src/main/java/org/springframework/web/method/annotation/ErrorsMethodArgumentResolver.java
@@ -60,8 +60,8 @@ public Object resolveArgument( } throw new IllegalStateException( - "An Errors/BindingResult argument is expected to be immediately after the model attribute " + - "argument in the controller method signature: " + parameter.getMethod()); + "An Errors/BindingResult argument is expected...
true
Other
spring-projects
spring-framework
af1561634c0b039c7dd16d526e831e09b8b11045.json
Allow Errors after @RequestBody and @RequestPart An @RequestBody or an @RequestPart argument can now be followed by an Errors/BindingResult argument making it possible to handle validation errors (as a result of an @Valid annotation) locally within the @RequestMapping method. Issue: SPR-7114
spring-web/src/main/java/org/springframework/web/method/annotation/ModelAttributeMethodProcessor.java
@@ -157,16 +157,16 @@ protected void validateIfApplicable(WebDataBinder binder, MethodParameter parame if (annot.annotationType().getSimpleName().startsWith("Valid")) { Object hints = AnnotationUtils.getValue(annot); binder.validate(hints instanceof Object[] ? (Object[]) hints : new Object[] {hints}); + ...
true
Other
spring-projects
spring-framework
af1561634c0b039c7dd16d526e831e09b8b11045.json
Allow Errors after @RequestBody and @RequestPart An @RequestBody or an @RequestPart argument can now be followed by an Errors/BindingResult argument making it possible to handle validation errors (as a result of an @Valid annotation) locally within the @RequestMapping method. Issue: SPR-7114
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodArgumentResolver.java
@@ -38,8 +38,8 @@ import org.springframework.web.method.support.HandlerMethodArgumentResolver; /** - * A base class for resolving method argument values by reading from the body of a request - * with {@link HttpMessageConverter}s. + * A base class for resolving method argument values by reading from the body of + ...
true
Other
spring-projects
spring-framework
af1561634c0b039c7dd16d526e831e09b8b11045.json
Allow Errors after @RequestBody and @RequestPart An @RequestBody or an @RequestPart argument can now be followed by an Errors/BindingResult argument making it possible to handle validation errors (as a result of an @Valid annotation) locally within the @RequestMapping method. Issue: SPR-7114
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestPartMethodArgumentResolver.java
@@ -28,6 +28,7 @@ import org.springframework.http.converter.HttpMessageConverter; import org.springframework.util.Assert; import org.springframework.validation.BindingResult; +import org.springframework.validation.Errors; import org.springframework.web.bind.MethodArgumentNotValidException; import org.springframewo...
true
Other
spring-projects
spring-framework
af1561634c0b039c7dd16d526e831e09b8b11045.json
Allow Errors after @RequestBody and @RequestPart An @RequestBody or an @RequestPart argument can now be followed by an Errors/BindingResult argument making it possible to handle validation errors (as a result of an @Valid annotation) locally within the @RequestMapping method. Issue: SPR-7114
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessor.java
@@ -27,6 +27,7 @@ import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.HttpMessageNotReadableException; import org.springframework.validation.BindingResult; +import org.springframework.validation.Errors; import org.springframework.web.HttpMediaTypeNotAcceptableEx...
true
Other
spring-projects
spring-framework
af1561634c0b039c7dd16d526e831e09b8b11045.json
Allow Errors after @RequestBody and @RequestPart An @RequestBody or an @RequestPart argument can now be followed by an Errors/BindingResult argument making it possible to handle validation errors (as a result of an @Valid annotation) locally within the @RequestMapping method. Issue: SPR-7114
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapterIntegrationTests.java
@@ -89,29 +89,29 @@ /** * A test fixture with a controller with all supported method signature styles - * and arguments. A convenient place to test or confirm a problem with a - * specific argument or return value type. + * and arguments. A convenient place to test or confirm a problem with a + * specific argume...
true
Other
spring-projects
spring-framework
af1561634c0b039c7dd16d526e831e09b8b11045.json
Allow Errors after @RequestBody and @RequestPart An @RequestBody or an @RequestPart argument can now be followed by an Errors/BindingResult argument making it possible to handle validation errors (as a result of an @Valid annotation) locally within the @RequestMapping method. Issue: SPR-7114
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorTests.java
@@ -144,7 +144,7 @@ public void resolveArgument() throws Exception { expect(messageConverter.read(eq(String.class), isA(HttpInputMessage.class))).andReturn(body); replay(messageConverter); - Object result = processor.resolveArgument(paramRequestBodyString, mavContainer, webRequest, null); + Object result = pr...
true
Other
spring-projects
spring-framework
af1561634c0b039c7dd16d526e831e09b8b11045.json
Allow Errors after @RequestBody and @RequestPart An @RequestBody or an @RequestPart argument can now be followed by an Errors/BindingResult argument making it possible to handle validation errors (as a result of an @Valid annotation) locally within the @RequestMapping method. Issue: SPR-7114
src/reference/docbook/mvc.xml
@@ -1584,13 +1584,13 @@ public void handle(@RequestBody String body, Writer writer) throws IOException { <para>An <classname>@RequestBody</classname> method parameter can be annotated with <classname>@Valid</classname>, in which case it will be validated using the configured <classname>Valida...
true
Other
spring-projects
spring-framework
1cf4a2facd4fa0784fd10a767114011a79164abd.json
Add ExceptionHandlerSupport class The new class is functionally equivalent to the DefaultHandlerExceptionResolver (i.e. it translates Spring MVC exceptions to various status codes) but uses an @ExceptionHandler returning a ResponseEntity<Object>, which means it can be customized to write error content to the body of t...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerSupport.java
@@ -0,0 +1,397 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
1cf4a2facd4fa0784fd10a767114011a79164abd.json
Add ExceptionHandlerSupport class The new class is functionally equivalent to the DefaultHandlerExceptionResolver (i.e. it translates Spring MVC exceptions to various status codes) but uses an @ExceptionHandler returning a ResponseEntity<Object>, which means it can be customized to write error content to the body of t...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java
@@ -59,6 +59,8 @@ * @author Arjen Poutsma * @author Rossen Stoyanchev * @since 3.0 + * + * @see org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerSupport * @see #handleNoSuchRequestHandlingMethod * @see #handleHttpRequestMethodNotSupported * @see #handleHttpMediaTypeNotSupported
true
Other
spring-projects
spring-framework
1cf4a2facd4fa0784fd10a767114011a79164abd.json
Add ExceptionHandlerSupport class The new class is functionally equivalent to the DefaultHandlerExceptionResolver (i.e. it translates Spring MVC exceptions to various status codes) but uses an @ExceptionHandler returning a ResponseEntity<Object>, which means it can be customized to write error content to the body of t...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerSupportTests.java
@@ -0,0 +1,233 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
1cf4a2facd4fa0784fd10a767114011a79164abd.json
Add ExceptionHandlerSupport class The new class is functionally equivalent to the DefaultHandlerExceptionResolver (i.e. it translates Spring MVC exceptions to various status codes) but uses an @ExceptionHandler returning a ResponseEntity<Object>, which means it can be customized to write error content to the body of t...
src/reference/docbook/mvc.xml
@@ -3646,49 +3646,65 @@ public String onSubmit(<emphasis role="bold">@RequestPart("meta-data") MetaData is only a matter of implementing the <literal>resolveException(Exception, Handler)</literal> method and returning a <classname>ModelAndView</classname>, you may also use the provided - <clas...
true
Other
spring-projects
spring-framework
9c8c967caa4062670ac0660db97feee43bf54500.json
Add async options to MVC namespace and Java config The MVC Java config method to implement is WebMvcConfigurer.configureAsyncSupport(AsyncSupportConfigurer) The MVC namespace element is: <mvc:annotation-driven> <mvc:async-support default-timeout="2500" task-executor="myExecutor" /> </mvc:annotation-driven> Issue: ...
spring-webmvc/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java
@@ -174,6 +174,8 @@ public BeanDefinition parse(Element element, ParserContext parserContext) { ManagedList<?> messageConverters = getMessageConverters(element, source, parserContext); ManagedList<?> argumentResolvers = getArgumentResolvers(element, source, parserContext); ManagedList<?> returnValueHandlers = ...
true
Other
spring-projects
spring-framework
9c8c967caa4062670ac0660db97feee43bf54500.json
Add async options to MVC namespace and Java config The MVC Java config method to implement is WebMvcConfigurer.configureAsyncSupport(AsyncSupportConfigurer) The MVC namespace element is: <mvc:annotation-driven> <mvc:async-support default-timeout="2500" task-executor="myExecutor" /> </mvc:annotation-driven> Issue: ...
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/AsyncSupportConfigurer.java
@@ -0,0 +1,75 @@ +/* + * Copyright 2002-2012 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
9c8c967caa4062670ac0660db97feee43bf54500.json
Add async options to MVC namespace and Java config The MVC Java config method to implement is WebMvcConfigurer.configureAsyncSupport(AsyncSupportConfigurer) The MVC namespace element is: <mvc:annotation-driven> <mvc:async-support default-timeout="2500" task-executor="myExecutor" /> </mvc:annotation-driven> Issue: ...
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.java
@@ -60,6 +60,11 @@ protected void configureContentNegotiation(ContentNegotiationConfigurer configur this.configurers.configureContentNegotiation(configurer); } + @Override + public void configureAsyncSupport(AsyncSupportConfigurer configurer) { + this.configurers.configureAsyncSupport(configurer); + } + @Over...
true
Other
spring-projects
spring-framework
9c8c967caa4062670ac0660db97feee43bf54500.json
Add async options to MVC namespace and Java config The MVC Java config method to implement is WebMvcConfigurer.configureAsyncSupport(AsyncSupportConfigurer) The MVC namespace element is: <mvc:annotation-driven> <mvc:async-support default-timeout="2500" task-executor="myExecutor" /> </mvc:annotation-driven> Issue: ...
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java
@@ -354,6 +354,17 @@ public RequestMappingHandlerAdapter requestMappingHandlerAdapter() { adapter.setWebBindingInitializer(webBindingInitializer); adapter.setCustomArgumentResolvers(argumentResolvers); adapter.setCustomReturnValueHandlers(returnValueHandlers); + + AsyncSupportConfigurer configurer = new Async...
true
Other
spring-projects
spring-framework
9c8c967caa4062670ac0660db97feee43bf54500.json
Add async options to MVC namespace and Java config The MVC Java config method to implement is WebMvcConfigurer.configureAsyncSupport(AsyncSupportConfigurer) The MVC namespace element is: <mvc:annotation-driven> <mvc:async-support default-timeout="2500" task-executor="myExecutor" /> </mvc:annotation-driven> Issue: ...
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurer.java
@@ -74,6 +74,11 @@ public interface WebMvcConfigurer { */ void configureContentNegotiation(ContentNegotiationConfigurer configurer); + /** + * Configure asynchronous request handling options. + */ + void configureAsyncSupport(AsyncSupportConfigurer configurer); + /** * Add resolvers to support custom cont...
true
Other
spring-projects
spring-framework
9c8c967caa4062670ac0660db97feee43bf54500.json
Add async options to MVC namespace and Java config The MVC Java config method to implement is WebMvcConfigurer.configureAsyncSupport(AsyncSupportConfigurer) The MVC namespace element is: <mvc:annotation-driven> <mvc:async-support default-timeout="2500" task-executor="myExecutor" /> </mvc:annotation-driven> Issue: ...
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.java
@@ -64,6 +64,13 @@ public Validator getValidator() { public void configureContentNegotiation(ContentNegotiationConfigurer configurer) { } + /** + * {@inheritDoc} + * <p>This implementation is empty. + */ + public void configureAsyncSupport(AsyncSupportConfigurer configurer) { + } + /** * {@inheritDoc} ...
true
Other
spring-projects
spring-framework
9c8c967caa4062670ac0660db97feee43bf54500.json
Add async options to MVC namespace and Java config The MVC Java config method to implement is WebMvcConfigurer.configureAsyncSupport(AsyncSupportConfigurer) The MVC namespace element is: <mvc:annotation-driven> <mvc:async-support default-timeout="2500" task-executor="myExecutor" /> </mvc:annotation-driven> Issue: ...
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurerComposite.java
@@ -55,6 +55,12 @@ public void configureContentNegotiation(ContentNegotiationConfigurer configurer) } } + public void configureAsyncSupport(AsyncSupportConfigurer configurer) { + for (WebMvcConfigurer delegate : this.delegates) { + delegate.configureAsyncSupport(configurer); + } + } + public void configure...
true
Other
spring-projects
spring-framework
9c8c967caa4062670ac0660db97feee43bf54500.json
Add async options to MVC namespace and Java config The MVC Java config method to implement is WebMvcConfigurer.configureAsyncSupport(AsyncSupportConfigurer) The MVC namespace element is: <mvc:annotation-driven> <mvc:async-support default-timeout="2500" task-executor="myExecutor" /> </mvc:annotation-driven> Issue: ...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java
@@ -24,6 +24,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.Set; +import java.util.concurrent.Callable; import java.util.concurrent.ConcurrentHashMap; import javax.servlet.http.HttpServletRequest; @@ -62,6 +63,7 @@ import org.springframework.web.context.request.NativeWebRequest; import...
true
Other
spring-projects
spring-framework
9c8c967caa4062670ac0660db97feee43bf54500.json
Add async options to MVC namespace and Java config The MVC Java config method to implement is WebMvcConfigurer.configureAsyncSupport(AsyncSupportConfigurer) The MVC namespace element is: <mvc:annotation-driven> <mvc:async-support default-timeout="2500" task-executor="myExecutor" /> </mvc:annotation-driven> Issue: ...
spring-webmvc/src/main/resources/org/springframework/web/servlet/config/spring-mvc-3.2.xsd
@@ -90,6 +90,38 @@ </xsd:sequence> </xsd:complexType> </xsd:element> + <xsd:element name="async-support" minOccurs="0"> + <xsd:annotation> + <xsd:documentation><![CDATA[ + Configure options for asynchronous request processing. + ]]></xsd:documentation> + </xsd:annotation> + ...
true
Other
spring-projects
spring-framework
9c8c967caa4062670ac0660db97feee43bf54500.json
Add async options to MVC namespace and Java config The MVC Java config method to implement is WebMvcConfigurer.configureAsyncSupport(AsyncSupportConfigurer) The MVC namespace element is: <mvc:annotation-driven> <mvc:async-support default-timeout="2500" task-executor="myExecutor" /> </mvc:annotation-driven> Issue: ...
spring-webmvc/src/test/java/org/springframework/web/servlet/config/MvcNamespaceTests.java
@@ -45,6 +45,7 @@ import org.springframework.mock.web.MockHttpServletResponse; import org.springframework.mock.web.MockRequestDispatcher; import org.springframework.mock.web.MockServletContext; +import org.springframework.scheduling.concurrent.ConcurrentTaskExecutor; import org.springframework.stereotype.Controller...
true