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
adc50bbfb9e95e742c36ee3e99c1550e6638bcfa.json
Add handler method parameter and result converters This commit introduces the following changes: - Publisher -> Observable/Stream/etc. conversion is now managed in a dedicated ConversionService instead of directly in RequestBodyArgumentResolver and ResponseBodyResultHandler - More isolated logic that decides...
spring-web-reactive/src/test/java/org/springframework/reactive/web/dispatch/method/annotation/ResponseBodyResultHandlerTests.java
@@ -44,7 +44,7 @@ public void supports() throws NoSuchMethodException { assertTrue(resultHandler.supports(new HandlerResult(publisherStringMethod, null))); HandlerMethod publisherVoidMethod = new HandlerMethod(controller, TestController.class.getMethod("publisherVoid")); - assertFalse(resultHandler.supports(ne...
true
Other
spring-projects
spring-framework
5ac57e8ea6044d07435542e932335764bbce97bb.json
Restore compatibility with WildFly Issue: SPR-13619
spring-websocket/src/main/java/org/springframework/web/socket/server/standard/UndertowRequestUpgradeStrategy.java
@@ -33,6 +33,7 @@ import javax.websocket.Extension; import javax.websocket.server.ServerEndpointConfig; +import io.undertow.server.HttpServerExchange; import io.undertow.server.HttpUpgradeListener; import io.undertow.servlet.api.InstanceFactory; import io.undertow.servlet.api.InstanceHandle; @@ -51,6 +52,7 @@ i...
false
Other
spring-projects
spring-framework
0579e61a653ea81a3a5ef3dffd94fb5c4579028d.json
Add API to register collection converters Previously, the only way to add the collection converters to a registry was to add *all* default converters. A new "addCollectionConverters" public method is now available to only register them. Issue: SPR-13618
spring-core/src/main/java/org/springframework/core/convert/support/DefaultConversionService.java
@@ -88,6 +88,41 @@ public static void addDefaultConverters(ConverterRegistry converterRegistry) { } } + /** + * Add collection converters. + * @param converterRegistry the registry of converters to add to (must also be castable to ConversionService, + * e.g. being a {@link ConfigurableConversionService}) + *...
false
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
build.gradle
@@ -1169,9 +1169,8 @@ configure(rootProject) { backends = ['docbook'] options doctype: 'book', eruby: 'erubis' attributes 'spring-version': project.version, - 'javadoc-baseurl' : "http://docs.spring.io/spring/docs/current/javadoc-api", - revnumber : project.version, - docinfo : "" + 'revnumber...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/Guardfile
@@ -8,9 +8,9 @@ FileUtils.cp_r('images','build') guard 'shell' do watch(/^.*\.adoc$/) {|m| if m[0] != "index.adoc" - Asciidoctor.render_file(m[0], :to_dir => "build", :safe => Asciidoctor::SafeMode::UNSAFE, :attributes=> {'idprefix' => '', 'idseparator' => '-', 'copycss' => '', 'icons' => 'font', 'source-high...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/appendix.adoc
@@ -4,13 +4,13 @@ [[migration-4.x]] == Migrating to Spring Framework 4.x Migration guides for upgrading from previous releases of the Spring Framework are now provided as a -https://github.com/spring-projects/spring-framework/wiki/Migrating-from-earlier-versions-of-the-spring-framework[Wiki page]. +{wiki-spring-fram...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/core-beans.adoc
@@ -17,10 +17,10 @@ construction of classes, or a mechanism such as the __Service Locator__ pattern. The `org.springframework.beans` and `org.springframework.context` packages are the basis for Spring Framework's IoC container. The -{javadoc-baseurl}/org/springframework/beans/factory/BeanFactory.html[`BeanFactory`]...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/core-validation.adoc
@@ -191,9 +191,9 @@ convenience to aid developers in targeting error messages and suchlike. More information on the `MessageCodesResolver` and the default strategy can be found online in the javadocs of -{javadoc-baseurl}/org/springframework/validation/MessageCodesResolver.html[`MessageCodesResolver`] +{api-spring-...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/data-access.adoc
@@ -7179,7 +7179,7 @@ unmarshal XML from an external source, set the `supportedClasses` property on th This will make sure that only the registered classes are eligible for unmarshalling. Additionally, you can register -{javadoc-baseurl}/org/springframework/oxm/xstream/XStreamMarshaller.html#setConverters(com.thoug...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/index.adoc
@@ -1,6 +1,16 @@ = Spring Framework Reference Documentation Rod Johnson; Juergen Hoeller; Keith Donald; Colin Sampaleanu; Rob Harrop; Thomas Risberg; Alef Arendsen; Darren Davison; Dmitriy Kopylenko; Mark Pollack; Thierry Templier; Erwin Vervaet; Portia Tung; Ben Hale; Adrian Colyer; John Lewis; Costin Leau; Mark Fis...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/integration.adoc
@@ -879,8 +879,8 @@ proxy will take care of forwarding the call to the server-side object via JMS. [[remoting-amqp]] === AMQP -Refer to the http://docs.spring.io/spring-amqp/reference/html/amqp.html#remoting[Spring -AMQP Reference Document 'Spring Remoting with AMQP' section] for more information. +Refer to the {do...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/testing.adoc
@@ -3760,7 +3760,7 @@ instrumenting your test class with a `TestContextManager`. See the source code o The __Spring MVC Test framework__ provides first class support for testing Spring MVC code using a fluent API that can be used with JUnit, TestNG, or any other testing framework. It's built on the -http://docs.spri...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/web-cors.adoc
@@ -19,7 +19,7 @@ As of Spring Framework 4.2, CORS is supported out of the box. CORS requests (https://github.com/spring-projects/spring-framework/blob/master/spring-webmvc/src/main/java/org/springframework/web/servlet/FrameworkServlet.java#L906[including preflight ones with an `OPTIONS` method]) are automatically di...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/web-integration.adoc
@@ -83,7 +83,7 @@ context'). This section details how one configures a Spring container (a `WebApplicationContext`) that contains all of the 'business beans' in one's application. On to specifics: all that one need do is to declare a -{javadoc-baseurl}/org/springframework/web/context/ContextLoaderListener.html[`Con...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/web-mvc.adoc
@@ -1425,7 +1425,7 @@ JSON, XML or custom MediaType content. For convenience, instead of annotating al `@RequestMapping` methods with `@ResponseBody`, you can annotate your Controller Class with `@RestController`. -{javadoc-baseurl}/org/springframework/web/bind/annotation/RestController.html[`@RestController`] +{ap...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/web-view.adoc
@@ -233,7 +233,7 @@ inline properties. ---- Refer to the -{javadoc-baseurl}/org/springframework/ui/velocity/VelocityEngineFactory.html[API +{api-spring-framework}/ui/velocity/VelocityEngineFactory.html[API documentation] for Spring configuration of Velocity, or the Velocity documentation for examples and definiti...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/web-websocket.adoc
@@ -266,7 +266,7 @@ The above is for use in Spring MVC applications and should be included in the configuration of a <<mvc-servlet,DispatcherServlet>>. However, Spring's WebSocket support does not depend on Spring MVC. It is relatively simple to integrate a `WebSocketHandler` into other HTTP serving environments wit...
true
Other
spring-projects
spring-framework
9bed389d1f74a5dd992e9440f5e5b82c8d77542f.json
Harmonize javadoc urls in developer guide Issue: SPR-13613
src/asciidoc/whats-new.adoc
@@ -14,8 +14,8 @@ support Java 8 features. You can still use Spring with older versions of Java, h the minimum requirement has now been raised to Java SE 6. We have also taken the opportunity of a major release to remove many deprecated classes and methods. -A https://github.com/spring-projects/spring-framework/wik...
true
Other
spring-projects
spring-framework
1c382be00e39060a0a4005d80098365f2bee45d4.json
Expose build method in SseEventBuilder Issue: SPR-13591
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseBodyEmitter.java
@@ -241,9 +241,10 @@ interface Handler { /** - * Simple struct for a data entry. + * A simple holder of data to be written along with a MediaType hint for + * selecting a message converter to write with. */ - static class DataWithMediaType { + public static class DataWithMediaType { private final Objec...
true
Other
spring-projects
spring-framework
1c382be00e39060a0a4005d80098365f2bee45d4.json
Expose build method in SseEventBuilder Issue: SPR-13591
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/SseEmitter.java
@@ -117,7 +117,7 @@ public void send(Object object, MediaType mediaType) throws IOException { * @throws IOException raised when an I/O error occurs */ public void send(SseEventBuilder builder) throws IOException { - Set<DataWithMediaType> dataToSend = ((SseEventBuilderImpl) builder).build(); + Set<DataWithMed...
true
Other
spring-projects
spring-framework
0039c74649c1dc0aa482373a53ef6cba2364a851.json
Add a note on JmsListenerEndpointRegistry Issue: SPR-13606
src/asciidoc/integration.adoc
@@ -2602,7 +2602,9 @@ what the <<jms-receiving-async-message-listener-adapter, `MessageListenerAdapter provides). The annotated endpoint infrastructure creates a message listener container -behind the scenes for each annotated method, using a `JmsListenerContainerFactory`. +behind the scenes for each annotated meth...
false
Other
spring-projects
spring-framework
e7adc6810b823ca4528c1f1848abc1ce07b11ef5.json
Fix broken link in Web MVC chapter
src/asciidoc/web-mvc.adoc
@@ -4530,7 +4530,7 @@ in addition to the JavaBeans PropertyEditors used for Data Binding. through the `ConversionService`. . Support for <<format,formatting>> Date, Calendar, Long, and Joda Time fields using the `@DateTimeFormat` annotation. -. Support for <<validation-mvc-jsr303,validating>> `@Controller` inputs wi...
false
Other
spring-projects
spring-framework
6a4cc7e681c1d5c37788dd5ebdaa5b1996cca39a.json
Fix typos in Web MVC chapter
src/asciidoc/web-mvc.adoc
@@ -4695,7 +4695,7 @@ plugged into Spring MVC as a global validator as described next. By default use of `@EnableWebMvc` or `<mvc:annotation-driven>` automatically registers Bean Validation support in Spring MVC through the `LocalValidatorFactoryBean` when a Bean Validation -provider is such as Hibernate Validator ...
false
Other
spring-projects
spring-framework
b11bef7a26bb7733868df2b92d6e0f41856d71d6.json
Eliminate need for rxJava in Json Encoder
spring-web-reactive/src/main/java/org/springframework/reactive/codec/encoder/JsonObjectEncoder.java
@@ -16,48 +16,94 @@ package org.springframework.reactive.codec.encoder; -import java.nio.ByteBuffer; - import org.reactivestreams.Publisher; -import reactor.rx.Promise; -import rx.Observable; -import rx.RxReactiveStreams; - +import org.reactivestreams.Subscriber; import org.springframework.core.ResolvableType; ...
false
Other
spring-projects
spring-framework
69d4eaaa3cd9816b5f1338871fa871ad6a93def8.json
Use PublisherFactory from reactor-core
spring-web-reactive/build.gradle
@@ -22,6 +22,7 @@ dependencies { compile "org.springframework:spring-core:4.2.0.RELEASE" compile "org.springframework:spring-web:4.2.0.RELEASE" compile "org.reactivestreams:reactive-streams:1.0.0" + compile "io.projectreactor:reactor-core:2.0.5.RELEASE" compile "org.slf4j:slf4j-api:1.7.6" compile "ch.qos.logb...
true
Other
spring-projects
spring-framework
69d4eaaa3cd9816b5f1338871fa871ad6a93def8.json
Use PublisherFactory from reactor-core
spring-web-reactive/src/main/java/org/springframework/reactive/web/DispatcherHttpHandler.java
@@ -21,6 +21,8 @@ import org.reactivestreams.Publisher; import org.reactivestreams.Subscriber; import org.reactivestreams.Subscription; +import reactor.core.reactivestreams.PublisherFactory; +import reactor.core.reactivestreams.SubscriberWithContext; import org.springframework.beans.factory.BeanFactoryUtils; imp...
true
Other
spring-projects
spring-framework
69d4eaaa3cd9816b5f1338871fa871ad6a93def8.json
Use PublisherFactory from reactor-core
spring-web-reactive/src/test/java/org/springframework/reactive/web/DispatcherApp.java
@@ -24,6 +24,7 @@ import org.reactivestreams.Publisher; import org.reactivestreams.Subscriber; import org.reactivestreams.Subscription; +import reactor.core.reactivestreams.PublisherFactory; import org.springframework.http.MediaType; import org.springframework.reactive.web.rxnetty.RequestHandlerAdapter; @@ -80,2...
true
Other
spring-projects
spring-framework
773d0444bf0834345a085616b8808a7e6c1925b1.json
Add request handling infrastructure HandlerMapping, HandlerAdapter, HandlerResultHandler (+ HandlerResult) as the basic request handling contracts. DispatcherHandler to drive overall request handling. DispatcherApp provides minimal implementations of the above contracts enough to put together a running example that r...
spring-web-reactive/src/main/java/org/springframework/reactive/web/DispatcherHttpHandler.java
@@ -0,0 +1,169 @@ +/* + * Copyright 2002-2015 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
773d0444bf0834345a085616b8808a7e6c1925b1.json
Add request handling infrastructure HandlerMapping, HandlerAdapter, HandlerResultHandler (+ HandlerResult) as the basic request handling contracts. DispatcherHandler to drive overall request handling. DispatcherApp provides minimal implementations of the above contracts enough to put together a running example that r...
spring-web-reactive/src/main/java/org/springframework/reactive/web/HandlerAdapter.java
@@ -0,0 +1,29 @@ +/* + * Copyright 2002-2015 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
773d0444bf0834345a085616b8808a7e6c1925b1.json
Add request handling infrastructure HandlerMapping, HandlerAdapter, HandlerResultHandler (+ HandlerResult) as the basic request handling contracts. DispatcherHandler to drive overall request handling. DispatcherApp provides minimal implementations of the above contracts enough to put together a running example that r...
spring-web-reactive/src/main/java/org/springframework/reactive/web/HandlerMapping.java
@@ -0,0 +1,25 @@ +/* + * Copyright 2002-2015 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
773d0444bf0834345a085616b8808a7e6c1925b1.json
Add request handling infrastructure HandlerMapping, HandlerAdapter, HandlerResultHandler (+ HandlerResult) as the basic request handling contracts. DispatcherHandler to drive overall request handling. DispatcherApp provides minimal implementations of the above contracts enough to put together a running example that r...
spring-web-reactive/src/main/java/org/springframework/reactive/web/HandlerResult.java
@@ -0,0 +1,35 @@ +/* + * Copyright 2002-2015 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
773d0444bf0834345a085616b8808a7e6c1925b1.json
Add request handling infrastructure HandlerMapping, HandlerAdapter, HandlerResultHandler (+ HandlerResult) as the basic request handling contracts. DispatcherHandler to drive overall request handling. DispatcherApp provides minimal implementations of the above contracts enough to put together a running example that r...
spring-web-reactive/src/main/java/org/springframework/reactive/web/HandlerResultHandler.java
@@ -0,0 +1,29 @@ +/* + * Copyright 2002-2015 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
773d0444bf0834345a085616b8808a7e6c1925b1.json
Add request handling infrastructure HandlerMapping, HandlerAdapter, HandlerResultHandler (+ HandlerResult) as the basic request handling contracts. DispatcherHandler to drive overall request handling. DispatcherApp provides minimal implementations of the above contracts enough to put together a running example that r...
spring-web-reactive/src/test/java/org/springframework/reactive/web/DispatcherApp.java
@@ -0,0 +1,233 @@ +/* + * Copyright 2002-2015 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
f486324b42def9868bc496df95127dce059318db.json
Add link to docs Closes gh-844
spring-framework-bom/spring-framework-bom.txt
@@ -1,2 +1,4 @@ This meta-project is used to generate a bill-of-materials POM that contains the other projects in a dependencyManagement section. + +<http://docs.spring.io/spring-framework/docs/current/spring-framework-reference/html/overview.html#overview-maven-bom>
false
Other
spring-projects
spring-framework
d5944c4e398a288ff416a51ab35871024d612804.json
Increase randomness in SocketUtils
spring-core/src/main/java/org/springframework/util/SocketUtils.java
@@ -19,7 +19,7 @@ import java.net.DatagramSocket; import java.net.InetAddress; import java.net.ServerSocket; -import java.util.Random; +import java.security.SecureRandom; import java.util.SortedSet; import java.util.TreeSet; import javax.net.ServerSocketFactory; @@ -53,9 +53,6 @@ public class SocketUtils { publ...
false
Other
spring-projects
spring-framework
c572d0c46972dafd6b53b3a8f2fcacfc426b7cf7.json
Increase timeout in StompWebSocketIntegrationTests ... with hope of reducing the fragility of these tests on the CI server.
spring-websocket/src/test/java/org/springframework/web/socket/messaging/StompWebSocketIntegrationTests.java
@@ -16,11 +16,8 @@ package org.springframework.web.socket.messaging; -import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; -import java.util.Arrays; import java.util.List; import java.util.concurrent.Co...
false
Other
spring-projects
spring-framework
93919204a166b306aef5dfb50ccc1b02decbc5ae.json
Add missing @since tag Issue: SPR-12801
spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcCallOperations.java
@@ -104,6 +104,7 @@ public interface SimpleJdbcCallOperations { /** * Indicates that parameters should be bound by name. * @return the instance of this SimpleJdbcCall + * @since 4.2 */ SimpleJdbcCallOperations withNamedBinding();
false
Other
spring-projects
spring-framework
8afea1bc784b2dd75af0f0db90b0c3c659139a0c.json
Add tests to JsonPathExpectationsHelperTests
spring-test/src/test/java/org/springframework/test/util/JsonPathExpectationsHelperTests.java
@@ -31,15 +31,96 @@ */ public class JsonPathExpectationsHelperTests { + private static final String CONTENT = "{" + // + "\"str\": \"foo\"," + // + "\"nr\": 5," + // + "\"bool\": true," + // + "\"arr\": [\"bar\"],"...
false
Other
spring-projects
spring-framework
b5a67071371124b0e672e4396262a21377a79ce8.json
Fix layout in What's New section
src/asciidoc/whats-new.adoc
@@ -424,6 +424,9 @@ method has been added. `@EventListener`, `@TransactionalEventListener`. ** For example, `@ContextConfiguration` from the `spring-test` module is now declared as follows: + ++ + [source,java,indent=0] [subs="verbatim,quotes"] ---- @@ -438,13 +441,19 @@ public @interface ContextConfigurati...
false
Other
spring-projects
spring-framework
c682895deeaf2f03d9c6b60e1f4da0a469ba796a.json
Add RxNetty support This commit adds RxNetty integration that includes RxNetty-based implementations of ServerHttpRequest and ServerHttpResponse as well as an adapter from the RxNetty RequestHandler to the HttpHandler contracts. Only byte[] is supported at the moment for reading and writing with a corresponding copy ...
spring-web-reactive/build.gradle
@@ -15,6 +15,7 @@ apply plugin: 'propdeps-maven' repositories { mavenCentral() + maven { url 'https://oss.jfrog.org/libs-snapshot' } // RxNetty 0.5.x snapshots } dependencies { @@ -24,6 +25,9 @@ dependencies { compile "org.slf4j:slf4j-api:1.7.6" compile "ch.qos.logback:logback-classic:1.1.2" + optional ...
true
Other
spring-projects
spring-framework
c682895deeaf2f03d9c6b60e1f4da0a469ba796a.json
Add RxNetty support This commit adds RxNetty integration that includes RxNetty-based implementations of ServerHttpRequest and ServerHttpResponse as well as an adapter from the RxNetty RequestHandler to the HttpHandler contracts. Only byte[] is supported at the moment for reading and writing with a corresponding copy ...
spring-web-reactive/src/main/java/org/springframework/reactive/web/rxnetty/RequestHandlerAdapter.java
@@ -0,0 +1,50 @@ +/* + * Copyright 2002-2015 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
c682895deeaf2f03d9c6b60e1f4da0a469ba796a.json
Add RxNetty support This commit adds RxNetty integration that includes RxNetty-based implementations of ServerHttpRequest and ServerHttpResponse as well as an adapter from the RxNetty RequestHandler to the HttpHandler contracts. Only byte[] is supported at the moment for reading and writing with a corresponding copy ...
spring-web-reactive/src/main/java/org/springframework/reactive/web/rxnetty/RxNettyServerHttpRequest.java
@@ -0,0 +1,86 @@ +/* + * Copyright 2002-2015 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
c682895deeaf2f03d9c6b60e1f4da0a469ba796a.json
Add RxNetty support This commit adds RxNetty integration that includes RxNetty-based implementations of ServerHttpRequest and ServerHttpResponse as well as an adapter from the RxNetty RequestHandler to the HttpHandler contracts. Only byte[] is supported at the moment for reading and writing with a corresponding copy ...
spring-web-reactive/src/main/java/org/springframework/reactive/web/rxnetty/RxNettyServerHttpResponse.java
@@ -0,0 +1,72 @@ +/* + * Copyright 2002-2015 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
c682895deeaf2f03d9c6b60e1f4da0a469ba796a.json
Add RxNetty support This commit adds RxNetty integration that includes RxNetty-based implementations of ServerHttpRequest and ServerHttpResponse as well as an adapter from the RxNetty RequestHandler to the HttpHandler contracts. Only byte[] is supported at the moment for reading and writing with a corresponding copy ...
spring-web-reactive/src/test/java/org/springframework/reactive/web/rxnetty/HttpHandlerRxNettyIntegrationTests.java
@@ -0,0 +1,46 @@ +/* + * Copyright 2002-2015 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
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/build.gradle
@@ -19,14 +19,14 @@ repositories { dependencies { compile "org.springframework:spring-core:4.2.0.RELEASE" + compile "org.springframework:spring-web:4.2.0.RELEASE" compile "org.reactivestreams:reactive-streams:1.0.0" compile "org.slf4j:slf4j-api:1.7.6" compile "ch.qos.logback:logback-classic:1.1.2" provid...
true
Other
spring-projects
spring-framework
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/main/java/org/springframework/reactive/web/HttpHandler.java
@@ -20,9 +20,10 @@ /** * @author Arjen Poutsma + * @author Rossen Stoyanchev */ public interface HttpHandler { - Publisher<byte[]> handle(Publisher<byte[]> request); + Publisher<Void> handle(ServerHttpRequest request, ServerHttpResponse response); }
true
Other
spring-projects
spring-framework
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/main/java/org/springframework/reactive/web/HttpMessage.java
@@ -0,0 +1,30 @@ +/* + * Copyright 2002-2015 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
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/main/java/org/springframework/reactive/web/HttpRequest.java
@@ -0,0 +1,32 @@ +/* + * Copyright 2002-2015 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
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/main/java/org/springframework/reactive/web/ServerHttpRequest.java
@@ -0,0 +1,28 @@ +/* + * Copyright 2002-2015 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
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/main/java/org/springframework/reactive/web/ServerHttpResponse.java
@@ -0,0 +1,31 @@ +/* + * Copyright 2002-2015 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
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/main/java/org/springframework/reactive/web/servlet/AsyncContextSynchronizer.java
@@ -97,4 +97,9 @@ public void writeComplete() { this.complete.compareAndSet(NONE_COMPLETE, WRITE_COMPLETE); } } + + public void complete() { + readComplete(); + writeComplete(); + } }
true
Other
spring-projects
spring-framework
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/main/java/org/springframework/reactive/web/servlet/HttpHandlerServlet.java
@@ -24,41 +24,82 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.reactivestreams.Publisher; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.reactivestreams.Subscriber; +import org.reactivestreams.Subscript...
true
Other
spring-projects
spring-framework
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/main/java/org/springframework/reactive/web/servlet/ServletServerHttpRequest.java
@@ -0,0 +1,119 @@ +/* + * Copyright 2002-2015 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
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/main/java/org/springframework/reactive/web/servlet/ServletServerHttpResponse.java
@@ -0,0 +1,88 @@ +/* + * Copyright 2002-2015 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
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/test/java/org/springframework/reactive/web/AbstractHttpHandlerIntegrationTestCase.java
@@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.reactive.web.servlet; +package org.springframework.reactive.web; import java.net.URI; import java.util.Random; @@ -29,7 +29,7 @@ import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; ...
true
Other
spring-projects
spring-framework
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/test/java/org/springframework/reactive/web/CountingHttpHandler.java
@@ -30,8 +30,8 @@ public class CountingHttpHandler implements HttpHandler { private static final Log logger = LogFactory.getLog(CountingHttpHandler.class); @Override - public Publisher<byte[]> handle(Publisher<byte[]> request) { - request.subscribe(new Subscriber<byte[]>() { + public Publisher<Void> handle(Serve...
true
Other
spring-projects
spring-framework
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/test/java/org/springframework/reactive/web/EchoHandler.java
@@ -24,7 +24,7 @@ public class EchoHandler implements HttpHandler { @Override - public Publisher<byte[]> handle(Publisher<byte[]> request) { - return request; + public Publisher<Void> handle(ServerHttpRequest request, ServerHttpResponse response) { + return response.writeWith(request.getBody()); } }
true
Other
spring-projects
spring-framework
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/test/java/org/springframework/reactive/web/servlet/HttpHandlerJettyIntegrationTests.java
@@ -23,13 +23,14 @@ import org.junit.AfterClass; import org.junit.BeforeClass; +import org.springframework.reactive.web.AbstractHttpHandlerIntegrationTestCase; import org.springframework.reactive.web.EchoHandler; /** * @author Arjen Poutsma */ -public class HttpHandlerServletJettyIntegrationTests - extends...
true
Other
spring-projects
spring-framework
2cb32a0fd69c528d55d3d53ae98bf886dcb4a5f9.json
Add ServerHttpRequest & ServerHttpResponse This commit introduces HTTP request and response abstractions along with Servlet-based implementations similar to the ones in the http package of spring-web but using Reactive Streams. In turn HttpHandler now accepts the request and response types and returns Publisher<Void>...
spring-web-reactive/src/test/java/org/springframework/reactive/web/servlet/HttpHandlerTomcatIntegrationTests.java
@@ -24,12 +24,13 @@ import org.junit.AfterClass; import org.junit.BeforeClass; +import org.springframework.reactive.web.AbstractHttpHandlerIntegrationTestCase; import org.springframework.reactive.web.EchoHandler; /** * @author Arjen Poutsma */ -public class HttpHandlerServletTomcatIntegrationTests extends A...
true
Other
spring-projects
spring-framework
bb2526752597d1c29fea939b93841a490f5821bf.json
Fix whitespaces in build.gradle
spring-web-reactive/build.gradle
@@ -1,10 +1,10 @@ buildscript { - repositories { - maven { url 'http://repo.springsource.org/plugins-release' } - } - dependencies { - classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.7' - } + repositories { + maven { url 'http://repo.springsource.org/plugins-release' } + } + ...
false
Other
spring-projects
spring-framework
f17173f6d5fb167db1c0a6905c23e52caace939b.json
Synthesize nested maps into annotations Prior to this commit, attempting to synthesize an annotation from a map of annotation attributes that contained nested maps instead of nested annotations would result in an exception. This commit addresses this issue by properly synthesizing nested maps and nested arrays of map...
spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java
@@ -1242,7 +1242,9 @@ public static <A extends Annotation> A synthesizeAnnotation(A annotation, Annota * that are annotated with {@link AliasFor @AliasFor}. * <p>The supplied map must contain a key-value pair for every attribute * defined in the supplied {@code annotationType} that is not aliased or - * does ...
true
Other
spring-projects
spring-framework
f17173f6d5fb167db1c0a6905c23e52caace939b.json
Synthesize nested maps into annotations Prior to this commit, attempting to synthesize an annotation from a map of annotation attributes that contained nested maps instead of nested annotations would result in an exception. This commit addresses this issue by properly synthesizing nested maps and nested arrays of map...
spring-core/src/main/java/org/springframework/core/annotation/MapAnnotationAttributeExtractor.java
@@ -74,20 +74,24 @@ protected Object getRawAttributeValue(String attributeName) { /** - * Enrich and validate the supplied {@code attributes} map by ensuring + * Enrich and validate the supplied <em>attributes</em> map by ensuring * that it contains a non-null entry for each annotation attribute in * the ...
true
Other
spring-projects
spring-framework
f17173f6d5fb167db1c0a6905c23e52caace939b.json
Synthesize nested maps into annotations Prior to this commit, attempting to synthesize an annotation from a map of annotation attributes that contained nested maps instead of nested annotations would result in an exception. This commit addresses this issue by properly synthesizing nested maps and nested arrays of map...
spring-core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java
@@ -883,6 +883,64 @@ public void synthesizeAnnotationFromMapWithoutAttributeAliases() throws Exceptio assertEquals("value from synthesized component: ", "webController", synthesizedComponent.value()); } + @Test + @SuppressWarnings("unchecked") + public void synthesizeAnnotationFromMapWithNestedMap() throws Excep...
true
Other
spring-projects
spring-framework
b7e75c5db472d22a619739a55331f5423a510ee7.json
Fix websocket compatibility with Tyrus 1.9 - 1.12 As of Tyrus 1.9, `TyrusEndpointWrapper`'s constructor has a new Boolean argument (which is mandatory). This commit reflectively chooses the right constructor method for Tyrus 1.9+ versions. Issue: SPR-13566
spring-websocket/src/main/java/org/springframework/web/socket/server/standard/AbstractTyrusRequestUpgradeStrategy.java
@@ -216,8 +216,14 @@ public Object createdEndpoint(ServerEndpointRegistration registration, Component Object sessionListener = accessor.getPropertyValue("sessionListener"); Object clusterContext = accessor.getPropertyValue("clusterContext"); try { - return constructor.newInstance(registration.getEndpoint...
false
Other
spring-projects
spring-framework
758ae98af2895641dd2643bfc0e459a228b6443d.json
Sanitize duplicate slashes in request path This commit removes duplicate slashes in the resolved lookup path when calling `UrlPathHelper.getLookupPathForRequest`. This is especially necessary when the path is cleaned from semicolon content and leaves duplicate slashes in the request path. Issue: SPR-13455
spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java
@@ -421,6 +421,7 @@ public String getOriginatingQueryString(HttpServletRequest request) { private String decodeAndCleanUriString(HttpServletRequest request, String uri) { uri = removeSemicolonContent(uri); uri = decodeRequestString(request, uri); + uri = getSanitizedPath(uri); return uri; }
true
Other
spring-projects
spring-framework
758ae98af2895641dd2643bfc0e459a228b6443d.json
Sanitize duplicate slashes in request path This commit removes duplicate slashes in the resolved lookup path when calling `UrlPathHelper.getLookupPathForRequest`. This is especially necessary when the path is cleaned from semicolon content and leaves duplicate slashes in the request path. Issue: SPR-13455
spring-web/src/test/java/org/springframework/web/util/UrlPathHelperTests.java
@@ -121,6 +121,13 @@ public void getRequestRemoveSemicolonContent() throws UnsupportedEncodingExcepti request.setRequestURI("/foo;f=F;o=O;o=O/bar;b=B;a=A;r=R"); assertEquals("/foo/bar", helper.getRequestUri(request)); + + // SPR-13455 + + request.setServletPath("/foo/1"); + request.setRequestURI("/foo/;test/...
true
Other
spring-projects
spring-framework
32214e0a4960a55f82ab203ff4bc98b73974a862.json
Add Javadoc for main interfaces/classes
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/DispatcherHandler.java
@@ -35,7 +35,22 @@ import org.springframework.reactive.web.http.ServerHttpResponse; /** + * Central dispatcher for HTTP request handlers/controllers. Dispatches to registered + * handlers for processing a web request, providing convenient mapping facilities. + * + * <li>It can use any {@link HandlerMapping} impleme...
true
Other
spring-projects
spring-framework
32214e0a4960a55f82ab203ff4bc98b73974a862.json
Add Javadoc for main interfaces/classes
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/HandlerAdapter.java
@@ -19,12 +19,39 @@ import org.springframework.reactive.web.http.ServerHttpResponse; /** + * Interface that must be implemented for each handler type to handle an HTTP request. + * This interface is used to allow the {@link DispatcherHandler} to be indefinitely + * extensible. The {@code DispatcherHandler} accesses...
true
Other
spring-projects
spring-framework
32214e0a4960a55f82ab203ff4bc98b73974a862.json
Add Javadoc for main interfaces/classes
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/HandlerResult.java
@@ -17,6 +17,8 @@ /** + * Represent the result of the invocation of an handler. + * * @author Rossen Stoyanchev */ public class HandlerResult {
true
Other
spring-projects
spring-framework
32214e0a4960a55f82ab203ff4bc98b73974a862.json
Add Javadoc for main interfaces/classes
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/HandlerResultHandler.java
@@ -21,12 +21,32 @@ import org.springframework.reactive.web.http.ServerHttpResponse; /** + * Process the {@link HandlerResult}, usually returned by an {@link HandlerAdapter}. + * * @author Rossen Stoyanchev + * @author Sebastien Deleuze */ public interface HandlerResultHandler { + /** + * Given a handler in...
true
Other
spring-projects
spring-framework
32214e0a4960a55f82ab203ff4bc98b73974a862.json
Add Javadoc for main interfaces/classes
spring-web-reactive/src/main/java/org/springframework/reactive/web/http/HttpHandler.java
@@ -20,11 +20,30 @@ /** + * Interface for handlers that process HTTP requests and generate an HTTP response. + * This handler is designed to be called when the HTTP headers have been received, making + * the HTTP request body available as stream. The HTTP response body can also be written + * as a stream. + * * ...
true
Other
spring-projects
spring-framework
32214e0a4960a55f82ab203ff4bc98b73974a862.json
Add Javadoc for main interfaces/classes
spring-web-reactive/src/main/java/org/springframework/reactive/web/http/ServerHttpRequest.java
@@ -20,11 +20,15 @@ import org.reactivestreams.Publisher; /** + * Represent a server-side HTTP request. * * @author Rossen Stoyanchev */ public interface ServerHttpRequest extends HttpRequest { + /** + * Return the body of the message as a reactive stream. + */ Publisher<ByteBuffer> getBody(); }
true
Other
spring-projects
spring-framework
32214e0a4960a55f82ab203ff4bc98b73974a862.json
Add Javadoc for main interfaces/classes
spring-web-reactive/src/main/java/org/springframework/reactive/web/http/ServerHttpResponse.java
@@ -22,12 +22,22 @@ import org.springframework.http.HttpStatus; /** + * Represent a server-side HTTP response. + * * @author Rossen Stoyanchev */ public interface ServerHttpResponse extends HttpMessage { void setStatusCode(HttpStatus status); + /** + * Write the provided reactive stream of bytes to the ...
true
Other
spring-projects
spring-framework
c52f9d35244720937398976ea7f1a6abc74a8443.json
Assert status quo & add TODO Issue: SPR-13537
spring-web/src/test/java/org/springframework/web/util/UriComponentsBuilderTests.java
@@ -42,6 +42,7 @@ * @author Phillip Webb * @author Oliver Gierke * @author David Eckel + * @author Sam Brannen */ public class UriComponentsBuilderTests { @@ -609,18 +610,23 @@ public void buildAndExpandOpaque() { public void queryParamWithValueWithEquals() throws Exception { UriComponents uriComponents...
false
Other
spring-projects
spring-framework
9516c9992f4ed53bbb0be801bed31b6280eaff8c.json
Return HandlerResult in HandlerAdapter#handle() This commit updates HandlerAdapter#handle() to return HandlerResult instead of Publisher<HandlerResult>. A new SimpleHandlerResultHandler class has been introduced for handlers returning Publisher<Void>.
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/DispatcherHandler.java
@@ -91,17 +91,21 @@ public Publisher<Void> handle(ServerHttpRequest request, ServerHttpResponse resp } HandlerAdapter handlerAdapter = getHandlerAdapter(handler); - Publisher<HandlerResult> resultPublisher = handlerAdapter.handle(request, response, handler); - return Streams.wrap(resultPublisher).concatMap(...
true
Other
spring-projects
spring-framework
9516c9992f4ed53bbb0be801bed31b6280eaff8c.json
Return HandlerResult in HandlerAdapter#handle() This commit updates HandlerAdapter#handle() to return HandlerResult instead of Publisher<HandlerResult>. A new SimpleHandlerResultHandler class has been introduced for handlers returning Publisher<Void>.
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/HandlerAdapter.java
@@ -15,8 +15,6 @@ */ package org.springframework.reactive.web.dispatch; -import org.reactivestreams.Publisher; - import org.springframework.reactive.web.http.ServerHttpRequest; import org.springframework.reactive.web.http.ServerHttpResponse; @@ -27,6 +25,6 @@ public interface HandlerAdapter { boolean suppo...
true
Other
spring-projects
spring-framework
9516c9992f4ed53bbb0be801bed31b6280eaff8c.json
Return HandlerResult in HandlerAdapter#handle() This commit updates HandlerAdapter#handle() to return HandlerResult instead of Publisher<HandlerResult>. A new SimpleHandlerResultHandler class has been introduced for handlers returning Publisher<Void>.
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/SimpleHandlerResultHandler.java
@@ -0,0 +1,49 @@ +/* + * Copyright 2002-2015 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
9516c9992f4ed53bbb0be801bed31b6280eaff8c.json
Return HandlerResult in HandlerAdapter#handle() This commit updates HandlerAdapter#handle() to return HandlerResult instead of Publisher<HandlerResult>. A new SimpleHandlerResultHandler class has been introduced for handlers returning Publisher<Void>.
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/handler/HttpHandlerAdapter.java
@@ -16,7 +16,6 @@ package org.springframework.reactive.web.dispatch.handler; import org.reactivestreams.Publisher; -import reactor.rx.Streams; import org.springframework.reactive.web.dispatch.HandlerAdapter; import org.springframework.reactive.web.dispatch.HandlerResult; @@ -34,6 +33,7 @@ * handler mappings. ...
true
Other
spring-projects
spring-framework
9516c9992f4ed53bbb0be801bed31b6280eaff8c.json
Return HandlerResult in HandlerAdapter#handle() This commit updates HandlerAdapter#handle() to return HandlerResult instead of Publisher<HandlerResult>. A new SimpleHandlerResultHandler class has been introduced for handlers returning Publisher<Void>.
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/method/annotation/RequestMappingHandlerAdapter.java
@@ -19,9 +19,6 @@ import java.util.Arrays; import java.util.List; -import org.reactivestreams.Publisher; -import reactor.rx.Streams; - import org.springframework.beans.factory.InitializingBean; import org.springframework.reactive.codec.decoder.JacksonJsonDecoder; import org.springframework.reactive.codec.decoder...
true
Other
spring-projects
spring-framework
9516c9992f4ed53bbb0be801bed31b6280eaff8c.json
Return HandlerResult in HandlerAdapter#handle() This commit updates HandlerAdapter#handle() to return HandlerResult instead of Publisher<HandlerResult>. A new SimpleHandlerResultHandler class has been introduced for handlers returning Publisher<Void>.
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/method/annotation/ResponseBodyResultHandler.java
@@ -16,6 +16,7 @@ package org.springframework.reactive.web.dispatch.method.annotation; import java.lang.reflect.Method; +import java.lang.reflect.Type; import java.nio.ByteBuffer; import java.nio.charset.Charset; import java.util.ArrayList; @@ -25,14 +26,14 @@ import org.reactivestreams.Publisher; import rea...
true
Other
spring-projects
spring-framework
9516c9992f4ed53bbb0be801bed31b6280eaff8c.json
Return HandlerResult in HandlerAdapter#handle() This commit updates HandlerAdapter#handle() to return HandlerResult instead of Publisher<HandlerResult>. A new SimpleHandlerResultHandler class has been introduced for handlers returning Publisher<Void>.
spring-web-reactive/src/test/java/org/springframework/reactive/web/dispatch/handler/SimpleUrlHandlerMappingIntegrationTests.java
@@ -28,6 +28,7 @@ import org.springframework.http.RequestEntity; import org.springframework.http.ResponseEntity; import org.springframework.reactive.web.dispatch.DispatcherHandler; +import org.springframework.reactive.web.dispatch.SimpleHandlerResultHandler; import org.springframework.reactive.web.http.AbstractHttp...
true
Other
spring-projects
spring-framework
9516c9992f4ed53bbb0be801bed31b6280eaff8c.json
Return HandlerResult in HandlerAdapter#handle() This commit updates HandlerAdapter#handle() to return HandlerResult instead of Publisher<HandlerResult>. A new SimpleHandlerResultHandler class has been introduced for handlers returning Publisher<Void>.
spring-web-reactive/src/test/java/org/springframework/reactive/web/dispatch/method/annotation/ResponseBodyResultHandlerTests.java
@@ -0,0 +1,68 @@ +/* + * Copyright 2002-2015 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
49fc32e2144903704f44a6cc9d7f78e80dfc2e1e.json
Check new snapshots for every build
spring-web-reactive/build.gradle
@@ -25,6 +25,11 @@ repositories { maven { url 'http://repo.spring.io/snapshot' } // Reactor snapshot } +configurations.all { + // check for updates every build + resolutionStrategy.cacheChangingModulesFor 0, 'seconds' +} + dependencies { compile "org.springframework:spring-core:4.2.0.RELEASE" compile "org.sp...
false
Other
spring-projects
spring-framework
8af0151f1b207d70ca804610fdedc24733d7d89a.json
Suppress recent deprecation warnings in tests
spring-core/src/test/java/org/springframework/util/Log4jConfigurerTests.java
@@ -30,6 +30,7 @@ * @author Juergen Hoeller * @author Sam Brannen */ +@SuppressWarnings("deprecation") public class Log4jConfigurerTests { @Test
true
Other
spring-projects
spring-framework
8af0151f1b207d70ca804610fdedc24733d7d89a.json
Suppress recent deprecation warnings in tests
spring-jdbc/src/test/java/org/springframework/jdbc/support/NativeJdbcExtractorTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2015 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 org.junit.Test; -...
true
Other
spring-projects
spring-framework
8af0151f1b207d70ca804610fdedc24733d7d89a.json
Suppress recent deprecation warnings in tests
spring-web/src/test/java/org/springframework/web/util/Log4jWebConfigurerTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2015 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,23 +17,27 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
63fe5b906905d5c96c8eba72b4ab017763087236.json
Fix typo in reference documentation
src/asciidoc/web-view.adoc
@@ -2614,9 +2614,8 @@ name(s) could be customized through the `jsonpParameterNames` property. The `MappingJackson2XmlView` uses the https://github.com/FasterXML/jackson-dataformat-xml[Jackson XML extension]'s `XmlMapper` to render the response content as XML. If the model contains multiples entries, the -object to b...
false
Other
spring-projects
spring-framework
42588cb03e484565c24298ac834e8d0921dee9ec.json
Prepare Undertow 1.3.0 compatibility Xnio 3.4.0 will introduce a new source of ByteBuffers: ByteBufferPool. Previously this feature was offered by Pooled/Pool/ByteBufferSlicePool; those classes are now marked as deprecated. As of 1.3.0.Beta9, Undertow still implements the following method in its ClientConnection inte...
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client/UndertowXhrTransport.java
@@ -35,14 +35,11 @@ import io.undertow.util.HttpString; import io.undertow.util.Methods; import io.undertow.util.StringReadChannelListener; -import org.xnio.ByteBufferSlicePool; import org.xnio.ChannelListener; import org.xnio.ChannelListeners; import org.xnio.IoUtils; import org.xnio.OptionMap; import org.xnio...
true
Other
spring-projects
spring-framework
42588cb03e484565c24298ac834e8d0921dee9ec.json
Prepare Undertow 1.3.0 compatibility Xnio 3.4.0 will introduce a new source of ByteBuffers: ByteBufferPool. Previously this feature was offered by Pooled/Pool/ByteBufferSlicePool; those classes are now marked as deprecated. As of 1.3.0.Beta9, Undertow still implements the following method in its ClientConnection inte...
spring-websocket/src/test/java/org/springframework/web/socket/UndertowTestServer.java
@@ -38,7 +38,6 @@ import org.springframework.web.context.WebApplicationContext; import org.springframework.web.servlet.DispatcherServlet; -import org.xnio.ByteBufferSlicePool; import org.xnio.OptionMap; import org.xnio.Xnio; @@ -70,6 +69,7 @@ public int getPort() { } @Override + @SuppressWarnings("depreca...
true
Other
spring-projects
spring-framework
bdf735125f20f652b1a7df0158bd1bac96dacde7.json
Update javadoc for (Async)RestTemplate Issue: SPR-13313
spring-web/src/main/java/org/springframework/http/client/support/HttpAccessor.java
@@ -50,7 +50,8 @@ public abstract class HttpAccessor { /** - * Set the request factory that this accessor uses for obtaining {@link ClientHttpRequest HttpRequests}. + * Set the request factory that this accessor uses for obtaining + * {@link ClientHttpRequest HttpRequests}. */ public void setRequestFactor...
true
Other
spring-projects
spring-framework
bdf735125f20f652b1a7df0158bd1bac96dacde7.json
Update javadoc for (Async)RestTemplate Issue: SPR-13313
spring-web/src/main/java/org/springframework/web/client/AsyncRestTemplate.java
@@ -63,6 +63,11 @@ * {@linkplain #setMessageConverters(List) message converters} with this * {@code RestTemplate}. * + * <p><strong>Note:</strong> by default {@code AsyncRestTemplate} relies on + * standard JDK facilities to establish HTTP connections. You can switch to use + * a different HTTP library such as Ap...
true
Other
spring-projects
spring-framework
bdf735125f20f652b1a7df0158bd1bac96dacde7.json
Update javadoc for (Async)RestTemplate Issue: SPR-13313
spring-web/src/main/java/org/springframework/web/client/RestTemplate.java
@@ -60,6 +60,11 @@ * It handles HTTP connections, leaving application code to provide URLs * (with possible template variables) and extract results. * + * <p><strong>Note:</strong> by default the RestTemplate relies on standard JDK + * facilities to establish HTTP connections. You can switch to use a different + ...
true
Other
spring-projects
spring-framework
202825554c022e4262fe3bd20a34faf01ab9d620.json
Add basic support for @RequestMapping Just enough for a test with an @ResponseBody method that accepts an @RequestParam String arg and returning Publisher<String> or String. See RequestMappingIntegrationTests.
spring-web-reactive/build.gradle
@@ -23,8 +23,7 @@ dependencies { compile "org.springframework:spring-web:4.2.0.RELEASE" compile "org.reactivestreams:reactive-streams:1.0.0" compile "io.projectreactor:reactor-stream:2.0.5.RELEASE" - compile "org.slf4j:slf4j-api:1.7.6" - compile "ch.qos.logback:logback-classic:1.1.2" + compile "commons-logging:co...
true
Other
spring-projects
spring-framework
202825554c022e4262fe3bd20a34faf01ab9d620.json
Add basic support for @RequestMapping Just enough for a test with an @ResponseBody method that accepts an @RequestParam String arg and returning Publisher<String> or String. See RequestMappingIntegrationTests.
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/DispatcherHandler.java
@@ -17,12 +17,18 @@ import java.util.ArrayList; import java.util.List; +import java.util.Map; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; import org.reactivestreams.Publisher; import reactor.rx.Streams; +import org.springframework.beans.BeansException; import org.sp...
true
Other
spring-projects
spring-framework
202825554c022e4262fe3bd20a34faf01ab9d620.json
Add basic support for @RequestMapping Just enough for a test with an @ResponseBody method that accepts an @RequestParam String arg and returning Publisher<String> or String. See RequestMappingIntegrationTests.
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/HandlerResult.java
@@ -15,21 +15,29 @@ */ package org.springframework.reactive.web.dispatch; + /** * @author Rossen Stoyanchev */ public class HandlerResult { - private final Object returnValue; + private final Object handler; + + private final Object value; - public HandlerResult(Object returnValue) { - this.returnValu...
true
Other
spring-projects
spring-framework
202825554c022e4262fe3bd20a34faf01ab9d620.json
Add basic support for @RequestMapping Just enough for a test with an @ResponseBody method that accepts an @RequestParam String arg and returning Publisher<String> or String. See RequestMappingIntegrationTests.
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/method/HandlerMethodArgumentResolver.java
@@ -0,0 +1,32 @@ +/* + * Copyright 2002-2015 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
202825554c022e4262fe3bd20a34faf01ab9d620.json
Add basic support for @RequestMapping Just enough for a test with an @ResponseBody method that accepts an @RequestParam String arg and returning Publisher<String> or String. See RequestMappingIntegrationTests.
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/method/InvocableHandlerMethod.java
@@ -0,0 +1,184 @@ +/* + * Copyright 2002-2015 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
202825554c022e4262fe3bd20a34faf01ab9d620.json
Add basic support for @RequestMapping Just enough for a test with an @ResponseBody method that accepts an @RequestParam String arg and returning Publisher<String> or String. See RequestMappingIntegrationTests.
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/method/annotation/RequestMappingHandlerAdapter.java
@@ -0,0 +1,79 @@ +/* + * Copyright 2002-2015 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
202825554c022e4262fe3bd20a34faf01ab9d620.json
Add basic support for @RequestMapping Just enough for a test with an @ResponseBody method that accepts an @RequestParam String arg and returning Publisher<String> or String. See RequestMappingIntegrationTests.
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/method/annotation/RequestMappingHandlerMapping.java
@@ -0,0 +1,91 @@ +/* + * Copyright 2002-2015 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
202825554c022e4262fe3bd20a34faf01ab9d620.json
Add basic support for @RequestMapping Just enough for a test with an @ResponseBody method that accepts an @RequestParam String arg and returning Publisher<String> or String. See RequestMappingIntegrationTests.
spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/method/annotation/RequestParamArgumentResolver.java
@@ -0,0 +1,49 @@ +/* + * Copyright 2002-2015 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