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 | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc-portlet/src/test/java/org/springframework/web/portlet/util/PortletUtilsTests.java | @@ -21,23 +21,23 @@
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
+
import javax.portlet.PortletContext;
import javax.portlet.PortletRequest;
import javax.portlet.PortletSession;
import org.junit.Test;
-
-import org.springframework.tests.sample.beans.ITestBean;
-import org.sprin... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc-tiles3/src/test/java/org/springframework/web/servlet/view/tiles3/TilesViewResolverTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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.
@@ -15,24 +15,18 @@
*/
package org.springfra... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc-tiles3/src/test/java/org/springframework/web/servlet/view/tiles3/TilesViewTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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.
@@ -15,18 +15,9 @@
*/
package org.springfram... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/DispatcherServletTests.java | @@ -61,8 +61,7 @@
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
-import static org.mockito.Matchers.*;
-import static org.mockito.Mockito.*;
+import static org.mockito.BDDMockito.*;
/**
* @author Rod Johnson | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/HandlerExecutionChainTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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,17 +16,14 @@
package org.springframew... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfigurationTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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,23 +16,17 @@
package org.springframew... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/ControllerTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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.
@@ -28,14 +28,15 @@
import javax.servlet.http.... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/HttpEntityMethodProcessorMockTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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.
@@ -15,27 +15,14 @@
*/
package org.springf... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestPartMethodArgumentResolverTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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,20 +16,6 @@
package org.springframewo... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorMockTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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,20 +16,6 @@
package org.springframewo... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/tags/form/AbstractHtmlElementTagTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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,8 +16,6 @@
package org.springframewor... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/tags/form/FormTagTests.java | @@ -16,10 +16,6 @@
package org.springframework.web.servlet.tags.form;
-import static org.easymock.EasyMock.expect;
-import static org.easymock.EasyMock.replay;
-import static org.easymock.EasyMock.verify;
-
import java.util.Collections;
import javax.servlet.jsp.PageContext;
@@ -28,6 +24,8 @@
import org.spring... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/BaseViewTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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.
@@ -15,11 +15,6 @@
*/
package org.springfr... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/ContentNegotiatingViewResolverTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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,15 +16,6 @@
package org.springframewo... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/InternalResourceViewTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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,11 +16,6 @@
package org.springframewo... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/RedirectViewTests.java | @@ -16,14 +16,6 @@
package org.springframework.web.servlet.view;
-import static org.easymock.EasyMock.createMock;
-import static org.easymock.EasyMock.createNiceMock;
-import static org.easymock.EasyMock.expect;
-import static org.easymock.EasyMock.replay;
-import static org.easymock.EasyMock.verify;
-import stati... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/freemarker/FreeMarkerViewTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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.
@@ -23,16 +23,10 @@
import java.util.HashMap;
... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/jasperreports/AbstractJasperReportsViewTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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.
@@ -32,15 +32,16 @@
import net.sf.jasperreport... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/json/MappingJackson2JsonViewTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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,13 +16,6 @@
package org.springframewo... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/json/MappingJacksonJsonViewTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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,13 +16,6 @@
package org.springframewo... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/velocity/VelocityViewTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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,15 +16,6 @@
package org.springframewo... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/xml/MarshallingViewTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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.
@@ -18,18 +18,19 @@
import java.util.HashMap... | true |
Other | spring-projects | spring-framework | 05765d752062f37b202e7dfd20593c995dc47df0.json | Replace EasyMock with Mockito
Issue: SPR-10126 | src/test/java/org/springframework/scheduling/annotation/ScheduledAndTransactionalAnnotationIntegrationTests.java | @@ -16,14 +16,6 @@
package org.springframework.scheduling.annotation;
-import static org.easymock.EasyMock.createMock;
-import static org.easymock.EasyMock.replay;
-import static org.hamcrest.CoreMatchers.is;
-import static org.hamcrest.Matchers.greaterThan;
-import static org.junit.Assert.assertThat;
-import stat... | true |
Other | spring-projects | spring-framework | c611083415845bcb9758c0f92c4749a712b049f0.json | Catch IAE when parsing content type
Issue: SPR-10308 | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoHandlerMapping.java | @@ -205,7 +205,12 @@ else if (patternAndMethodMatches.isEmpty() && !allowedMethods.isEmpty()) {
if (!consumableMediaTypes.isEmpty()) {
MediaType contentType = null;
if (StringUtils.hasLength(request.getContentType())) {
- contentType = MediaType.parseMediaType(request.getContentType());
+ try {
+ c... | true |
Other | spring-projects | spring-framework | c611083415845bcb9758c0f92c4749a712b049f0.json | Catch IAE when parsing content type
Issue: SPR-10308 | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoHandlerMappingTests.java | @@ -180,6 +180,19 @@ private void testMediaTypeNotSupported(String url) throws Exception {
}
}
+ @Test
+ public void testMediaTypeNotValue() throws Exception {
+ try {
+ MockHttpServletRequest request = new MockHttpServletRequest("PUT", "/person/1");
+ request.setContentType("bogus");
+ this.handlerMappin... | true |
Other | spring-projects | spring-framework | 3abe05c65e40755e209971888e3d5e6ea38b2487.json | Update @RequestParam javadoc
Issue: SPR-10180 | spring-web/src/main/java/org/springframework/web/bind/annotation/RequestParam.java | @@ -68,8 +68,9 @@
boolean required() default true;
/**
- * The default value to use as a fallback. Supplying a default value implicitly
- * sets {@link #required()} to false.
+ * The default value to use as a fallback when the request parameter value
+ * is not provided or empty. Supplying a default value imp... | false |
Other | spring-projects | spring-framework | 5d727b2d8e6896392a5b55c83ec9ad8e985e97ce.json | Add Castor XSD information to reference docs
Update the Spring OXM reference documentation to include changes
introduced in CastorMarshaller, specifically around CastorMarshaller
XSD configuration.
Issue: SPR-8509 | src/reference/docbook/oxm.xml | @@ -332,6 +332,9 @@ public class Application {
<listitem>
<para><link linkend="oxm-xmlbeans-xsd"><literal>xmlbeans-marshaller</literal></link></para>
</listitem>
+ <listitem>
+ <para><link linkend="oxm-castor-xsd"><literal>castor-m... | false |
Other | spring-projects | spring-framework | 39c236baa8c3f189cc422f2814443fd9652876fb.json | Fix minor javadoc typos | spring-jms/src/main/java/org/springframework/jms/listener/endpoint/JmsMessageEndpointFactory.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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.
@@ -109,11 +109,11 @@ protected ClassLoader get... | true |
Other | spring-projects | spring-framework | 39c236baa8c3f189cc422f2814443fd9652876fb.json | Fix minor javadoc typos | spring-tx/src/main/java/org/springframework/jca/endpoint/GenericMessageEndpointFactory.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2013 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.
@@ -141,11 +141,11 @@ protected ClassLoader get... | true |
Other | spring-projects | spring-framework | c4ba8ce1243012ea1f5e6946614787de1a20dd54.json | Fix incorrect closing <web-app> tag in MVC docs | src/reference/docbook/mvc.xml | @@ -2602,7 +2602,7 @@ deferredResult.setResult(data);
...
- <web-app>
+ </web-app>
</programlisting>
<para>The <classname>DispatcherServlet</classname> and any | false |
Other | spring-projects | spring-framework | c0e4387cbcb9ef0b62372ae8a7a0fbca567b955a.json | Fix JIRA issue number in @Ignore comments
Issue: SPR-10333 | spring-orm/src/test/java/org/springframework/orm/jpa/openjpa/OpenJpaEntityManagerFactoryWithAspectJWeavingIntegrationTests.java | @@ -25,7 +25,7 @@
* @author Ramnivas Laddad
* @author Chris Beams
*/
-@Ignore("This test causes gradle to hang. See SPR-103333.")
+@Ignore("This test causes gradle to hang. See SPR-10333.")
public class OpenJpaEntityManagerFactoryWithAspectJWeavingIntegrationTests extends OpenJpaEntityManagerFactoryIntegrationTe... | true |
Other | spring-projects | spring-framework | c0e4387cbcb9ef0b62372ae8a7a0fbca567b955a.json | Fix JIRA issue number in @Ignore comments
Issue: SPR-10333 | spring-orm/src/test/java/org/springframework/orm/jpa/toplink/TopLinkMultiEntityManagerFactoryIntegrationTests.java | @@ -28,7 +28,7 @@
* @author Costin Leau
* @author Chris Beams
*/
-@Ignore("This test causes gradle to hang. See SPR-103333.")
+@Ignore("This test causes gradle to hang. See SPR-10333.")
public class TopLinkMultiEntityManagerFactoryIntegrationTests extends
AbstractContainerEntityManagerFactoryIntegrationTests ... | true |
Other | spring-projects | spring-framework | 9b72bf4691c443af062205e001858e984ae9c791.json | Update @since tag for StreamUtils | spring-core/src/main/java/org/springframework/util/StreamUtils.java | @@ -37,7 +37,7 @@
*
* @author Juergen Hoeller
* @author Phillip Webb
- * @since 3.2
+ * @since 3.2.2
* @see FileCopyUtils
*/
public abstract class StreamUtils { | false |
Other | spring-projects | spring-framework | 55caf7bdb0b418d64967f057832eba40de7ff825.json | Improve diagnostics for invalid testGroup values | spring-core/src/test/java/org/springframework/tests/TestGroup.java | @@ -21,6 +21,10 @@
import java.util.HashSet;
import java.util.Set;
+import org.springframework.util.StringUtils;
+
+import static java.lang.String.*;
+
/**
* A test group used to limit when certain tests are run.
*
@@ -64,8 +68,10 @@ public static Set<TestGroup> parse(String value) {
try {
groups.add(... | true |
Other | spring-projects | spring-framework | 55caf7bdb0b418d64967f057832eba40de7ff825.json | Improve diagnostics for invalid testGroup values | spring-core/src/test/java/org/springframework/tests/TestGroupTests.java | @@ -62,7 +62,9 @@ public void parseInMixedCase() throws Exception {
@Test
public void parseMissing() throws Exception {
thrown.expect(IllegalArgumentException.class);
- thrown.expectMessage("Unable to find test group 'missing' when parsing 'performance, missing'");
+ thrown.expectMessage("Unable to find test g... | true |
Other | spring-projects | spring-framework | 7dff02b2c145a94ff47da3e8931d34d05f05f331.json | Fix import issue introduced in prior commit
Issue: SPR-9289 | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/PathVariableMapMethodArgumentResolver.java | @@ -16,6 +16,7 @@
package org.springframework.web.servlet.mvc.method.annotation;
+import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
@@ -30,8 +31,6 @@
import org.springframework.web.method.support.ModelAndViewContainer;
import org.springframework.web.servlet.HandlerMapping;
... | false |
Other | spring-projects | spring-framework | c85b6116009ba41202ce6100aa23efc336be1120.json | Update copyright header for XStreamMarshaller
Issue: SPR-9536 | spring-oxm/src/main/java/org/springframework/oxm/xstream/XStreamMarshaller.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. | false |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | build.gradle | @@ -360,7 +360,7 @@ project('spring-web') {
compile("commons-fileupload:commons-fileupload:1.2", optional)
runtime("commons-io:commons-io:1.3", optional)
compile("commons-httpclient:commons-httpclient:3.1", optional)
- compile("org.apache.httpcomponents:httpclient:4.1.1", optional)
+ ... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-web/src/main/java/org/springframework/http/HttpMethod.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2009 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.
@@ -26,6 +26,6 @@
*/
public enum HttpMethod ... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-web/src/main/java/org/springframework/http/client/CommonsClientHttpRequestFactory.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.
@@ -141,6 +141,9 @@ protected HttpMethodBase cr... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.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,12 +17,9 @@
package org.springframework... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-web/src/main/java/org/springframework/http/client/SimpleClientHttpRequestFactory.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.
@@ -152,7 +152,7 @@ protected void prepareConne... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-web/src/main/java/org/springframework/web/HttpMediaTypeNotSupportedException.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2009 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.
@@ -21,7 +21,7 @@
import org.springframework.h... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java | @@ -271,7 +271,7 @@
/**
* The HTTP request methods to map to, narrowing the primary mapping:
- * GET, POST, HEAD, OPTIONS, PUT, DELETE, TRACE.
+ * GET, POST, HEAD, OPTIONS, PUT, PATCH, DELETE, TRACE.
* <p><b>Supported at the type level as well as at the method level!</b>
* When used at the type level, al... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMethod.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2009 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.
@@ -22,7 +22,7 @@
* {@link RequestMapping} an... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-web/src/main/java/org/springframework/web/filter/HttpPutFormContentFilter.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.
@@ -44,24 +44,24 @@
import org.springframework... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-web/src/test/java/org/springframework/http/client/AbstractHttpRequestFactoryTestCase.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.
@@ -68,6 +68,7 @@ public static void startJetty... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-web/src/test/java/org/springframework/http/client/BufferedSimpleHttpRequestFactoryTests.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.
@@ -16,10 +16,26 @@
package org.springframew... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-web/src/test/java/org/springframework/http/client/CommonsHttpRequestFactoryTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2009 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,14 +16,21 @@
package org.springframew... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-web/src/test/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactoryTests.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.
@@ -16,10 +16,19 @@
package org.springframew... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-web/src/test/java/org/springframework/web/filter/HttpPutFormContentFilterTests.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.
@@ -29,25 +29,26 @@
import org.junit.Before;... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-webmvc/src/main/java/org/springframework/web/servlet/FrameworkServlet.java | @@ -41,6 +41,7 @@
import org.springframework.util.ClassUtils;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
+import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.context.ConfigurableWebApplicationContext;
import org.springframework... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletAnnotationControllerHandlerMethodTests.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.
@@ -144,20 +144,20 @@
/**
* The origin of ... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | src/dist/changelog.txt | @@ -11,6 +11,7 @@ Changes in version 3.2 M2
* add JacksonObjectMapperFactoryBean for configuring a Jackson ObjectMapper in XML
* infer return type of parameterized factory methods (SPR-9493)
* add ContentNegotiationManager/ContentNegotiationStrategy to resolve requested media types
+* add support for the HTTP PATCH ... | true |
Other | spring-projects | spring-framework | a0747458e7e23bf53620caf26f5bb3e2b17bf963.json | Add support for HTTP PATCH method
The HTTP PATCH method is now supported whereever HTTP methods are used.
Annotated controllers can be mapped to RequestMethod.PATCH.
On the client side the RestTemplate execute(..) and exchange(..)
methods can be used with HttpMethod.PATCH. In terms of HTTP client
libraries, Apache Ht... | src/reference/docbook/mvc.xml | @@ -1975,7 +1975,7 @@ public class EditPetForm {
<literal>ServletRequest.getParameter*()</literal> family of methods to
support form field access only for HTTP POST, not for HTTP PUT.</para>
- <para>To support HTTP PUT requests, the <literal>spring-web</literal>
+ <para>To support HTTP... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | build.gradle | @@ -368,6 +368,7 @@ project('spring-web') {
optional dep
exclude group: 'org.mortbay.jetty', module: 'servlet-api-2.5'
}
+ testCompile project(":spring-context-support") // for JafMediaTypeFactory
testCompile "xmlunit:xmlunit:1.2"
}
| true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/main/java/org/springframework/web/accept/AbstractMappingContentNegotiationStrategy.java | @@ -0,0 +1,82 @@
+/*
+ * 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 | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/main/java/org/springframework/web/accept/ContentNegotiationManager.java | @@ -0,0 +1,105 @@
+/*
+ * 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 | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/main/java/org/springframework/web/accept/ContentNegotiationStrategy.java | @@ -0,0 +1,44 @@
+/*
+ * 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 | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/main/java/org/springframework/web/accept/FixedContentNegotiationStrategy.java | @@ -0,0 +1,53 @@
+/*
+ * 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 | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/main/java/org/springframework/web/accept/HeaderContentNegotiationStrategy.java | @@ -0,0 +1,57 @@
+/*
+ * 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 | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/main/java/org/springframework/web/accept/MappingMediaTypeExtensionsResolver.java | @@ -0,0 +1,82 @@
+/*
+ * 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 | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/main/java/org/springframework/web/accept/MediaTypeExtensionsResolver.java | @@ -0,0 +1,40 @@
+/*
+ * 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 | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/main/java/org/springframework/web/accept/ParameterContentNegotiationStrategy.java | @@ -0,0 +1,71 @@
+/*
+ * 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 | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/main/java/org/springframework/web/accept/PathExtensionContentNegotiationStrategy.java | @@ -0,0 +1,187 @@
+/*
+ * 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 | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/main/java/org/springframework/web/accept/package-info.java | @@ -0,0 +1,17 @@
+
+/**
+ * This package contains classes used to determine the requested the media types in a request.
+ *
+ * <p>{@link org.springframework.web.accept.ContentNegotiationStrategy} is the main
+ * abstraction for determining requested {@linkplain org.springframework.http.MediaType media types}
+ * with ... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/test/java/org/springframework/web/accept/AbstractMappingContentNegotiationStrategyTests.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 | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/test/java/org/springframework/web/accept/HeaderContentNegotiationStrategyTests.java | @@ -0,0 +1,68 @@
+/*
+ * 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 | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/test/java/org/springframework/web/accept/MappingMediaTypeExtensionsResolverTests.java | @@ -0,0 +1,44 @@
+/*
+ * 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 | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-web/src/test/java/org/springframework/web/accept/PathExtensionContentNegotiationStrategyTests.java | @@ -0,0 +1,113 @@
+/*
+ * 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 | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/AbstractMediaTypeExpression.java | @@ -21,6 +21,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.http.MediaType;
+import org.springframework.web.HttpMediaTypeException;
import org.springframework.web.bind.annotation.RequestMapping;
/**
@@ -68,15 +69,12 @@ public final boolean mat... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/ConsumesRequestCondition.java | @@ -28,17 +28,18 @@
import org.springframework.http.MediaType;
import org.springframework.util.StringUtils;
+import org.springframework.web.HttpMediaTypeNotSupportedException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.mvc.condition.HeadersRequestConditio... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/ProducesRequestCondition.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,7 +17,6 @@
package org.springframework.... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodProcessor.java | @@ -27,15 +27,16 @@
import javax.servlet.http.HttpServletResponse;
import org.springframework.core.MethodParameter;
-import org.springframework.http.HttpInputMessage;
import org.springframework.http.HttpOutputMessage;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessag... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java | @@ -32,6 +32,7 @@
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.http.converter.xml.SourceHttpMessageConverter;
import org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter;
+import org.springframework.web.accept.ContentNegotiationManager;
import o... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/HttpEntityMethodProcessor.java | @@ -33,6 +33,7 @@
import org.springframework.http.server.ServletServerHttpResponse;
import org.springframework.util.Assert;
import org.springframework.web.HttpMediaTypeNotSupportedException;
+import org.springframework.web.accept.ContentNegotiationManager;
import org.springframework.web.bind.support.WebDataBinderFa... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java | @@ -47,6 +47,7 @@
import org.springframework.util.ClassUtils;
import org.springframework.util.CollectionUtils;
import org.springframework.util.ReflectionUtils.MethodFilter;
+import org.springframework.web.accept.ContentNegotiationManager;
import org.springframework.web.bind.annotation.InitBinder;
import org.spring... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMapping.java | @@ -20,6 +20,8 @@
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.stereotype.Controller;
+import org.springframework.web.accept.ContentNegotiationManager;
+import org.springframework.web.accept.HeaderContentNegotiationStrategy;
import org.springframework.web.bind.annotation.R... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessor.java | @@ -29,6 +29,7 @@
import org.springframework.validation.BindingResult;
import org.springframework.web.HttpMediaTypeNotAcceptableException;
import org.springframework.web.HttpMediaTypeNotSupportedException;
+import org.springframework.web.accept.ContentNegotiationManager;
import org.springframework.web.bind.MethodAr... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-webmvc/src/main/java/org/springframework/web/servlet/view/ContentNegotiatingViewResolver.java | @@ -16,48 +16,47 @@
package org.springframework.web.servlet.view;
-import java.io.IOException;
-import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
+import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/condition/ParamsRequestConditionTests.java | @@ -44,7 +44,7 @@ public void paramEquals() {
new ParamsRequestCondition("foo=bar").equals(new ParamsRequestCondition("FOO=bar")));
}
- @Test
+ @Test
public void paramPresent() {
ParamsRequestCondition condition = new ParamsRequestCondition("foo");
@@ -96,7 +96,7 @@ public void paramValueNoMatch() {
... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/condition/ProducesRequestConditionTests.java | @@ -36,7 +36,7 @@
public class ProducesRequestConditionTests {
@Test
- public void producesMatch() {
+ public void match() {
ProducesRequestCondition condition = new ProducesRequestCondition("text/plain");
MockHttpServletRequest request = new MockHttpServletRequest();
@@ -46,7 +46,7 @@ public void produces... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | spring-webmvc/src/test/java/org/springframework/web/servlet/view/ContentNegotiatingViewResolverTests.java | @@ -24,12 +24,10 @@
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
-import java.util.HashMap;
impor... | true |
Other | spring-projects | spring-framework | f05e2bc56f8e03466977d73a5e99c37651248803.json | Add abstractions for content negotiation
Introduced ContentNeogtiationStrategy for resolving the requested
media types from an incoming request. The available implementations
are based on path extension, request parameter, 'Accept' header,
and a fixed default content type. The logic for these implementations
is based ... | src/dist/changelog.txt | @@ -10,7 +10,7 @@ Changes in version 3.2 M2
* raise RestClientException instead of IllegalArgumentException for unknown status codes
* add JacksonObjectMapperFactoryBean for configuring a Jackson ObjectMapper in XML
* infer return type of parameterized factory methods (SPR-9493)
-
+* add ContentNegotiationManager/Co... | true |
Other | spring-projects | spring-framework | e3d8ab20883f127c0b73ab95c8794ce503a4ee42.json | Fix Javadoc typo in ConfigurableWebEnvironment | spring-web/src/main/java/org/springframework/web/context/ConfigurableWebEnvironment.java | @@ -24,7 +24,7 @@
/**
* Specialization of {@link ConfigurableEnvironment} allowing initialization of
* servlet-related {@link org.springframework.core.env.PropertySource} objects at the
- * earliest moment the {@link ServletContext} and (optionally) {@link ServletConfig}
+ * earliest moment that the {@link Servlet... | false |
Other | spring-projects | spring-framework | e5bbec7e2b322f280cffc540d3419baefd29d187.json | Add Gradle task for building zip with dependencies
Some Spring Framework users and teams cannot use transitive dependency
management tools like Maven, Gradle and Ivy. For them, a `distZip` task
has been added to allow for creating a Spring Framework distribution
from source that includes all optional and required runt... | README.md | @@ -15,9 +15,9 @@ The framework also serves as the foundation for
[Python](https://github.com/SpringSource/spring-python) variants are available as well.
## Downloading artifacts
-Instructions on
-[downloading Spring artifacts](https://github.com/SpringSource/spring-framework/wiki/Downloading-Spring-artifacts)
-via... | true |
Other | spring-projects | spring-framework | e5bbec7e2b322f280cffc540d3419baefd29d187.json | Add Gradle task for building zip with dependencies
Some Spring Framework users and teams cannot use transitive dependency
management tools like Maven, Gradle and Ivy. For them, a `distZip` task
has been added to allow for creating a Spring Framework distribution
from source that includes all optional and required runt... | build.gradle | @@ -640,7 +640,7 @@ configure(rootProject) {
description = "Builds -${classifier} archive, containing all jars and docs, " +
"suitable for community download page."
- def baseDir = "${project.name}-${project.version}";
+ ext.baseDir = "${project.name}-${project.version}";... | true |
Other | spring-projects | spring-framework | 726655af50b6747b8c87ed023aa7911c2b4fe2ed.json | Fix outdated Javadoc in the TestContext framework
Fixed outdated Javadoc regarding support for 'annotated classes' in
the TestContext Framework. | spring-test/src/main/java/org/springframework/test/context/junit4/AbstractJUnit4SpringContextTests.java | @@ -18,7 +18,9 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+
import org.junit.runner.RunWith;
+
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.test.context.ContextConfigurat... | true |
Other | spring-projects | spring-framework | 726655af50b6747b8c87ed023aa7911c2b4fe2ed.json | Fix outdated Javadoc in the TestContext framework
Fixed outdated Javadoc regarding support for 'annotated classes' in
the TestContext Framework. | spring-test/src/main/java/org/springframework/test/context/junit4/AbstractTransactionalJUnit4SpringContextTests.java | @@ -32,33 +32,28 @@
import org.springframework.transaction.annotation.Transactional;
/**
- * <p>
* Abstract {@link Transactional transactional} extension of
* {@link AbstractJUnit4SpringContextTests} which adds convenience functionality
* for JDBC access. Expects a {@link DataSource} bean and a
* {@link Pla... | true |
Other | spring-projects | spring-framework | 726655af50b6747b8c87ed023aa7911c2b4fe2ed.json | Fix outdated Javadoc in the TestContext framework
Fixed outdated Javadoc regarding support for 'annotated classes' in
the TestContext Framework. | spring-test/src/main/java/org/springframework/test/context/testng/AbstractTestNGSpringContextTests.java | @@ -21,6 +21,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.test.context.ContextConfiguration;
@@ -29,6 +30,7 @@
import org.s... | true |
Other | spring-projects | spring-framework | 726655af50b6747b8c87ed023aa7911c2b4fe2ed.json | Fix outdated Javadoc in the TestContext framework
Fixed outdated Javadoc regarding support for 'annotated classes' in
the TestContext Framework. | spring-test/src/main/java/org/springframework/test/context/testng/AbstractTransactionalTestNGSpringContextTests.java | @@ -31,24 +31,20 @@
import org.springframework.transaction.annotation.Transactional;
/**
- * <p>
* Abstract {@link Transactional transactional} extension of
* {@link AbstractTestNGSpringContextTests} which adds convenience functionality
* for JDBC access. Expects a {@link DataSource} bean and a
* {@link Pla... | true |
Other | spring-projects | spring-framework | 726655af50b6747b8c87ed023aa7911c2b4fe2ed.json | Fix outdated Javadoc in the TestContext framework
Fixed outdated Javadoc regarding support for 'annotated classes' in
the TestContext Framework. | spring-test/src/test/java/org/springframework/test/context/testng/AnnotationConfigTransactionalTestNGSpringContextTests.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.
@@ -32,7 +32,6 @@
import org.springframework.j... | true |
Other | spring-projects | spring-framework | de04d9c654c4c44649cc238019d461a60d75fad9.json | Fix typo in MessageSource reference docs
Issue: SPR-5022 | src/reference/docbook/beans-context-additional.xml | @@ -183,7 +183,7 @@ argument.required=The '{0}' argument is required.</programlisting>
<lineannotation><!-- this <interfacename>MessageSource</interfacename> is being used in a web application --></lineannotation>
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessage... | false |
Other | spring-projects | spring-framework | b0f80d6358b6e45cffee6fd74dffca7b15024a34.json | Add splitIndex Javadoc option to the root project
Splits the very large index page with all classes into individual pages
organized by first letter.
Issue: SPR-4984 | build.gradle | @@ -574,6 +574,7 @@ configure(rootProject) {
options.author = true
options.header = rootProject.description
options.overview = 'src/api/overview.html'
+ options.splitIndex = true
options.links(
'http://docs.jboss.org/jbossas/javadoc/4.0.5/connector'
) | false |
Other | spring-projects | spring-framework | 7cdc53487d729c5ddbd23cde0b2d448db9faafae.json | Allow parsing of media types with single-quotes
Previously MediaType could only parse double-quoted parameters without
raising an IllegalArgumentException. Now parameters can also be
single-quoted.
Issue: SPR-8917 | spring-web/src/main/java/org/springframework/http/MediaType.java | @@ -376,7 +376,12 @@ else if (!isQuotedString(value)) {
}
private boolean isQuotedString(String s) {
- return s.length() > 1 && s.startsWith("\"") && s.endsWith("\"") ;
+ if (s.length() < 2) {
+ return false;
+ }
+ else {
+ return ((s.startsWith("\"") && s.endsWith("\"")) || (s.startsWith("'") && s.endsWi... | true |
Other | spring-projects | spring-framework | 7cdc53487d729c5ddbd23cde0b2d448db9faafae.json | Allow parsing of media types with single-quotes
Previously MediaType could only parse double-quoted parameters without
raising an IllegalArgumentException. Now parameters can also be
single-quoted.
Issue: SPR-8917 | spring-web/src/test/java/org/springframework/http/MediaTypeTests.java | @@ -181,6 +181,14 @@ public void parseMediaTypeQuotedParameterValue() {
assertEquals("\"v>alue\"", mediaType.getParameter("attr"));
}
+ // SPR-8917
+
+ @Test
+ public void parseMediaTypeSingleQuotedParameterValue() {
+ MediaType mediaType = MediaType.parseMediaType("audio/*;attr='v>alue'");
+ assertEquals("'v>... | true |
Other | spring-projects | spring-framework | cd6f7de4082258f9dcf78657633035da5abfcd65.json | SPR-9498: Add support for MultiValueMap to CollectionFactory
This turns out not to be the main problem exposed in SPR-9498
but it seems like a sensible addition anyway. | spring-core/src/main/java/org/springframework/core/CollectionFactory.java | @@ -35,6 +35,8 @@
import java.util.concurrent.CopyOnWriteArraySet;
import org.springframework.util.LinkedCaseInsensitiveMap;
+import org.springframework.util.LinkedMultiValueMap;
+import org.springframework.util.MultiValueMap;
/**
* Factory for collections, being aware of Java 5 and Java 6 collections.
@@ -305... | true |
Other | spring-projects | spring-framework | cd6f7de4082258f9dcf78657633035da5abfcd65.json | SPR-9498: Add support for MultiValueMap to CollectionFactory
This turns out not to be the main problem exposed in SPR-9498
but it seems like a sensible addition anyway. | spring-core/src/test/java/org/springframework/core/CollectionFactoryTests.java | @@ -24,9 +24,12 @@
import junit.framework.TestCase;
+import org.springframework.util.MultiValueMap;
+
/**
* @author Darren Davison
* @author Juergen Hoeller
+ * @author Dave Syer
*/
public class CollectionFactoryTests extends TestCase {
@@ -50,6 +53,11 @@ public void testConcurrentMap() {
assertTrue(m... | true |
Other | spring-projects | spring-framework | 3ba4bb31facfe3d0d309b944ab162f34d47b592c.json | Add Maven artifacts to .gitignore | .gitignore | @@ -4,6 +4,7 @@
.DS_Store
.settings
.springBeans
+target
bin
build.sh
integration-repo
@@ -17,6 +18,7 @@ build
.classpath
.project
argfile*
+pom.xml
# IDEA metadata and output dirs
*.iml | false |
Other | spring-projects | spring-framework | ab4952a959174c496a194967eb873cf119dfeab9.json | Raise RestClientException for unknown status codes
HttpStatus cannot be created with an unknown status code. If a server
returns a status code that's not in the HttpStatus enum values, an
IllegalArgumentException is raised. Rather than allowing it to
propagate as such, this change ensures the actual exception raised i... | spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java | @@ -45,7 +45,18 @@ public class DefaultResponseErrorHandler implements ResponseErrorHandler {
* Delegates to {@link #hasError(HttpStatus)} with the response status code.
*/
public boolean hasError(ClientHttpResponse response) throws IOException {
- return hasError(response.getStatusCode());
+ return hasError(... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.