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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/AbstractNameValueExpression.java | @@ -0,0 +1,127 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/AbstractRequestCondition.java | @@ -0,0 +1,86 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/CompositeRequestCondition.java | @@ -0,0 +1,184 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/ConsumesRequestCondition.java | @@ -0,0 +1,234 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/HeadersRequestCondition.java | @@ -0,0 +1,167 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/MediaTypeExpression.java | @@ -0,0 +1,35 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/NameValueExpression.java | @@ -0,0 +1,35 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/ParamsRequestCondition.java | @@ -0,0 +1,152 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/PatternsRequestCondition.java | @@ -0,0 +1,285 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/ProducesRequestCondition.java | @@ -0,0 +1,318 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/RequestCondition.java | @@ -0,0 +1,68 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/RequestConditionHolder.java | @@ -0,0 +1,139 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/RequestMethodsRequestCondition.java | @@ -0,0 +1,162 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/package-info.java | @@ -0,0 +1,6 @@
+/**
+ * Support for mapping requests based on a
+ * {@link org.springframework.web.reactive.result.condition.RequestCondition
+ * RequestCondition} type hierarchy.
+ */
+package org.springframework.web.reactive.result.condition; | true |
Other | spring-projects | spring-framework | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfo.java | @@ -0,0 +1,602 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/condition/CompositeRequestConditionTests.java | @@ -0,0 +1,151 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/condition/ConsumesRequestConditionTests.java | @@ -0,0 +1,210 @@
+/*
+ * 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/condition/HeadersRequestConditionTests.java | @@ -0,0 +1,173 @@
+/*
+ * 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/condition/ParamsRequestConditionTests.java | @@ -0,0 +1,145 @@
+/*
+ * 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/condition/PatternsRequestConditionTests.java | @@ -0,0 +1,234 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/condition/ProducesRequestConditionTests.java | @@ -0,0 +1,327 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/condition/RequestConditionHolderTests.java | @@ -0,0 +1,141 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/condition/RequestMappingInfoTests.java | @@ -0,0 +1,355 @@
+/*
+ * Copyright 2002-2016 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 | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/condition/RequestMethodsRequestConditionTests.java | @@ -0,0 +1,157 @@
+/*
+ * Copyright 2002-2016 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 | 641c6428e88bbdd30fac591bf33b0e94f5751d6a.json | Add ContentTypeResolver strategy
A starting point for an alternative to the existing
ContentNegotiationStrategy but for use with ServerWebExchange. | spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/ContentTypeResolver.java | @@ -0,0 +1,42 @@
+/*
+ * Copyright 2002-2016 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 | 641c6428e88bbdd30fac591bf33b0e94f5751d6a.json | Add ContentTypeResolver strategy
A starting point for an alternative to the existing
ContentNegotiationStrategy but for use with ServerWebExchange. | spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/FileExtensionContentTypeResolver.java | @@ -0,0 +1,45 @@
+/*
+ * Copyright 2002-2016 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 | 641c6428e88bbdd30fac591bf33b0e94f5751d6a.json | Add ContentTypeResolver strategy
A starting point for an alternative to the existing
ContentNegotiationStrategy but for use with ServerWebExchange. | spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/HeaderContentTypeResolver.java | @@ -0,0 +1,47 @@
+/*
+ * Copyright 2002-2016 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 | 641c6428e88bbdd30fac591bf33b0e94f5751d6a.json | Add ContentTypeResolver strategy
A starting point for an alternative to the existing
ContentNegotiationStrategy but for use with ServerWebExchange. | spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/package-info.java | @@ -0,0 +1,5 @@
+/**
+ * This package provides support for various strategies to resolve the requested
+ * content type for a given request.
+ */
+package org.springframework.web.reactive.accept; | true |
Other | spring-projects | spring-framework | 641c6428e88bbdd30fac591bf33b0e94f5751d6a.json | Add ContentTypeResolver strategy
A starting point for an alternative to the existing
ContentNegotiationStrategy but for use with ServerWebExchange. | spring-web-reactive/src/test/java/org/springframework/web/reactive/accept/HeaderContentTypeResolverTests.java | @@ -0,0 +1,82 @@
+/*
+ * Copyright 2002-2016 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 | a7f32cd5280f78848017538cd824fc57122f6ce0.json | Add getQueryParams to ServerHttpRequest | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpRequest.java | @@ -17,14 +17,15 @@
import java.net.URI;
import java.net.URISyntaxException;
-import java.util.List;
-import java.util.Map;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
import org.springframework.http.HttpCookie;
import org.springframework.http.HttpHeaders;
-import org.springframework.util.... | true |
Other | spring-projects | spring-framework | a7f32cd5280f78848017538cd824fc57122f6ce0.json | Add getQueryParams to ServerHttpRequest | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ServerHttpRequest.java | @@ -16,9 +16,6 @@
package org.springframework.http.server.reactive;
-import java.util.List;
-import java.util.Map;
-
import org.springframework.http.HttpCookie;
import org.springframework.http.HttpRequest;
import org.springframework.http.ReactiveHttpInputMessage;
@@ -31,6 +28,11 @@
*/
public interface Server... | true |
Other | spring-projects | spring-framework | a7f32cd5280f78848017538cd824fc57122f6ce0.json | Add getQueryParams to ServerHttpRequest | spring-web-reactive/src/test/java/org/springframework/http/server/reactive/MockServerHttpRequest.java | @@ -36,6 +36,8 @@ public class MockServerHttpRequest implements ServerHttpRequest {
private URI uri;
+ private MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>();
+
private HttpHeaders headers = new HttpHeaders();
private MultiValueMap<String, HttpCookie> cookies = new LinkedMultiValueM... | true |
Other | spring-projects | spring-framework | a7f32cd5280f78848017538cd824fc57122f6ce0.json | Add getQueryParams to ServerHttpRequest | spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ServerHttpRequestTests.java | @@ -0,0 +1,79 @@
+/*
+ * Copyright 2002-2016 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 | bee1b77af59a7a23e364510764a74aa3593144f9.json | Manage asynchronous EventListener with replies
This commit makes sure to reject an `@EventListener` annotated method
that also uses `@Async`. In such scenario, the method is invoked in a
separate thread and the infrastructure has no handle on the actual reply,
if any.
The documentation has been improved to refer to t... | spring-context/src/main/java/org/springframework/context/event/ApplicationListenerMethodAdapter.java | @@ -35,8 +35,10 @@
import org.springframework.core.BridgeMethodResolver;
import org.springframework.core.ResolvableType;
import org.springframework.core.annotation.AnnotatedElementUtils;
+import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.core.annotation.Order;
import org.spring... | true |
Other | spring-projects | spring-framework | bee1b77af59a7a23e364510764a74aa3593144f9.json | Manage asynchronous EventListener with replies
This commit makes sure to reject an `@EventListener` annotated method
that also uses `@Async`. In such scenario, the method is invoked in a
separate thread and the infrastructure has no handle on the actual reply,
if any.
The documentation has been improved to refer to t... | spring-context/src/test/java/org/springframework/context/event/AnnotationDrivenEventListenerTests.java | @@ -155,6 +155,19 @@ public void methodSignatureNoEvent() {
failingContext.refresh();
}
+ @Test
+ public void asyncWithReplyEventListener() {
+ AnnotationConfigApplicationContext failingContext =
+ new AnnotationConfigApplicationContext();
+ failingContext.register(BasicConfiguration.class,
+ InvalidAsyn... | true |
Other | spring-projects | spring-framework | bee1b77af59a7a23e364510764a74aa3593144f9.json | Manage asynchronous EventListener with replies
This commit makes sure to reject an `@EventListener` annotated method
that also uses `@Async`. In such scenario, the method is invoked in a
separate thread and the infrastructure has no handle on the actual reply,
if any.
The documentation has been improved to refer to t... | src/asciidoc/core-beans.adoc | @@ -8208,11 +8208,42 @@ method signature to return the event that should be published, something like:
}
----
+NOTE: This feature is not supported for <<context-functionality-events-async,asynchronous
+listeners>>.
+
This new method will publish a new `ListUpdateEvent` for every `BlackListEvent` handled
by the m... | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/http/client/reactive/package-info.java | @@ -1,19 +1,3 @@
-/*
- * Copyright 2002-2016 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 | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/handler/package-info.java | @@ -1,20 +1,5 @@
-/*
- * Copyright 2002-2016 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 | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/method/annotation/package-info.java | @@ -1,20 +0,0 @@
-/*
- * Copyright 2002-2016 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 | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/method/package-info.java | @@ -1,20 +0,0 @@
-/*
- * Copyright 2002-2016 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 | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/package-info.java | @@ -1,20 +1,4 @@
-/*
- * Copyright 2002-2016 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 | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/SimpleResultHandler.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.handler;
+package org.springframework.web.reactive.result;
import java.util.Optional;
| true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/WebHandlerHandlerAdapter.java | @@ -14,14 +14,12 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.handler;
+package org.springframework.web.reactive.result;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Mono;
import org.springframework.core.ResolvableType;
-import org.springframework.... | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/HandlerMethodArgumentResolver.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.method;
+package org.springframework.web.reactive.result.method;
import reactor.core.publisher.Mono;
| true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/InvocableHandlerMethod.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.method;
+package org.springframework.web.reactive.result.method;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method; | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ModelArgumentResolver.java | @@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.springframework.web.reactive.method.annotation;
+package org.springframework.web.reactive.result.method.annotation;
import reactor.core.publisher.Mono;
import org.spring... | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolver.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.method.annotation;
+package org.springframework.web.reactive.result.method.annotation;
import java.util.List;
@@ -31,7 +31,7 @@
import org.springframework.ui.ModelMap;
import org.springframework.util.Assert;
im... | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerAdapter.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.method.annotation;
+package org.springframework.web.reactive.result.method.annotation;
import java.lang.reflect.Method;
import java.util.ArrayList;
@@ -45,8 +45,8 @@
import org.springframework.web.method.annotatio... | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerMapping.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.method.annotation;
+package org.springframework.web.reactive.result.method.annotation;
import java.util.Arrays;
import java.util.Collection; | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestParamArgumentResolver.java | @@ -14,14 +14,14 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.method.annotation;
+package org.springframework.web.reactive.result.method.annotation;
import reactor.core.publisher.Mono;
import org.springframework.core.MethodParameter;
import org.springframework.ui.ModelMa... | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandler.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.method.annotation;
+package org.springframework.web.reactive.result.method.annotation;
import java.util.ArrayList;
import java.util.Collections; | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/package-info.java | @@ -0,0 +1,4 @@
+/**
+ * Infrastructure for annotation-based handler method processing.
+ */
+package org.springframework.web.reactive.result.method.annotation; | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/package-info.java | @@ -0,0 +1,4 @@
+/**
+ * Infrastructure for handler method processing.
+ */
+package org.springframework.web.reactive.result.method; | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/package-info.java | @@ -0,0 +1,4 @@
+/**
+ * Provides various controller styles for request handling.
+ */
+package org.springframework.web.reactive.result; | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/test/java/org/springframework/core/codec/support/jaxb/package-info.java | @@ -1,18 +1,2 @@
-/*
- * Copyright 2002-2016 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 | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/test/java/org/springframework/web/reactive/DispatcherHandlerErrorTests.java | @@ -46,9 +46,9 @@
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
-import org.springframework.web.reactive.method.annotation.RequestMappingHandlerAdapter;
-import org.springframewor... | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/SimpleResultHandlerTests.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.handler;
+package org.springframework.web.reactive.result;
import java.util.concurrent.CompletableFuture;
@@ -29,6 +29,7 @@
import org.springframework.core.convert.support.ReactiveStreamsToRxJava1Converter;
impo... | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/WebHandlerIntegrationTests.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.handler;
+package org.springframework.web.reactive.result;
import java.net.URI;
import java.nio.charset.Charset;
@@ -38,6 +38,9 @@
import org.springframework.web.client.RestTemplate;
import org.springframework.we... | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/InvocableHandlerMethodTests.java | @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.springframework.web.reactive.method;
+package org.springframework.web.reactive.result.method;
import java.lang.reflect.Method;
import java.net.URI;
@@ -35,7 +35,7 @@
import... | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerMappingTests.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.method.annotation;
+package org.springframework.web.reactive.result.method.annotation;
import java.net.URI;
import java.util.List; | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingIntegrationTests.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.method.annotation;
+package org.springframework.web.reactive.result.method.annotation;
import java.net.URI;
import java.nio.ByteBuffer;
@@ -67,7 +67,7 @@
import org.springframework.web.client.RestTemplate;
import... | true |
Other | spring-projects | spring-framework | 341f23e0e666ce0a00090fe1cad91caa7cb5e97c.json | Add "result" package under ~.web.reactive
The new package is parallel to the "mvc" package under spring-webmvc
and a place to hold the various programming model styles. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandlerTests.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.web.reactive.method.annotation;
+package org.springframework.web.reactive.result.method.annotation;
import java.util.Collections;
| true |
Other | spring-projects | spring-framework | 38714b35e72ea57d7af4ba8d90c2a437e440d103.json | Update Javadoc external links | build.gradle | @@ -203,11 +203,12 @@ configure(allprojects) { project ->
"http://tiles.apache.org/tiles-request/apidocs/",
"http://tiles.apache.org/framework/apidocs/",
"http://www.eclipse.org/aspectj/doc/released/aspectj5rt-api/",
- "http://ehcache.org/apidocs/",
+ "http://ehcache.org/apidocs/${ehcacheVersion}",
+ "http:... | false |
Other | spring-projects | spring-framework | 7a5e93ff16622cbffeac31f514fad11a7102c2cd.json | Add support for setting the "Vary" response header
Issue: SPR-14070 | spring-web/src/main/java/org/springframework/http/HttpHeaders.java | @@ -38,6 +38,7 @@
import org.springframework.util.Assert;
import org.springframework.util.LinkedCaseInsensitiveMap;
import org.springframework.util.MultiValueMap;
+import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
/**
@@ -947,6 +948,24 @@ public String getUpgrade() {
re... | true |
Other | spring-projects | spring-framework | 7a5e93ff16622cbffeac31f514fad11a7102c2cd.json | Add support for setting the "Vary" response header
Issue: SPR-14070 | spring-web/src/main/java/org/springframework/http/ResponseEntity.java | @@ -332,6 +332,17 @@ public static BodyBuilder unprocessableEntity() {
*/
B cacheControl(CacheControl cacheControl);
+ /**
+ * Configure one or more request header names (e.g. "Accept-Language") to
+ * add to the "Vary" response header to inform clients that the response is
+ * subject to content negoti... | true |
Other | spring-projects | spring-framework | 7a5e93ff16622cbffeac31f514fad11a7102c2cd.json | Add support for setting the "Vary" response header
Issue: SPR-14070 | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/HttpEntityMethodProcessor.java | @@ -19,7 +19,10 @@
import java.io.IOException;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
+import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
+import java.util.Map;
import org.springframework.core.MethodParameter;
import org.springframework.core.Res... | true |
Other | spring-projects | spring-framework | 7a5e93ff16622cbffeac31f514fad11a7102c2cd.json | Add support for setting the "Vary" response header
Issue: SPR-14070 | spring-webmvc/src/main/java/org/springframework/web/servlet/support/WebContentGenerator.java | @@ -19,6 +19,7 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
+import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.concurrent.TimeUnit;
@@ -27,7 +28,9 @@
import javax.servlet.http.HttpServletResponse;
import org.springframe... | true |
Other | spring-projects | spring-framework | 7a5e93ff16622cbffeac31f514fad11a7102c2cd.json | Add support for setting the "Vary" response header
Issue: SPR-14070 | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/HttpEntityMethodProcessorMockTests.java | @@ -21,6 +21,7 @@
import java.nio.charset.Charset;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;
@@ -517,6 +518,47 @@ public void handleReturnValueIfNoneMatchIfUnmodifiedSince() throws Exception ... | true |
Other | spring-projects | spring-framework | 7a5e93ff16622cbffeac31f514fad11a7102c2cd.json | Add support for setting the "Vary" response header
Issue: SPR-14070 | spring-webmvc/src/test/java/org/springframework/web/servlet/support/WebContentGeneratorTests.java | @@ -15,17 +15,21 @@
*/
package org.springframework.web.servlet.support;
+import java.util.Arrays;
+
import org.junit.Test;
+import org.springframework.mock.web.test.MockHttpServletResponse;
+
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNull;
/**
* Unit tests for {@li... | true |
Other | spring-projects | spring-framework | 59c88eb3c0611aac802e162d53503ce71864baef.json | Support @Cache* as merged composed annotations
Prior to this commit, @Cacheable, @CacheEvict, @CachePut, and @Caching
could be used to create custom stereotype annotations with hardcoded
values for their attributes; however, it was not possible to create
composed annotations with attribute overrides.
This commit addr... | spring-context/src/main/java/org/springframework/cache/annotation/SpringCacheAnnotationParser.java | @@ -27,6 +27,7 @@
import org.springframework.cache.interceptor.CacheOperation;
import org.springframework.cache.interceptor.CachePutOperation;
import org.springframework.cache.interceptor.CacheableOperation;
+import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.core.annotatio... | true |
Other | spring-projects | spring-framework | 59c88eb3c0611aac802e162d53503ce71864baef.json | Support @Cache* as merged composed annotations
Prior to this commit, @Cacheable, @CacheEvict, @CachePut, and @Caching
could be used to create custom stereotype annotations with hardcoded
values for their attributes; however, it was not possible to create
composed annotations with attribute overrides.
This commit addr... | spring-context/src/test/java/org/springframework/cache/annotation/AnnotationCacheOperationSourceTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 the original author or authors.
+ * Copyright 2002-2016 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,7 +26,6 @@
import java.util.Collections... | true |
Other | spring-projects | spring-framework | 2a715e9c613a116b144338d69829d8c147a771ed.json | Fix escaping of #
This commit disables the "quotes" substitutions on specific XML
examples that require to use the reserved `#` character.
Issue: SPR-14074 | src/asciidoc/core-expressions.adoc | @@ -442,7 +442,7 @@ form `#{ <expression string> }`.
A property or constructor-arg value can be set using expressions as shown below.
[source,xml,indent=0]
-[subs="verbatim,quotes"]
+[subs="verbatim"]
----
<bean id="numberGuess" class="org.spring.samples.NumberGuess">
<property name="randomNumber" value="#{ T... | false |
Other | spring-projects | spring-framework | 11221f5ccb7c87316fec1d2960f9468446976f7c.json | Fix Javadoc errors in AnnotatedElementUtils | spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 the original author or authors.
+ * Copyright 2002-2016 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.
@@ -207,11 +207,11 @@ public Object process(Ann... | false |
Other | spring-projects | spring-framework | 411ff8450fbf386b5a88f01777ab1e49aaa33a8d.json | Refine tests for SPR-14066
Explicitly define the response type as text/plain to avoid content type
confusion.
Issue SPR-14066 | spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/MockMvcWebClientBuilderTests.java | @@ -139,7 +139,7 @@ public String contextPath(HttpServletRequest request) {
@RestController
static class CookieController {
- @RequestMapping("/")
+ @RequestMapping(value="/", produces="text/plain")
public String cookie(@CookieValue("cookie") String cookie) {
return cookie;
} | true |
Other | spring-projects | spring-framework | 411ff8450fbf386b5a88f01777ab1e49aaa33a8d.json | Refine tests for SPR-14066
Explicitly define the response type as text/plain to avoid content type
confusion.
Issue SPR-14066 | spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/webdriver/MockMvcHtmlUnitDriverBuilderTests.java | @@ -158,7 +158,7 @@ public String contextPath(HttpServletRequest request) {
@RestController
static class CookieController {
- @RequestMapping("/")
+ @RequestMapping(value="/", produces="text/plain")
public String cookie(@CookieValue("cookie") String cookie) {
return cookie;
} | true |
Other | spring-projects | spring-framework | 2153d8870692572a74f17dacacc1f5db83b3d9e8.json | Add TODO in AnnotatedElementUtilsTests
Issue: SPR-14069 | spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.java | @@ -891,7 +891,7 @@ static class MetaCycleAnnotatedClass {
@AliasFor(annotation = ContextConfig.class)
String[] locations() default {};
- // TODO Determine why transitive implicit alias does not work
+ // TODO [SPR-14069] Determine why transitive implicit alias does not work
// hoping to be able to omit: a... | false |
Other | spring-projects | spring-framework | 3ec6c0e42442aaaa2fa68e93fb68bec082dfae95.json | Update example copyright dates | CONTRIBUTING.md | @@ -81,7 +81,7 @@ present in the framework.
```java
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 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.
@@ -102,... | false |
Other | spring-projects | spring-framework | 644b0b8bebaff53022bb58c3417980965920d9ef.json | Fix Javadoc for CronSequenceGenerator
Closes gh-1294 | spring-context/src/main/java/org/springframework/scheduling/support/CronSequenceGenerator.java | @@ -42,7 +42,7 @@
* <li>"0 0 * * * *" = the top of every hour of every day.</li>
* <li>"*/10 * * * * *" = every ten seconds.</li>
* <li>"0 0 8-10 * * *" = 8, 9 and 10 o'clock of every day.</li>
- * <li>"0 * 6,19 * * *" = 6:00 AM and 7:00 PM every day.</li>
+ * <li>"0 0 6,19 * * *" = 6:00 AM and 7:00 PM every ... | false |
Other | spring-projects | spring-framework | e0100ea3f189e0ff56b5780d07e1dac159f57245.json | Update logging documentation to include Log4j 2
This also updates the version numbers provided in the sample pom.xml
snippets for configuring logging for SLF4J and Log4j 1.x. A sample
log4j2.xml file is also given with the same configuration as
demonstrated in the log4j.properties example. The link to the Log4j 1.x
si... | src/asciidoc/overview.adoc | @@ -736,22 +736,22 @@ implementation itself. In Maven you would do that like this
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
- <version>1.5.8</version>
+ <version>1.7.22</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4... | false |
Other | spring-projects | spring-framework | 264edb3fb5de63051e6a66a533e40dadee253ae0.json | Improve initialization of Assume class
Prior to this commit, the org.springframework.tests.Assume class could
fail to load resulting in a NoClassDefFoundError if parsing of the
'testGroups' system property failed. This is because the parsing took
place while initializing a static field.
This commit addresses this iss... | spring-core/src/test/java/org/springframework/tests/Assume.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 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,13 +28,14 @@
* conditions hold {@code ... | true |
Other | spring-projects | spring-framework | 264edb3fb5de63051e6a66a533e40dadee253ae0.json | Improve initialization of Assume class
Prior to this commit, the org.springframework.tests.Assume class could
fail to load resulting in a NoClassDefFoundError if parsing of the
'testGroups' system property failed. This is because the parsing took
place while initializing a static field.
This commit addresses this iss... | spring-core/src/test/java/org/springframework/tests/AssumeTests.java | @@ -0,0 +1,124 @@
+/*
+ * Copyright 2002-2017 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 | 264edb3fb5de63051e6a66a533e40dadee253ae0.json | Improve initialization of Assume class
Prior to this commit, the org.springframework.tests.Assume class could
fail to load resulting in a NoClassDefFoundError if parsing of the
'testGroups' system property failed. This is because the parsing took
place while initializing a static field.
This commit addresses this iss... | spring-core/src/test/java/org/springframework/tests/TestGroup.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 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.
@@ -31,6 +31,7 @@
* @see Assume#group(TestGro... | true |
Other | spring-projects | spring-framework | 264edb3fb5de63051e6a66a533e40dadee253ae0.json | Improve initialization of Assume class
Prior to this commit, the org.springframework.tests.Assume class could
fail to load resulting in a NoClassDefFoundError if parsing of the
'testGroups' system property failed. This is because the parsing took
place while initializing a static field.
This commit addresses this iss... | spring-core/src/test/java/org/springframework/tests/TestGroupTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 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,7 +18,6 @@
import java.util.Collectio... | true |
Other | spring-projects | spring-framework | 17525ef969f69074a5c406caf5ee98c47bee8a0d.json | Use Reactor BOM and dependency management plugin
Issue: SPR-15162 | build.gradle | @@ -6,13 +6,14 @@ buildscript {
dependencies {
classpath("org.springframework.build.gradle:propdeps-plugin:0.0.7")
classpath("org.asciidoctor:asciidoctor-gradle-plugin:1.5.3")
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.6"
+ classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.6")
classp... | false |
Other | spring-projects | spring-framework | 8417831602fb1f3ea873d88cd09090f878db73d3.json | Add accessor methods to HttpPutFormContentFilter
Issue: SPR-14503 | spring-web/src/main/java/org/springframework/web/filter/HttpPutFormContentFilter.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 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.
@@ -39,6 +39,7 @@
import org.springframework.h... | false |
Other | spring-projects | spring-framework | 613e65f043e36324577eed14e08da3d83b2fa520.json | Fix URL decoding issue in reactive @RequestParam
%-encoded strings were injected undecoded into @RequestParam variables,
which does not coincide with spring-webmvc behaviour. This commit
fixes AbstractServerHttpRequest.getQueryParams() to correctly return
decoded name-value pairs.
Issue: SPR-15140 | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpRequest.java | @@ -16,7 +16,10 @@
package org.springframework.http.server.reactive;
+import java.io.UnsupportedEncodingException;
import java.net.URI;
+import java.net.URLDecoder;
+import java.nio.charset.StandardCharsets;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -76,6 +79,22 @@ public MultiValueMa... | true |
Other | spring-projects | spring-framework | 613e65f043e36324577eed14e08da3d83b2fa520.json | Fix URL decoding issue in reactive @RequestParam
%-encoded strings were injected undecoded into @RequestParam variables,
which does not coincide with spring-webmvc behaviour. This commit
fixes AbstractServerHttpRequest.getQueryParams() to correctly return
decoded name-value pairs.
Issue: SPR-15140 | spring-web/src/test/java/org/springframework/http/server/reactive/ServerHttpRequestTests.java | @@ -64,6 +64,13 @@ public void queryParamsWithMulitpleValues() throws Exception {
assertEquals(Arrays.asList("1", "2"), params.get("a"));
}
+ @Test
+ public void queryParamsWithUrlEncodedValue() throws Exception {
+ MultiValueMap<String, String> params = createHttpRequest("/path?a=%20%2B+%C3%A0").getQueryParams... | true |
Other | spring-projects | spring-framework | 141e04aa0f43d221aa0a80569df70301fe294304.json | Fix URI construction in UndertowServerHttpRequest
Ensure there is no "?" at the end of the generated URI when there is
no query available. | spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpRequest.java | @@ -38,6 +38,7 @@
import org.springframework.util.Assert;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
+import org.springframework.util.StringUtils;
/**
* Adapt {@link ServerHttpRequest} to the Undertow {@link HttpServerExchange}.
@@ -63,9 +64,10 @@ public ... | false |
Other | spring-projects | spring-framework | 0c99346829b19a65fb435fb2557db3b2427de54b.json | Add SNI support in Netty4ClientHttpRequestFactory
This commit changes the `Bootstrap` to create a SSL Handler with
advisory peer information; this enables support for SNI.
Issue: SPR-15101 | spring-web/src/main/java/org/springframework/http/client/Netty4ClientHttpRequestFactory.java | @@ -48,6 +48,9 @@
* <p>Allows to use a pre-configured {@link EventLoopGroup} instance: useful for
* sharing across multiple clients.
*
+ * <p>Note that this implementation consistently closes the HTTP connection on each
+ * request.
+ *
* @author Arjen Poutsma
* @author Rossen Stoyanchev
* @author Brian Clo... | false |
Other | spring-projects | spring-framework | 62e530ec94fe2b9a60f15739356ef70065aa4371.json | Resolve minor 4.3.x deprecations in master
Issue: SPR-15139 | spring-expression/src/main/java/org/springframework/expression/spel/SpelMessage.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 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.
@@ -286,31 +286,6 @@ public String formatMessag... | true |
Other | spring-projects | spring-framework | 62e530ec94fe2b9a60f15739356ef70065aa4371.json | Resolve minor 4.3.x deprecations in master
Issue: SPR-15139 | spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/AbstractMethodArgumentResolutionException.java | @@ -1,49 +0,0 @@
-/*
- * Copyright 2002-2017 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 | 62e530ec94fe2b9a60f15739356ef70065aa4371.json | Resolve minor 4.3.x deprecations in master
Issue: SPR-15139 | spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/MethodArgumentNotValidException.java | @@ -18,6 +18,7 @@
import org.springframework.core.MethodParameter;
import org.springframework.messaging.Message;
+import org.springframework.messaging.handler.invocation.MethodArgumentResolutionException;
import org.springframework.validation.BindingResult;
import org.springframework.validation.ObjectError;
@@ ... | true |
Other | spring-projects | spring-framework | 62e530ec94fe2b9a60f15739356ef70065aa4371.json | Resolve minor 4.3.x deprecations in master
Issue: SPR-15139 | spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/MethodArgumentTypeMismatchException.java | @@ -18,15 +18,16 @@
import org.springframework.core.MethodParameter;
import org.springframework.messaging.Message;
+import org.springframework.messaging.handler.invocation.MethodArgumentResolutionException;
/**
* Exception that indicates that a method argument has not the expected type.
*
* @author Stephan... | true |
Other | spring-projects | spring-framework | 9d4c6e4d06c4f888166a8b0edc988037e715fe85.json | Add table title for @Transactional settings
Closes gh-985 | src/asciidoc/data-access.adoc | @@ -1296,7 +1296,7 @@ These default settings can be changed; the various properties of the `@Transacti
annotation are summarized in the following table:
[[tx-attransactional-properties]]
-.@
+.@Transactional Settings
|===
| Property| Type| Description
| false |
Other | spring-projects | spring-framework | f1622569065374352b44a8e8dee9a16bbacef5a7.json | Use ContentNegotiationManager for static resources
The ResourceHttpRequestHandler now relies on the conifgured
ContentNegotiationManager to determine the content type for resource
requests rather than implementing that internally.
First we check against the matched resource based on the resource file
extension. Then ... | spring-web/src/main/java/org/springframework/web/accept/ContentNegotiationManager.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 the original author or authors.
+ * Copyright 2002-2016 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.
@@ -96,6 +96,22 @@ public List<ContentNegotiati... | true |
Other | spring-projects | spring-framework | f1622569065374352b44a8e8dee9a16bbacef5a7.json | Use ContentNegotiationManager for static resources
The ResourceHttpRequestHandler now relies on the conifgured
ContentNegotiationManager to determine the content type for resource
requests rather than implementing that internally.
First we check against the matched resource based on the resource file
extension. Then ... | spring-web/src/main/java/org/springframework/web/accept/PathExtensionContentNegotiationStrategy.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 the original author or authors.
+ * Copyright 2002-2016 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.
@@ -30,6 +30,7 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | f1622569065374352b44a8e8dee9a16bbacef5a7.json | Use ContentNegotiationManager for static resources
The ResourceHttpRequestHandler now relies on the conifgured
ContentNegotiationManager to determine the content type for resource
requests rather than implementing that internally.
First we check against the matched resource based on the resource file
extension. Then ... | spring-web/src/main/java/org/springframework/web/accept/ServletPathExtensionContentNegotiationStrategy.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 the original author or authors.
+ * Copyright 2002-2016 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,6 +18,7 @@
import java.util.Map;
impor... | true |
Other | spring-projects | spring-framework | f1622569065374352b44a8e8dee9a16bbacef5a7.json | Use ContentNegotiationManager for static resources
The ResourceHttpRequestHandler now relies on the conifgured
ContentNegotiationManager to determine the content type for resource
requests rather than implementing that internally.
First we check against the matched resource based on the resource file
extension. Then ... | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodProcessor.java | @@ -43,7 +43,6 @@
import org.springframework.util.StringUtils;
import org.springframework.web.HttpMediaTypeNotAcceptableException;
import org.springframework.web.accept.ContentNegotiationManager;
-import org.springframework.web.accept.ContentNegotiationStrategy;
import org.springframework.web.accept.PathExtensionCo... | true |
Other | spring-projects | spring-framework | f1622569065374352b44a8e8dee9a16bbacef5a7.json | Use ContentNegotiationManager for static resources
The ResourceHttpRequestHandler now relies on the conifgured
ContentNegotiationManager to determine the content type for resource
requests rather than implementing that internally.
First we check against the matched resource based on the resource file
extension. Then ... | spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java | @@ -23,8 +23,6 @@
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.List;
-import javax.activation.FileTypeMap;
-import javax.activation.MimetypesFileTypeMap;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
@@ -3... | true |
Other | spring-projects | spring-framework | f1622569065374352b44a8e8dee9a16bbacef5a7.json | Use ContentNegotiationManager for static resources
The ResourceHttpRequestHandler now relies on the conifgured
ContentNegotiationManager to determine the content type for resource
requests rather than implementing that internally.
First we check against the matched resource based on the resource file
extension. Then ... | spring-webmvc/src/test/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandlerTests.java | @@ -42,11 +42,14 @@
import org.springframework.core.io.UrlResource;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
+import org.springframework.http.MediaType;
import org.springframework.mock.web.test.MockHttpServletRequest;
import org.springframework.mock.web.test.MockHttpS... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.