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 | 89cf4772d57145475797eb39bd2aa59d6c4e362f.json | Fix malformed HTML in Javadoc | spring-test/src/main/java/org/springframework/test/context/support/AbstractContextLoader.java | @@ -110,12 +110,13 @@ public void processContextConfiguration(ContextConfigurationAttributes configAtt
* <li>Determines what (if any) context initializer classes have been supplied
* via the {@code MergedContextConfiguration} and instantiates and
* {@linkplain ApplicationContextInitializer#initialize invokes} ... | false |
Other | spring-projects | spring-framework | 504779e2104fe961091d3fc274c156e8116dea4f.json | Remove @BootstrapWith from @WebAppConfiguration
Update @WebAppConfiguration so that it no longer directly specifies
a TestContextBootstrapper. This allows third parties to use the
annotation in combination with their own bootstrapper.
BootstrapUtils now provides the detection logic for when
WebTestContextBootstrapper... | spring-test/src/main/java/org/springframework/test/context/BootstrapUtils.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.
@@ -24,6 +24,7 @@
import org.springframework... | true |
Other | spring-projects | spring-framework | 504779e2104fe961091d3fc274c156e8116dea4f.json | Remove @BootstrapWith from @WebAppConfiguration
Update @WebAppConfiguration so that it no longer directly specifies
a TestContextBootstrapper. This allows third parties to use the
annotation in combination with their own bootstrapper.
BootstrapUtils now provides the detection logic for when
WebTestContextBootstrapper... | spring-test/src/main/java/org/springframework/test/context/web/WebAppConfiguration.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2014 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.
@@ -23,8 +23,6 @@
import java.lang.annotation.... | true |
Other | spring-projects | spring-framework | 504779e2104fe961091d3fc274c156e8116dea4f.json | Remove @BootstrapWith from @WebAppConfiguration
Update @WebAppConfiguration so that it no longer directly specifies
a TestContextBootstrapper. This allows third parties to use the
annotation in combination with their own bootstrapper.
BootstrapUtils now provides the detection logic for when
WebTestContextBootstrapper... | spring-test/src/test/java/org/springframework/test/context/BootstrapUtilsTests.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.
@@ -24,6 +24,8 @@
import org.junit.rules.Expec... | true |
Other | spring-projects | spring-framework | 504779e2104fe961091d3fc274c156e8116dea4f.json | Remove @BootstrapWith from @WebAppConfiguration
Update @WebAppConfiguration so that it no longer directly specifies
a TestContextBootstrapper. This allows third parties to use the
annotation in combination with their own bootstrapper.
BootstrapUtils now provides the detection logic for when
WebTestContextBootstrapper... | spring-test/src/test/java/org/springframework/test/context/web/WebbAppConfigurationBootstrapWithTests.java | @@ -0,0 +1,65 @@
+/*
+ * 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 | 03a997c9d4ce6815d3a07c4d4b20b3f18554ed7c.json | Remove outdated DataBufferFactory properties
Removed in favor of accessing the factory from the response. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/AbstractView.java | @@ -23,14 +23,10 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
-import org.spring... | true |
Other | spring-projects | spring-framework | 03a997c9d4ce6815d3a07c4d4b20b3f18554ed7c.json | Remove outdated DataBufferFactory properties
Removed in favor of accessing the factory from the response. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/UrlBasedViewResolver.java | @@ -193,7 +193,6 @@ protected boolean canHandle(String viewName, Locale locale) {
protected AbstractUrlBasedView createUrlBasedView(String viewName) {
AbstractUrlBasedView view = (AbstractUrlBasedView) BeanUtils.instantiateClass(getViewClass());
view.setSupportedMediaTypes(getSupportedMediaTypes());
- view.set... | true |
Other | spring-projects | spring-framework | 03a997c9d4ce6815d3a07c4d4b20b3f18554ed7c.json | Remove outdated DataBufferFactory properties
Removed in favor of accessing the factory from the response. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/ViewResolverSupport.java | @@ -22,8 +22,6 @@
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.core.Ordered;
-import org.springframework.core.io.buffer.DataBufferFactory;
-import org.springframework.core.io.buffer.DefaultDataBufferFactory;
import org.... | true |
Other | spring-projects | spring-framework | 03a997c9d4ce6815d3a07c4d4b20b3f18554ed7c.json | Remove outdated DataBufferFactory properties
Removed in favor of accessing the factory from the response. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/freemarker/FreeMarkerView.java | @@ -164,7 +164,7 @@ protected Mono<Void> renderInternal(Map<String, Object> renderAttributes, Server
logger.debug("Rendering FreeMarker template [" + getUrl() + "].");
}
Locale locale = Locale.getDefault(); // TODO
- DataBuffer dataBuffer = getBufferAllocator().allocateBuffer();
+ DataBuffer dataBuffer = ex... | true |
Other | spring-projects | spring-framework | 03a997c9d4ce6815d3a07c4d4b20b3f18554ed7c.json | Remove outdated DataBufferFactory properties
Removed in favor of accessing the factory from the response. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingIntegrationTests.java | @@ -82,7 +82,9 @@
import org.springframework.web.reactive.result.view.freemarker.FreeMarkerViewResolver;
import org.springframework.web.server.adapter.WebHttpHandlerBuilder;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertArrayEquals;
+import static org.junit.Assert.assertEquals;
+import st... | true |
Other | spring-projects | spring-framework | 65246f8cfdcda92288e96209edbbdad3a4321a80.json | Remove FIXME on retain in ReactorServerHttpRequest
The converters release so this is the right thing to do, not a
temporary fix. | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpRequest.java | @@ -89,9 +89,7 @@ protected MultiValueMap<String, HttpCookie> initCookies() {
@Override
public Flux<DataBuffer> getBody() {
- return this.channel.receive()
- .retain() //FIXME Rogue reference holding
- .map(dataBufferFactory::wrap);
+ return this.channel.receive().retain().map(this.dataBu... | false |
Other | spring-projects | spring-framework | 8cc72b320bc86e5acb380f3588d1ec926ed1e681.json | View resolution with content negotiation
ViewResolutionResultHandler and ResponseBodyResultHandler now share
a common base class ContentNegotiatingResultHandlerSupport that
supports content negotiation.
For view resolution we compare against the supported media types of
resolved View instances, which may include defa... | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/View.java | @@ -43,7 +43,7 @@
public interface View {
/**
- * Return the list of media types this encoder supports.
+ * Return the list of media types this View supports, or an empty list.
*/
List<MediaType> getSupportedMediaTypes();
| true |
Other | spring-projects | spring-framework | 8cc72b320bc86e5acb380f3588d1ec926ed1e681.json | View resolution with content negotiation
ViewResolutionResultHandler and ResponseBodyResultHandler now share
a common base class ContentNegotiatingResultHandlerSupport that
supports content negotiation.
For view resolution we compare against the supported media types of
resolved View instances, which may include defa... | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/ViewResolutionResultHandler.java | @@ -34,17 +34,20 @@
import org.springframework.core.ResolvableType;
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
import org.springframework.core.convert.ConversionService;
+import org.springframework.http.MediaType;
import org.springframework.ui.Model;
-import org.springframework.util.... | true |
Other | spring-projects | spring-framework | 8cc72b320bc86e5acb380f3588d1ec926ed1e681.json | View resolution with content negotiation
ViewResolutionResultHandler and ResponseBodyResultHandler now share
a common base class ContentNegotiatingResultHandlerSupport that
supports content negotiation.
For view resolution we compare against the supported media types of
resolved View instances, which may include defa... | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/view/ViewResolutionResultHandlerTests.java | @@ -47,15 +47,14 @@
import org.springframework.http.MediaType;
import org.springframework.http.server.reactive.MockServerHttpRequest;
import org.springframework.http.server.reactive.MockServerHttpResponse;
-import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.http.server.rea... | true |
Other | spring-projects | spring-framework | 1b308cffbf5a6d6b4e71b8b991ae698f822ab5f1.json | Introduce base class for ResponseBodyResultHandler
The ContentNegotiatingResultHandlerSupport base class encapsulates the
logic for content negotiation needed for both @ResponseBody and view
resolution result handling. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/ContentNegotiatingResultHandlerSupport.java | @@ -0,0 +1,148 @@
+/*
+ * 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 | 1b308cffbf5a6d6b4e71b8b991ae698f822ab5f1.json | Introduce base class for ResponseBodyResultHandler
The ContentNegotiatingResultHandlerSupport base class encapsulates the
logic for content negotiation needed for both @ResponseBody and view
resolution result handling. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandler.java | @@ -16,13 +16,8 @@
package org.springframework.web.reactive.result.method.annotation;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.LinkedHashSet;
import java.util.List;
import java.util.Optional;
-import java.util.Set;
import java.util.stream.Collec... | true |
Other | spring-projects | spring-framework | 8343ce9e441313513b1459f6f56724ad1fcead19.json | Add defaultLocale to AcceptHeaderLocaleResolver
Issue: SPR-14312 | spring-webmvc/src/main/java/org/springframework/web/servlet/i18n/AcceptHeaderLocaleResolver.java | @@ -42,6 +42,8 @@ public class AcceptHeaderLocaleResolver implements LocaleResolver {
private final List<Locale> supportedLocales = new ArrayList<Locale>();
+ private Locale defaultLocale;
+
/**
* Configure supported locales to check against the requested locales
@@ -65,9 +67,32 @@ public List<Locale> getS... | true |
Other | spring-projects | spring-framework | 8343ce9e441313513b1459f6f56724ad1fcead19.json | Add defaultLocale to AcceptHeaderLocaleResolver
Issue: SPR-14312 | spring-webmvc/src/test/java/org/springframework/web/servlet/i18n/AcceptHeaderLocaleResolverTests.java | @@ -25,6 +25,7 @@
import org.springframework.mock.web.test.MockHttpServletRequest;
import static java.util.Locale.CANADA;
+import static java.util.Locale.JAPANESE;
import static java.util.Locale.UK;
import static java.util.Locale.US;
import static org.junit.Assert.assertEquals;
@@ -56,6 +57,17 @@ public void res... | true |
Other | spring-projects | spring-framework | 92f1b69e8c4e8af20779e969feb0ab2f1f73af31.json | Update MultipartFilter documentations
Issue: SPR-11373 | spring-web/src/main/java/org/springframework/web/multipart/support/MultipartFilter.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.
@@ -39,6 +39,10 @@
* <p>If no MultipartResolv... | false |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-core/src/main/java/org/springframework/core/io/buffer/FlushingDataBuffer.java | @@ -1,125 +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 | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-core/src/main/java/org/springframework/core/io/buffer/NettyDataBufferFactory.java | @@ -78,6 +78,24 @@ public NettyDataBuffer wrap(ByteBuf byteBuf) {
return new NettyDataBuffer(byteBuf, this);
}
+ /**
+ * Returns the given Netty {@link DataBuffer} as a {@link ByteBuf}. Returns the
+ * {@linkplain NettyDataBuffer#getNativeBuffer() native buffer} if {@code buffer} is
+ * a {@link NettyDataBuff... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java | @@ -41,7 +41,6 @@
import org.springframework.format.support.DefaultFormattingConversionService;
import org.springframework.format.support.FormattingConversionService;
import org.springframework.http.MediaType;
-import org.springframework.http.codec.SseEventEncoder;
import org.springframework.http.codec.json.Jackson... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/SseIntegrationTests.java | @@ -17,8 +17,6 @@
package org.springframework.web.reactive.result.method.annotation;
import java.time.Duration;
-import java.util.ArrayList;
-import java.util.List;
import org.junit.Before;
import org.junit.Test;
@@ -29,13 +27,9 @@
import org.springframework.context.annotation.AnnotationConfigApplicationContex... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/main/java/org/springframework/http/ReactiveHttpOutputMessage.java | @@ -23,7 +23,6 @@
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferFactory;
-import org.springframework.core.io.buffer.FlushingDataBuffer;
/**
* A "reactive" HTTP output message that accepts output as a {@link Publisher}.
@@ -45,17 +44,23 @@ public inter... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpRequest.java | @@ -17,9 +17,9 @@
package org.springframework.http.client.reactive;
import java.net.URI;
+import java.util.Collection;
import io.netty.buffer.ByteBuf;
-import io.netty.buffer.Unpooled;
import io.netty.handler.codec.http.cookie.DefaultCookie;
import org.reactivestreams.Publisher;
import reactor.core.publisher.... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/main/java/org/springframework/http/codec/SseEvent.java | @@ -17,7 +17,7 @@
package org.springframework.http.codec;
import org.springframework.http.MediaType;
-import org.springframework.http.codec.SseEventEncoder;
+import org.springframework.http.converter.reactive.SseEventHttpMessageWriter;
/**
* Representation for a Server-Sent Event for use with Spring's reactive... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/main/java/org/springframework/http/converter/reactive/SseEventHttpMessageWriter.java | @@ -14,9 +14,10 @@
* limitations under the License.
*/
-package org.springframework.http.codec;
+package org.springframework.http.converter.reactive;
import java.nio.charset.StandardCharsets;
+import java.util.Collections;
import java.util.List;
import java.util.Optional;
@@ -25,15 +26,14 @@
import reacto... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerServerHttpResponse.java | @@ -0,0 +1,84 @@
+/*
+ * 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 | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractResponseBodyFlushProcessor.java | @@ -0,0 +1,245 @@
+/*
+ * 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 | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractResponseBodyProcessor.java | @@ -25,23 +25,24 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.reactivestreams.Processor;
+import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
import org.springframework.core.io.buffer.DataBuff... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpResponse.java | @@ -128,9 +128,15 @@ public void beforeCommit(Supplier<? extends Mono<Void>> action) {
}
@Override
- public Mono<Void> writeWith(Publisher<DataBuffer> publisher) {
- return new ChannelSendOperator<>(publisher, writePublisher ->
- applyBeforeCommit().then(() -> writeWithInternal(writePublisher)));
+ public f... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpResponse.java | @@ -19,7 +19,6 @@
import java.io.File;
import io.netty.buffer.ByteBuf;
-import io.netty.buffer.Unpooled;
import io.netty.handler.codec.http.HttpResponseStatus;
import io.netty.handler.codec.http.cookie.Cookie;
import io.netty.handler.codec.http.cookie.DefaultCookie;
@@ -30,8 +29,7 @@
import org.springframewor... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/main/java/org/springframework/http/server/reactive/RxNettyServerHttpResponse.java | @@ -17,7 +17,6 @@
package org.springframework.http.server.reactive;
import io.netty.buffer.ByteBuf;
-import io.netty.buffer.CompositeByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.handler.codec.http.HttpResponseStatus;
import io.netty.handler.codec.http.cookie.Cookie;
@@ -26,12 +25,11 @@
import io.re... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/main/java/org/springframework/http/server/reactive/ServletServerHttpResponse.java | @@ -18,16 +18,17 @@
import java.io.IOException;
import java.io.InputStream;
+import java.io.UncheckedIOException;
import java.nio.charset.Charset;
import java.util.List;
import java.util.Map;
+import java.util.concurrent.atomic.AtomicBoolean;
import javax.servlet.ServletOutputStream;
import javax.servlet.Write... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java | @@ -28,7 +28,7 @@
import io.undertow.server.handlers.Cookie;
import io.undertow.server.handlers.CookieImpl;
import io.undertow.util.HttpString;
-import org.reactivestreams.Publisher;
+import org.reactivestreams.Processor;
import org.xnio.ChannelListener;
import org.xnio.channels.StreamSinkChannel;
import reactor.... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/test/java/org/springframework/http/codec/SseEventEncoderTests.java | @@ -1,143 +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 | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/test/java/org/springframework/http/converter/reactive/SseEventHttpMessageWriterTests.java | @@ -0,0 +1,160 @@
+/*
+ * 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 | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/test/java/org/springframework/http/server/reactive/FlushingIntegrationTests.java | @@ -18,18 +18,20 @@
import org.junit.Before;
import org.junit.Test;
-
+import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.test.TestSubscriber;
import org.springframework.core.io.buffer.DataBuffer;
-import org.springframework.core.io.buf... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/test/java/org/springframework/http/server/reactive/MockServerHttpResponse.java | @@ -45,6 +45,8 @@ public class MockServerHttpResponse implements ServerHttpResponse {
private Publisher<DataBuffer> body;
+ private Publisher<Publisher<DataBuffer>> bodyWithFlushes;
+
private DataBufferFactory dataBufferFactory = new DefaultDataBufferFactory();
@@ -72,12 +74,22 @@ public Publisher<DataBuffe... | true |
Other | spring-projects | spring-framework | 7b2196b408eeb55668a1add6455a4fd52adfdf38.json | Add writeAndFlushWith to ReactiveHttpOutputMessage
This commit changes the reactive flushing mechanism to use a newly
introduced writeAndFlushWith(Publisher<Publisher<DataBuffer>>) on
ReactiveHttpOutputMessage instead of using the FlushingDataBuffer.
Issue: https://github.com/spring-projects/spring-reactive/issues/12... | spring-web/src/test/java/org/springframework/http/server/reactive/ServerHttpResponseTests.java | @@ -182,6 +182,12 @@ protected Mono<Void> writeWithInternal(Publisher<DataBuffer> body) {
return b;
}).then();
}
+
+ @Override
+ protected Mono<Void> writeAndFlushWithInternal(
+ Publisher<Publisher<DataBuffer>> body) {
+ return Mono.error(new UnsupportedOperationException());
+ }
}
} | true |
Other | spring-projects | spring-framework | 86c659f5c0c1cffd212ce1973dfbb4911e21f9c1.json | Remove isAsyncStarted assertion
Issue: SPR-14444 | spring-web/src/main/java/org/springframework/web/context/request/async/WebAsyncManager.java | @@ -105,7 +105,6 @@ public final class WebAsyncManager {
*/
public void setAsyncWebRequest(final AsyncWebRequest asyncWebRequest) {
Assert.notNull(asyncWebRequest, "AsyncWebRequest must not be null");
- Assert.state(!isConcurrentHandlingStarted(), "Can't set AsyncWebRequest with concurrent handling in progress... | false |
Other | spring-projects | spring-framework | d07381e862728d10feb861b0c8e070328ac875aa.json | Avoid deprecated number constructors on JDK 9
Issue: SPR-13344 | spring-context/src/main/java/org/springframework/scripting/config/ScriptingDefaultsParser.java | @@ -41,7 +41,7 @@ public BeanDefinition parse(Element element, ParserContext parserContext) {
LangNamespaceUtils.registerScriptFactoryPostProcessorIfNecessary(parserContext.getRegistry());
String refreshCheckDelay = element.getAttribute(REFRESH_CHECK_DELAY_ATTRIBUTE);
if (StringUtils.hasText(refreshCheckDela... | true |
Other | spring-projects | spring-framework | d07381e862728d10feb861b0c8e070328ac875aa.json | Avoid deprecated number constructors on JDK 9
Issue: SPR-13344 | spring-core/src/main/java/org/springframework/asm/Opcodes.java | @@ -146,13 +146,13 @@ public interface Opcodes {
*/
int F_SAME1 = 4;
- Integer TOP = new Integer(0);
- Integer INTEGER = new Integer(1);
- Integer FLOAT = new Integer(2);
- Integer DOUBLE = new Integer(3);
- Integer LONG = new Integer(4);
- Integer NULL = new Integer(5);
- Integer UNIN... | true |
Other | spring-projects | spring-framework | d07381e862728d10feb861b0c8e070328ac875aa.json | Avoid deprecated number constructors on JDK 9
Issue: SPR-13344 | spring-core/src/main/java/org/springframework/core/style/ToStringCreator.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2014 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.
@@ -82,7 +82,7 @@ public ToStringCreator(Object... | true |
Other | spring-projects | spring-framework | d07381e862728d10feb861b0c8e070328ac875aa.json | Avoid deprecated number constructors on JDK 9
Issue: SPR-13344 | spring-jdbc/src/main/java/org/springframework/jdbc/datasource/ConnectionHolder.java | @@ -161,9 +161,9 @@ public Connection getConnection() {
*/
public boolean supportsSavepoints() throws SQLException {
if (this.savepointsSupported == null) {
- this.savepointsSupported = new Boolean(getConnection().getMetaData().supportsSavepoints());
+ this.savepointsSupported = getConnection().getMetaData(... | true |
Other | spring-projects | spring-framework | d07381e862728d10feb861b0c8e070328ac875aa.json | Avoid deprecated number constructors on JDK 9
Issue: SPR-13344 | spring-jms/src/main/java/org/springframework/jms/config/JcaListenerContainerParser.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2014 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.
@@ -88,7 +88,7 @@ protected MutablePropertyValu... | true |
Other | spring-projects | spring-framework | d07381e862728d10feb861b0c8e070328ac875aa.json | Avoid deprecated number constructors on JDK 9
Issue: SPR-13344 | spring-webmvc/src/main/java/org/springframework/web/servlet/handler/SimpleMappingExceptionResolver.java | @@ -46,6 +46,7 @@ public class SimpleMappingExceptionResolver extends AbstractHandlerExceptionReso
/** The default name of the exception attribute: "exception". */
public static final String DEFAULT_EXCEPTION_ATTRIBUTE = "exception";
+
private Properties exceptionMappings;
private Class<?>[] excludedExcepti... | true |
Other | spring-projects | spring-framework | b3253ca5e21aafd75ba2ce28741757886065544b.json | Drop mock.staticmock package from spring-aspects
Issue: SPR-14485 | spring-aspects/src/main/java/org/springframework/mock/staticmock/AbstractMethodMockingControl.aj | @@ -1,254 +0,0 @@
-/*
- * Copyright 2002-2014 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 | b3253ca5e21aafd75ba2ce28741757886065544b.json | Drop mock.staticmock package from spring-aspects
Issue: SPR-14485 | spring-aspects/src/main/java/org/springframework/mock/staticmock/AnnotationDrivenStaticEntityMockingControl.aj | @@ -1,122 +0,0 @@
-/*
- * Copyright 2002-2014 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 | b3253ca5e21aafd75ba2ce28741757886065544b.json | Drop mock.staticmock package from spring-aspects
Issue: SPR-14485 | spring-aspects/src/main/java/org/springframework/mock/staticmock/MockStaticEntityMethods.java | @@ -1,37 +0,0 @@
-/*
- * Copyright 2002-2014 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 | b3253ca5e21aafd75ba2ce28741757886065544b.json | Drop mock.staticmock package from spring-aspects
Issue: SPR-14485 | spring-aspects/src/test/java/org/springframework/mock/staticmock/AnnotationDrivenStaticEntityMockingControlTests.java | @@ -1,300 +0,0 @@
-/*
- * Copyright 2002-2014 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 | b3253ca5e21aafd75ba2ce28741757886065544b.json | Drop mock.staticmock package from spring-aspects
Issue: SPR-14485 | spring-aspects/src/test/java/org/springframework/mock/staticmock/Person.java | @@ -1,24 +0,0 @@
-/*
- * 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 | b3253ca5e21aafd75ba2ce28741757886065544b.json | Drop mock.staticmock package from spring-aspects
Issue: SPR-14485 | spring-aspects/src/test/java/org/springframework/mock/staticmock/Person_Roo_Entity.aj | @@ -1,100 +0,0 @@
-/*
- * 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 | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/codec/AbstractDecoder.java | @@ -28,6 +28,8 @@
import org.springframework.util.MimeType;
/**
+ * Abstract base class for {@link Decoder} implementations.
+ *
* @author Sebastien Deleuze
* @author Arjen Poutsma
* @since 5.0
@@ -36,6 +38,7 @@
private List<MimeType> decodableMimeTypes = Collections.emptyList();
+
protected AbstractD... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/codec/AbstractEncoder.java | @@ -24,6 +24,8 @@
import org.springframework.util.MimeType;
/**
+ * Abstract base class for {@link Decoder} implementations.
+ *
* @author Sebastien Deleuze
* @author Arjen Poutsma
* @since 5.0
@@ -32,6 +34,7 @@
private List<MimeType> encodableMimeTypes = Collections.emptyList();
+
protected AbstractE... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/codec/AbstractSingleValueEncoder.java | @@ -25,21 +25,25 @@
import org.springframework.util.MimeType;
/**
- * Abstract base class for {@link org.springframework.core.codec.Encoder} classes that
- * can only deal with a single value.
+ * Abstract base class for {@link org.springframework.core.codec.Encoder}
+ * classes that can only deal with a single val... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/codec/ByteBufferDecoder.java | @@ -28,6 +28,8 @@
import org.springframework.util.MimeTypeUtils;
/**
+ * Decoder for {@link ByteBuffer}s.
+ *
* @author Sebastien Deleuze
* @author Arjen Poutsma
* @since 5.0
@@ -49,6 +51,7 @@ public boolean canDecode(ResolvableType elementType, MimeType mimeType, Object..
@Override
public Flux<ByteBuffer... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/codec/ByteBufferEncoder.java | @@ -28,11 +28,14 @@
import org.springframework.util.MimeTypeUtils;
/**
+ * Encoder for {@link ByteBuffer}s.
+ *
* @author Sebastien Deleuze
* @since 5.0
*/
public class ByteBufferEncoder extends AbstractEncoder<ByteBuffer> {
+
public ByteBufferEncoder() {
super(MimeTypeUtils.ALL);
} | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/codec/ResourceDecoder.java | @@ -32,17 +32,19 @@
import org.springframework.util.MimeTypeUtils;
/**
- * A decoder for {@link Resource}s.
+ * Decoder for {@link Resource}s.
*
* @author Arjen Poutsma
* @since 5.0
*/
public class ResourceDecoder extends AbstractDecoder<Resource> {
+
public ResourceDecoder() {
super(MimeTypeUtils.A... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/codec/ResourceEncoder.java | @@ -32,16 +32,19 @@
import org.springframework.util.StreamUtils;
/**
- * An encoder for {@link Resource}s.
+ * Encoder for {@link Resource}s.
+ *
* @author Arjen Poutsma
* @since 5.0
*/
public class ResourceEncoder extends AbstractSingleValueEncoder<Resource> {
public static final int DEFAULT_BUFFER_SIZE... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/codec/StringEncoder.java | @@ -38,6 +38,7 @@ public class StringEncoder extends AbstractEncoder<String> {
public static final Charset DEFAULT_CHARSET = StandardCharsets.UTF_8;
+
public StringEncoder() {
super(new MimeType("text", "plain", DEFAULT_CHARSET));
}
@@ -51,8 +52,9 @@ public boolean canEncode(ResolvableType elementType, Mim... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/convert/support/MonoToCompletableFutureConverter.java | @@ -27,11 +27,15 @@
import org.springframework.core.convert.converter.GenericConverter;
/**
+ * Converter to adapt {@link CompletableFuture} to Reactive Streams and
+ * Reactor {@link Mono}.
+ *
* @author Sebastien Deleuze
* @since 5.0
*/
public class MonoToCompletableFutureConverter implements GenericConver... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/convert/support/ReactorToRxJava1Converter.java | @@ -31,6 +31,9 @@
import org.springframework.core.convert.converter.GenericConverter;
/**
+ * Converter to adapt RxJava1 {@link Observable}, {@link Single}, and
+ * {@link Completable} to Reactive Streams and Reactor types.
+ *
* @author Stephane Maldini
* @author Sebastien Deleuze
* @since 5.0 | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferFactory.java | @@ -19,8 +19,8 @@
import java.nio.ByteBuffer;
/**
- * A factory for {@link DataBuffer}s, allowing for allocation and wrapping of data
- * buffers.
+ * A factory for {@link DataBuffer}s,allowing for allocation and wrapping of
+ * data buffers.
*
* @author Arjen Poutsma
* @see DataBuffer
@@ -29,22 +29,24 @@
pu... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/io/buffer/DefaultDataBuffer.java | @@ -47,8 +47,9 @@ public class DefaultDataBuffer implements DataBuffer {
private int writePosition;
/**
- * Creates a new {@code DefaultDataBuffer} based on the given {@code ByteBuffer}. Both
- * reading and writing position of this buffer are based on the current {@linkplain
+ * Create a new {@code DefaultDat... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/io/buffer/DefaultDataBufferFactory.java | @@ -22,8 +22,8 @@
/**
* Default implementation of the {@code DataBufferFactory} interface. Allows for
- * specification of the default initial capacity at construction time, as well as whether
- * heap-based or direct buffers are to be preferred.
+ * specification of the default initial capacity at construction ti... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/io/buffer/FlushingDataBuffer.java | @@ -22,8 +22,8 @@
import java.util.function.IntPredicate;
/**
- * Empty {@link DataBuffer} that indicates to the file or the socket writing it that
- * previously buffered data should be flushed.
+ * Empty {@link DataBuffer} that indicates to the file or the socket writing it
+ * that previously buffered data shoul... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/io/buffer/NettyDataBuffer.java | @@ -32,8 +32,8 @@
import org.springframework.util.ObjectUtils;
/**
- * Implementation of the {@code DataBuffer} interface that wraps a Netty {@link ByteBuf}.
- * Typically constructed using the {@link NettyDataBufferFactory}.
+ * Implementation of the {@code DataBuffer} interface that wraps a Netty
+ * {@link ByteB... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/io/buffer/NettyDataBufferFactory.java | @@ -37,6 +37,7 @@ public class NettyDataBufferFactory implements DataBufferFactory {
private final ByteBufAllocator byteBufAllocator;
+
/**
* Creates a new {@code NettyDataBufferFactory} based on the given factory.
* @param byteBufAllocator the factory to use
@@ -49,6 +50,7 @@ public NettyDataBufferFactor... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/io/buffer/PooledDataBuffer.java | @@ -17,8 +17,8 @@
package org.springframework.core.io.buffer;
/**
- * Extension of {@link DataBuffer} that allows for buffer that share a memory pool.
- * Introduces methods for reference counting.
+ * Extension of {@link DataBuffer} that allows for buffer that share a memory
+ * pool. Introduces methods for refere... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-core/src/main/java/org/springframework/core/io/buffer/support/DataBufferUtils.java | @@ -89,8 +89,8 @@ public static Flux<DataBuffer> read(ReadableByteChannel channel,
/**
* Relays buffers from the given {@link Publisher} until the total
- * {@linkplain DataBuffer#readableByteCount() byte count} reaches the given maximum
- * byte count, or until the publisher is complete.
+ * {@linkplain Data... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/MappingContentTypeResolver.java | @@ -21,8 +21,8 @@
import org.springframework.http.MediaType;
/**
- * An extension of {@link RequestedContentTypeResolver} that maintains a mapping between
- * keys (e.g. file extension, query parameter) and media types.
+ * An extension of {@link RequestedContentTypeResolver} that maintains a mapping
+ * between ke... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/ParameterContentTypeResolver.java | @@ -27,8 +27,8 @@
import org.springframework.web.server.ServerWebExchange;
/**
- * A {@link RequestedContentTypeResolver} that extracts the media type lookup key from a
- * known query parameter named "format" by default.
+ * A {@link RequestedContentTypeResolver} that extracts the media type lookup
+ * key from a ... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/PathExtensionContentTypeResolver.java | @@ -31,8 +31,8 @@
import org.springframework.web.util.WebUtils;
/**
- * A {@link RequestedContentTypeResolver} that extracts the file extension from the
- * request path and uses that as the media type lookup key.
+ * A {@link RequestedContentTypeResolver} that extracts the file extension from
+ * the request path ... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/RequestedContentTypeResolver.java | @@ -22,7 +22,8 @@
import org.springframework.web.server.ServerWebExchange;
/**
- * Strategy for resolving the requested media types for a {@code ServerWebExchange}.
+ * Strategy for resolving the requested media types for a
+ * {@code ServerWebExchange}.
*
* @author Rossen Stoyanchev
* @since 5.0 | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/RequestedContentTypeResolverBuilder.java | @@ -28,9 +28,9 @@
/**
* Factory to create a {@link CompositeContentTypeResolver} and configure it with
- * one or more {@link RequestedContentTypeResolver} instances with build style methods.
- * The following table shows methods, resulting strategy instances, and if in
- * use by default:
+ * one or more {@link R... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/InvocableHandlerMethod.java | @@ -40,6 +40,9 @@
/**
+ * Extension of HandlerMethod that can invoke the target method after resolving
+ * its method arguments.
+ *
* @author Rossen Stoyanchev
* @since 5.0
*/ | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/AbstractView.java | @@ -34,6 +34,7 @@
import org.springframework.web.server.ServerWebExchange;
/**
+ * Base class for {@link View} implementations.
*
* @author Rossen Stoyanchev
* @since 5.0 | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/client/reactive/AbstractClientHttpRequest.java | @@ -47,6 +47,7 @@ public abstract class AbstractClientHttpRequest implements ClientHttpRequest {
private final List<Supplier<? extends Mono<Void>>> beforeCommitActions = new ArrayList<>(4);
+
public AbstractClientHttpRequest() {
this(new HttpHeaders());
}
@@ -57,6 +58,7 @@ public AbstractClientHttpRequest(... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/client/reactive/ClientHttpConnector.java | @@ -23,27 +23,26 @@
import org.springframework.http.HttpMethod;
/**
- * Client abstraction for HTTP client runtimes.
- * {@link ClientHttpConnector} drives the underlying HTTP client implementation
- * so as to connect to the origin server and provide all the necessary infrastructure
- * to send the actual {@link C... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/client/reactive/ClientHttpRequest.java | @@ -24,7 +24,7 @@
import org.springframework.util.MultiValueMap;
/**
- * Represents a reactive client-side HTTP request.
+ * Represents a client-side reactive HTTP request.
*
* @author Arjen Poutsma
* @author Brian Clozel | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/client/reactive/ClientHttpResponse.java | @@ -22,7 +22,7 @@
import org.springframework.util.MultiValueMap;
/**
- * Represents a reactive client-side HTTP response.
+ * Represents a client-side reactive HTTP response.
*
* @author Arjen Poutsma
* @since 5.0 | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpConnector.java | @@ -47,4 +47,5 @@ public Mono<ClientHttpResponse> connect(HttpMethod method, URI uri,
.otherwise(HttpException.class, exc -> Mono.just(exc.getChannel()))
.map(httpInbound -> new ReactorClientHttpResponse(httpInbound));
}
+
}
\ No newline at end of file | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpRequest.java | @@ -33,7 +33,7 @@
import org.springframework.http.HttpMethod;
/**
- * {@link ClientHttpRequest} implementation for the Reactor-Netty HTTP client
+ * {@link ClientHttpRequest} implementation for the Reactor-Netty HTTP client.
*
* @author Brian Clozel
* @since 5.0
@@ -49,13 +49,15 @@ public class ReactorClientH... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpResponse.java | @@ -31,7 +31,7 @@
import org.springframework.util.MultiValueMap;
/**
- * {@link ClientHttpResponse} implementation for the Reactor-Netty HTTP client
+ * {@link ClientHttpResponse} implementation for the Reactor-Netty HTTP client.
*
* @author Brian Clozel
* @see reactor.io.netty.http.HttpClient
@@ -43,11 +43,1... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/codec/SseEvent.java | @@ -20,10 +20,9 @@
import org.springframework.http.codec.SseEventEncoder;
/**
- * Represent a Server-Sent Event.
- *
- * <p>{@code Flux<SseEvent>} is Spring Web Reactive equivalent to Spring MVC
- * {@code SseEmitter} type. It allows to send Server-Sent Events in a reactive way.
+ * Representation for a Server-Sent... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/codec/SseEventEncoder.java | @@ -36,8 +36,10 @@
import org.springframework.util.MimeType;
/**
- * An encoder for {@link SseEvent}s that also supports any other kind of {@link Object}
- * (in that case, the object will be the data of the {@link SseEvent}).
+ * Encoder that supports a stream of {@link SseEvent}s and also plain
+ * {@link Object}... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2Decoder.java | @@ -44,7 +44,8 @@
import org.springframework.util.xml.StaxUtils;
/**
- * Decode from a bytes stream of XML elements to a stream of {@code Object} (POJO).
+ * Decode from a bytes stream containing XML elements to a stream of
+ * {@code Object}s (POJOs).
*
* @author Sebastien Deleuze
* @author Arjen Poutsma
@@ ... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2Encoder.java | @@ -34,7 +34,7 @@
import org.springframework.util.MimeTypeUtils;
/**
- * Encode from an {@code Object} stream to a byte stream of XML elements.
+ * Encode from {@code Object} stream to a byte stream containing XML elements.
*
* @author Sebastien Deleuze
* @author Arjen Poutsma | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/codec/xml/JaxbContextContainer.java | @@ -31,9 +31,11 @@
*/
final class JaxbContextContainer {
+
private final ConcurrentMap<Class<?>, JAXBContext> jaxbContexts =
new ConcurrentHashMap<>(64);
+
public Marshaller createMarshaller(Class<?> clazz) throws JAXBException {
JAXBContext jaxbContext = getJaxbContext(clazz);
return jaxbContext.c... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractRequestBodyPublisher.java | @@ -34,8 +34,8 @@
/**
* Abstract base class for {@code Publisher} implementations that bridge between
- * event-listener APIs and Reactive Streams. Specifically, base class for the Servlet 3.1
- * and Undertow support.
+ * event-listener APIs and Reactive Streams. Specifically, base class for the
+ * Servlet 3.1 a... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractResponseBodyProcessor.java | @@ -35,8 +35,9 @@
/**
* Abstract base class for {@code Subscriber} implementations that bridge between
- * event-listener APIs and Reactive Streams. Specifically, base class for the Servlet 3.1
- * and Undertow support.
+ * event-listener APIs and Reactive Streams. Specifically, base class for the
+ * Servlet 3.1 ... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/server/reactive/ReactorHttpHandlerAdapter.java | @@ -25,28 +25,27 @@
import org.springframework.util.Assert;
/**
+ * Adapt {@link HttpHandler} to the Reactor Netty {@link ChannelHandler}.
+ *
* @author Stephane Maldini
* @since 5.0
*/
-public class ReactorHttpHandlerAdapter
- implements ChannelHandler<ByteBuf, ByteBuf, HttpChannel> {
+public class ReactorH... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/server/reactive/ResponseBodyWriteResultPublisher.java | @@ -28,6 +28,7 @@
/**
* Publisher returned from {@link ServerHttpResponse#writeWith(Publisher)}.
+ *
* @author Arjen Poutsma
* @since 5.0
*/ | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/server/reactive/RxNettyHttpHandlerAdapter.java | @@ -28,27 +28,27 @@
import org.springframework.util.Assert;
/**
+ * Adapt {@link HttpHandler} to the RxNetty {@link RequestHandler}.
+ *
* @author Rossen Stoyanchev
* @since 5.0
*/
public class RxNettyHttpHandlerAdapter implements RequestHandler<ByteBuf, ByteBuf> {
private final HttpHandler httpHandler;
... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/server/reactive/ServletHttpHandlerAdapter.java | @@ -34,6 +34,9 @@
import org.springframework.util.Assert;
/**
+ * Adapt {@link HttpHandler} to an {@link HttpServlet} using Servlet Async
+ * support and Servlet 3.1 Non-blocking I/O.
+ *
* @author Arjen Poutsma
* @author Rossen Stoyanchev
* @since 5.0
@@ -54,6 +57,7 @@ public class ServletHttpHandlerAdapter ... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/server/reactive/ServletServerHttpRequest.java | @@ -43,6 +43,7 @@
/**
* Adapt {@link ServerHttpRequest} to the Servlet {@link HttpServletRequest}.
+ *
* @author Rossen Stoyanchev
* @since 5.0
*/ | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/server/reactive/ServletServerHttpResponse.java | @@ -38,6 +38,7 @@
/**
* Adapt {@link ServerHttpResponse} to the Servlet {@link HttpServletResponse}.
+ *
* @author Rossen Stoyanchev
* @since 5.0
*/ | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/server/reactive/UndertowHttpHandlerAdapter.java | @@ -26,6 +26,8 @@
import org.springframework.util.Assert;
/**
+ * Adapt {@link HttpHandler} to the Undertow {@link io.undertow.server.HttpHandler}.
+ *
* @author Marek Hawrylczak
* @author Rossen Stoyanchev
* @author Arjen Poutsma
@@ -40,14 +42,15 @@ public class UndertowHttpHandlerAdapter implements io.under... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpRequest.java | @@ -39,7 +39,7 @@
import org.springframework.util.MultiValueMap;
/**
- * Adapt {@link ServerHttpRequest} to the Underow {@link HttpServerExchange}.
+ * Adapt {@link ServerHttpRequest} to the Undertow {@link HttpServerExchange}.
*
* @author Marek Hawrylczak
* @author Rossen Stoyanchev | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.