Add @Since 5.0 and package-info for reactive classes

This commit is contained in:
Rossen Stoyanchev 2016-07-14 17:39:32 -04:00
parent e2c7653da4
commit d2e105f28d
204 changed files with 266 additions and 32 deletions

View File

@ -30,6 +30,7 @@ import org.springframework.util.MimeType;
/** /**
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
public abstract class AbstractDecoder<T> implements Decoder<T> { public abstract class AbstractDecoder<T> implements Decoder<T> {

View File

@ -26,6 +26,7 @@ import org.springframework.util.MimeType;
/** /**
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
public abstract class AbstractEncoder<T> implements Encoder<T> { public abstract class AbstractEncoder<T> implements Encoder<T> {

View File

@ -28,6 +28,7 @@ import org.springframework.util.MimeType;
* Abstract base class for {@link org.springframework.core.codec.Encoder} classes that * Abstract base class for {@link org.springframework.core.codec.Encoder} classes that
* can only deal with a single value. * can only deal with a single value.
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
public abstract class AbstractSingleValueEncoder<T> extends AbstractEncoder<T> { public abstract class AbstractSingleValueEncoder<T> extends AbstractEncoder<T> {

View File

@ -30,6 +30,7 @@ import org.springframework.util.MimeTypeUtils;
/** /**
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
public class ByteBufferDecoder extends AbstractDecoder<ByteBuffer> { public class ByteBufferDecoder extends AbstractDecoder<ByteBuffer> {

View File

@ -29,6 +29,7 @@ import org.springframework.util.MimeTypeUtils;
/** /**
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.0
*/ */
public class ByteBufferEncoder extends AbstractEncoder<ByteBuffer> { public class ByteBufferEncoder extends AbstractEncoder<ByteBuffer> {

View File

@ -22,6 +22,7 @@ import org.springframework.core.NestedRuntimeException;
* Codec related exception, usually used as a wrapper for a cause exception. * Codec related exception, usually used as a wrapper for a cause exception.
* *
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.0
*/ */
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class CodecException extends NestedRuntimeException { public class CodecException extends NestedRuntimeException {

View File

@ -33,6 +33,7 @@ import org.springframework.util.MimeType;
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @param <T> the type of elements in the output stream * @param <T> the type of elements in the output stream
* @since 5.0
*/ */
public interface Decoder<T> { public interface Decoder<T> {

View File

@ -33,6 +33,7 @@ import org.springframework.util.MimeType;
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @param <T> the type of elements in the input stream * @param <T> the type of elements in the input stream
* @since 5.0
*/ */
public interface Encoder<T> { public interface Encoder<T> {

View File

@ -35,6 +35,7 @@ import org.springframework.util.MimeTypeUtils;
* A decoder for {@link Resource}s. * A decoder for {@link Resource}s.
* *
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
public class ResourceDecoder extends AbstractDecoder<Resource> { public class ResourceDecoder extends AbstractDecoder<Resource> {

View File

@ -34,6 +34,7 @@ import org.springframework.util.StreamUtils;
/** /**
* An encoder for {@link Resource}s. * An encoder for {@link Resource}s.
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
public class ResourceEncoder extends AbstractSingleValueEncoder<Resource> { public class ResourceEncoder extends AbstractSingleValueEncoder<Resource> {

View File

@ -44,6 +44,7 @@ import org.springframework.util.MimeTypeUtils;
* @author Brian Clozel * @author Brian Clozel
* @author Arjen Poutsma * @author Arjen Poutsma
* @author Mark Paluch * @author Mark Paluch
* @since 5.0
* @see StringEncoder * @see StringEncoder
*/ */
public class StringDecoder extends AbstractDecoder<String> { public class StringDecoder extends AbstractDecoder<String> {

View File

@ -31,6 +31,7 @@ import org.springframework.util.MimeType;
* Encode from a String stream to a bytes stream. * Encode from a String stream to a bytes stream.
* *
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.0
* @see StringDecoder * @see StringDecoder
*/ */
public class StringEncoder extends AbstractEncoder<String> { public class StringEncoder extends AbstractEncoder<String> {

View File

@ -1,6 +1,6 @@
/** /**
* Provides {@link org.springframework.core.codec.Encoder} and * {@link org.springframework.core.codec.Encoder} and
* {@link org.springframework.core.codec.Decoder} abstractions for converting * {@link org.springframework.core.codec.Decoder} abstractions to convert
* to and from between a stream of bytes and a stream of Java objects. * between a reactive stream of bytes and Java objects.
*/ */
package org.springframework.core.codec; package org.springframework.core.codec;

View File

@ -28,6 +28,7 @@ import org.springframework.core.convert.converter.GenericConverter;
/** /**
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.0
*/ */
public class MonoToCompletableFutureConverter implements GenericConverter { public class MonoToCompletableFutureConverter implements GenericConverter {

View File

@ -35,6 +35,7 @@ import org.springframework.core.convert.converter.GenericConverter;
/** /**
* @author Stephane Maldini * @author Stephane Maldini
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.0
*/ */
public final class ReactorToRxJava1Converter implements GenericConverter { public final class ReactorToRxJava1Converter implements GenericConverter {

View File

@ -25,6 +25,7 @@ import java.util.function.IntPredicate;
* Basic abstraction over byte buffers. * Basic abstraction over byte buffers.
* *
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
public interface DataBuffer { public interface DataBuffer {

View File

@ -24,6 +24,7 @@ import java.nio.ByteBuffer;
* *
* @author Arjen Poutsma * @author Arjen Poutsma
* @see DataBuffer * @see DataBuffer
* @since 5.0
*/ */
public interface DataBufferFactory { public interface DataBufferFactory {

View File

@ -33,6 +33,7 @@ import org.springframework.util.ObjectUtils;
* using the {@link DefaultDataBufferFactory}. * using the {@link DefaultDataBufferFactory}.
* *
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
* @see DefaultDataBufferFactory * @see DefaultDataBufferFactory
*/ */
public class DefaultDataBuffer implements DataBuffer { public class DefaultDataBuffer implements DataBuffer {

View File

@ -26,6 +26,7 @@ import org.springframework.util.Assert;
* heap-based or direct buffers are to be preferred. * heap-based or direct buffers are to be preferred.
* *
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
public class DefaultDataBufferFactory implements DataBufferFactory { public class DefaultDataBufferFactory implements DataBufferFactory {

View File

@ -26,6 +26,7 @@ import java.util.function.IntPredicate;
* previously buffered data should be flushed. * previously buffered data should be flushed.
* *
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.0
* @see FlushingDataBuffer#INSTANCE * @see FlushingDataBuffer#INSTANCE
*/ */
public class FlushingDataBuffer implements DataBuffer { public class FlushingDataBuffer implements DataBuffer {

View File

@ -36,6 +36,7 @@ import org.springframework.util.ObjectUtils;
* Typically constructed using the {@link NettyDataBufferFactory}. * Typically constructed using the {@link NettyDataBufferFactory}.
* *
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
public class NettyDataBuffer implements PooledDataBuffer { public class NettyDataBuffer implements PooledDataBuffer {

View File

@ -29,6 +29,7 @@ import org.springframework.util.Assert;
* {@link ByteBufAllocator}. * {@link ByteBufAllocator}.
* *
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
* @see io.netty.buffer.PooledByteBufAllocator * @see io.netty.buffer.PooledByteBufAllocator
* @see io.netty.buffer.UnpooledByteBufAllocator * @see io.netty.buffer.UnpooledByteBufAllocator
*/ */

View File

@ -21,6 +21,7 @@ package org.springframework.core.io.buffer;
* Introduces methods for reference counting. * Introduces methods for reference counting.
* *
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
public interface PooledDataBuffer extends DataBuffer { public interface PooledDataBuffer extends DataBuffer {

View File

@ -0,0 +1,4 @@
/**
* Generic abstraction for working with byte buffer implementations.
*/
package org.springframework.core.io.buffer;

View File

@ -38,6 +38,7 @@ import org.springframework.util.Assert;
* Utility class for working with {@link DataBuffer}s. * Utility class for working with {@link DataBuffer}s.
* *
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
public abstract class DataBufferUtils { public abstract class DataBufferUtils {

View File

@ -0,0 +1,4 @@
/**
* Support classes for Spring's byte buffer abstraction.
*/
package org.springframework.core.io.buffer.support;

View File

@ -327,6 +327,7 @@ public abstract class MimeTypeUtils {
* Framework. * Framework.
* @param filename the filename whose mime type is to be found * @param filename the filename whose mime type is to be found
* @return the mime type, if any * @return the mime type, if any
* @since 5.0
*/ */
public static Optional<MimeType> getMimeType(String filename) { public static Optional<MimeType> getMimeType(String filename) {
if (filename != null) { if (filename != null) {

View File

@ -28,6 +28,7 @@ import org.springframework.util.ClassUtils;
/** /**
* Abstract base class for {@code XMLEventReader}s. * Abstract base class for {@code XMLEventReader}s.
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
abstract class AbstractXMLEventReader implements XMLEventReader { abstract class AbstractXMLEventReader implements XMLEventReader {

View File

@ -27,6 +27,7 @@ import org.springframework.util.Assert;
* Implementation of {@code XMLEventReader} based on a list of {@link XMLEvent}s. * Implementation of {@code XMLEventReader} based on a list of {@link XMLEvent}s.
* *
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
class ListBasedXMLEventReader extends AbstractXMLEventReader { class ListBasedXMLEventReader extends AbstractXMLEventReader {

View File

@ -53,6 +53,7 @@ import org.springframework.web.server.WebHandler;
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.0
*/ */
public class DispatcherHandler implements WebHandler, ApplicationContextAware { public class DispatcherHandler implements WebHandler, ApplicationContextAware {

View File

@ -28,6 +28,7 @@ import org.springframework.web.server.ServerWebExchange;
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.0
*/ */
public interface HandlerAdapter { public interface HandlerAdapter {

View File

@ -26,6 +26,7 @@ import org.springframework.web.server.ServerWebExchange;
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.0
*/ */
public interface HandlerMapping { public interface HandlerMapping {

View File

@ -31,6 +31,7 @@ import org.springframework.util.Assert;
* Represent the result of the invocation of a handler. * Represent the result of the invocation of a handler.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class HandlerResult { public class HandlerResult {

View File

@ -25,6 +25,7 @@ import org.springframework.web.server.ServerWebExchange;
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.0
*/ */
public interface HandlerResultHandler { public interface HandlerResultHandler {

View File

@ -25,6 +25,7 @@ import org.springframework.web.server.ServerWebExchange;
* Handle {@link ResponseStatusException} by setting the response status. * Handle {@link ResponseStatusException} by setting the response status.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class ResponseStatusExceptionHandler implements WebExceptionHandler { public class ResponseStatusExceptionHandler implements WebExceptionHandler {

View File

@ -39,6 +39,7 @@ import org.springframework.web.server.ServerWebExchange;
* extension, query parameter, etc) for a given exchange. * extension, query parameter, etc) for a given exchange.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public abstract class AbstractMappingContentTypeResolver implements MappingContentTypeResolver { public abstract class AbstractMappingContentTypeResolver implements MappingContentTypeResolver {

View File

@ -35,6 +35,7 @@ import org.springframework.web.server.ServerWebExchange;
* {@code MappingContentTypeResolver}. * {@code MappingContentTypeResolver}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class CompositeContentTypeResolver implements MappingContentTypeResolver { public class CompositeContentTypeResolver implements MappingContentTypeResolver {

View File

@ -26,6 +26,7 @@ import org.springframework.web.server.ServerWebExchange;
* A {@link RequestedContentTypeResolver} that resolves to a fixed list of media types. * A {@link RequestedContentTypeResolver} that resolves to a fixed list of media types.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class FixedContentTypeResolver implements RequestedContentTypeResolver { public class FixedContentTypeResolver implements RequestedContentTypeResolver {

View File

@ -26,6 +26,7 @@ import org.springframework.web.server.ServerWebExchange;
* A {@link RequestedContentTypeResolver} that checks the 'Accept' request header. * A {@link RequestedContentTypeResolver} that checks the 'Accept' request header.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class HeaderContentTypeResolver implements RequestedContentTypeResolver { public class HeaderContentTypeResolver implements RequestedContentTypeResolver {

View File

@ -25,6 +25,7 @@ import org.springframework.http.MediaType;
* keys (e.g. file extension, query parameter) and media types. * keys (e.g. file extension, query parameter) and media types.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public interface MappingContentTypeResolver extends RequestedContentTypeResolver { public interface MappingContentTypeResolver extends RequestedContentTypeResolver {

View File

@ -29,8 +29,9 @@ import org.springframework.web.server.ServerWebExchange;
/** /**
* A {@link RequestedContentTypeResolver} that extracts the media type lookup key from a * A {@link RequestedContentTypeResolver} that extracts the media type lookup key from a
* known query parameter named "format" by default. * known query parameter named "format" by default.
*s *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class ParameterContentTypeResolver extends AbstractMappingContentTypeResolver { public class ParameterContentTypeResolver extends AbstractMappingContentTypeResolver {

View File

@ -40,6 +40,7 @@ import org.springframework.web.util.WebUtils;
* the {@link #setUseJaf(boolean)} property may be set to false. * the {@link #setUseJaf(boolean)} property may be set to false.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class PathExtensionContentTypeResolver extends AbstractMappingContentTypeResolver { public class PathExtensionContentTypeResolver extends AbstractMappingContentTypeResolver {

View File

@ -25,6 +25,7 @@ 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 * @author Rossen Stoyanchev
* @since 5.0
*/ */
public interface RequestedContentTypeResolver { public interface RequestedContentTypeResolver {

View File

@ -78,6 +78,7 @@ import org.springframework.util.CollectionUtils;
* {@link #useJaf suppress} the use of JAF. * {@link #useJaf suppress} the use of JAF.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class RequestedContentTypeResolverBuilder { public class RequestedContentTypeResolverBuilder {

View File

@ -1,5 +1,6 @@
/** /**
* This package provides support for various strategies to resolve the requested * {@link org.springframework.web.reactive.accept.RequestedContentTypeResolver}
* content type for a given request. * strategy and implementations to resolve the requested content type for a
* given request.
*/ */
package org.springframework.web.reactive.accept; package org.springframework.web.reactive.accept;

View File

@ -22,6 +22,7 @@ import org.springframework.web.util.HttpRequestPathHelper;
* Assist with configuring {@code HandlerMapping}'s with path matching options. * Assist with configuring {@code HandlerMapping}'s with path matching options.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class PathMatchConfigurer { public class PathMatchConfigurer {

View File

@ -22,6 +22,7 @@ import org.springframework.web.reactive.result.view.UrlBasedViewResolver;
* Assist with configuring properties of a {@link UrlBasedViewResolver}. * Assist with configuring properties of a {@link UrlBasedViewResolver}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class UrlBasedViewResolverRegistration { public class UrlBasedViewResolverRegistration {

View File

@ -41,6 +41,7 @@ import org.springframework.web.reactive.result.view.freemarker.FreeMarkerViewRes
* JSON, XML, etc. * JSON, XML, etc.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class ViewResolverRegistry { public class ViewResolverRegistry {

View File

@ -71,6 +71,7 @@ import org.springframework.web.reactive.result.view.ViewResolver;
* <p>Import directly or extend and override protected methods to customize. * <p>Import directly or extend and override protected methods to customize.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
@Configuration @SuppressWarnings("unused") @Configuration @SuppressWarnings("unused")
public class WebReactiveConfiguration implements ApplicationContextAware { public class WebReactiveConfiguration implements ApplicationContextAware {

View File

@ -28,6 +28,7 @@ import org.springframework.web.util.HttpRequestPathHelper;
* implementations. * implementations.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public abstract class AbstractHandlerMapping extends ApplicationObjectSupport public abstract class AbstractHandlerMapping extends ApplicationObjectSupport
implements HandlerMapping, Ordered { implements HandlerMapping, Ordered {

View File

@ -44,6 +44,7 @@ import org.springframework.web.server.ServerWebExchange;
* path pattern that matches the current request path. * path pattern that matches the current request path.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public abstract class AbstractUrlHandlerMapping extends AbstractHandlerMapping { public abstract class AbstractUrlHandlerMapping extends AbstractHandlerMapping {

View File

@ -49,6 +49,7 @@ import org.springframework.util.CollectionUtils;
* {@link org.springframework.util.AntPathMatcher AntPathMatcher} javadoc. * {@link org.springframework.util.AntPathMatcher AntPathMatcher} javadoc.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class SimpleUrlHandlerMapping extends AbstractUrlHandlerMapping { public class SimpleUrlHandlerMapping extends AbstractUrlHandlerMapping {

View File

@ -1,5 +1,4 @@
/** /**
* Provides standard HandlerMapping implementations, * Provides HandlerMapping implementations including abstract base classes.
* including abstract base classes for custom implementations.
*/ */
package org.springframework.web.reactive.handler; package org.springframework.web.reactive.handler;

View File

@ -36,6 +36,7 @@ import org.springframework.web.server.ServerWebExchange;
* HandlerResultHandler} implementations that perform content negotiation. * HandlerResultHandler} implementations that perform content negotiation.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public abstract class ContentNegotiatingResultHandlerSupport implements Ordered { public abstract class ContentNegotiatingResultHandlerSupport implements Ordered {

View File

@ -33,6 +33,7 @@ import org.springframework.web.server.WebHandler;
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.0
*/ */
public class SimpleHandlerAdapter implements HandlerAdapter { public class SimpleHandlerAdapter implements HandlerAdapter {

View File

@ -41,6 +41,7 @@ import org.springframework.web.server.ServerWebExchange;
* *
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class SimpleResultHandler implements Ordered, HandlerResultHandler { public class SimpleResultHandler implements Ordered, HandlerResultHandler {

View File

@ -30,6 +30,7 @@ import org.springframework.web.server.UnsupportedMediaTypeStatusException;
* {@link RequestMapping#consumes()} and {@link RequestMapping#produces()}. * {@link RequestMapping#consumes()} and {@link RequestMapping#produces()}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
abstract class AbstractMediaTypeExpression implements Comparable<AbstractMediaTypeExpression>, MediaTypeExpression { abstract class AbstractMediaTypeExpression implements Comparable<AbstractMediaTypeExpression>, MediaTypeExpression {

View File

@ -24,6 +24,7 @@ import org.springframework.web.server.ServerWebExchange;
* {@link org.springframework.web.bind.annotation.RequestMapping#headers()}. * {@link org.springframework.web.bind.annotation.RequestMapping#headers()}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
abstract class AbstractNameValueExpression<T> implements NameValueExpression<T> { abstract class AbstractNameValueExpression<T> implements NameValueExpression<T> {

View File

@ -24,6 +24,7 @@ import java.util.Iterator;
* {@link #equals(Object)}, {@link #hashCode()}, and {@link #toString()}. * {@link #equals(Object)}, {@link #hashCode()}, and {@link #toString()}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public abstract class AbstractRequestCondition<T extends AbstractRequestCondition<T>> public abstract class AbstractRequestCondition<T extends AbstractRequestCondition<T>>
implements RequestCondition<T> { implements RequestCondition<T> {

View File

@ -36,6 +36,7 @@ import org.springframework.web.server.ServerWebExchange;
* provide {@code null} conditions or no conditions at all to the constructor. * provide {@code null} conditions or no conditions at all to the constructor.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class CompositeRequestCondition extends AbstractRequestCondition<CompositeRequestCondition> { public class CompositeRequestCondition extends AbstractRequestCondition<CompositeRequestCondition> {

View File

@ -39,6 +39,7 @@ import org.springframework.web.server.UnsupportedMediaTypeStatusException;
* used, the semantics are the same. * used, the semantics are the same.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public final class ConsumesRequestCondition extends AbstractRequestCondition<ConsumesRequestCondition> { public final class ConsumesRequestCondition extends AbstractRequestCondition<ConsumesRequestCondition> {

View File

@ -33,6 +33,7 @@ import org.springframework.web.server.ServerWebExchange;
* {@link ProducesRequestCondition} for those. * {@link ProducesRequestCondition} for those.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public final class HeadersRequestCondition extends AbstractRequestCondition<HeadersRequestCondition> { public final class HeadersRequestCondition extends AbstractRequestCondition<HeadersRequestCondition> {

View File

@ -24,6 +24,7 @@ import org.springframework.http.MediaType;
* "produces" conditions. * "produces" conditions.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public interface MediaTypeExpression { public interface MediaTypeExpression {

View File

@ -21,6 +21,7 @@ package org.springframework.web.reactive.result.condition;
* parameters and request header conditions in {@code @RequestMapping}. * parameters and request header conditions in {@code @RequestMapping}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public interface NameValueExpression<T> { public interface NameValueExpression<T> {

View File

@ -29,6 +29,7 @@ import org.springframework.web.server.ServerWebExchange;
* a set parameter expressions with syntax defined in {@link RequestMapping#params()}. * a set parameter expressions with syntax defined in {@link RequestMapping#params()}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public final class ParamsRequestCondition extends AbstractRequestCondition<ParamsRequestCondition> { public final class ParamsRequestCondition extends AbstractRequestCondition<ParamsRequestCondition> {

View File

@ -38,6 +38,7 @@ import org.springframework.web.util.HttpRequestPathHelper;
* against a set of URL path patterns. * against a set of URL path patterns.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public final class PatternsRequestCondition extends AbstractRequestCondition<PatternsRequestCondition> { public final class PatternsRequestCondition extends AbstractRequestCondition<PatternsRequestCondition> {

View File

@ -41,6 +41,7 @@ import org.springframework.web.server.ServerWebExchange;
* Regardless of which syntax is used, the semantics are the same. * Regardless of which syntax is used, the semantics are the same.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public final class ProducesRequestCondition extends AbstractRequestCondition<ProducesRequestCondition> { public final class ProducesRequestCondition extends AbstractRequestCondition<ProducesRequestCondition> {

View File

@ -26,9 +26,11 @@ import org.springframework.web.server.ServerWebExchange;
* to each other via {@link #compareTo(Object, ServerWebExchange)} to determine * to each other via {@link #compareTo(Object, ServerWebExchange)} to determine
* which is a closer match for a given request. * which is a closer match for a given request.
* *
* @author Rossen Stoyanchev
* @param <T> the type of objects that this RequestCondition can be combined * @param <T> the type of objects that this RequestCondition can be combined
* with and compared to * with and compared to
*
* @author Rossen Stoyanchev
* @since 5.0
*/ */
public interface RequestCondition<T> { public interface RequestCondition<T> {

View File

@ -33,6 +33,7 @@ import org.springframework.web.server.ServerWebExchange;
* If they are not, a {@link ClassCastException} is raised. * If they are not, a {@link ClassCastException} is raised.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public final class RequestConditionHolder extends AbstractRequestCondition<RequestConditionHolder> { public final class RequestConditionHolder extends AbstractRequestCondition<RequestConditionHolder> {

View File

@ -34,6 +34,7 @@ import org.springframework.web.server.ServerWebExchange;
* against a set of {@link RequestMethod}s. * against a set of {@link RequestMethod}s.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public final class RequestMethodsRequestCondition extends AbstractRequestCondition<RequestMethodsRequestCondition> { public final class RequestMethodsRequestCondition extends AbstractRequestCondition<RequestMethodsRequestCondition> {

View File

@ -1,6 +1,5 @@
/** /**
* Support for mapping requests based on a * {@link org.springframework.web.reactive.result.condition.RequestCondition}
* {@link org.springframework.web.reactive.result.condition.RequestCondition * and implementations for matching requests based on different criteria.
* RequestCondition} type hierarchy.
*/ */
package org.springframework.web.reactive.result.condition; package org.springframework.web.reactive.result.condition;

View File

@ -49,9 +49,11 @@ import org.springframework.web.server.ServerWebExchange;
* <p>For each registered handler method, a unique mapping is maintained with * <p>For each registered handler method, a unique mapping is maintained with
* subclasses defining the details of the mapping type {@code <T>}. * subclasses defining the details of the mapping type {@code <T>}.
* *
* @author Rossen Stoyanchev
* @param <T> The mapping for a {@link HandlerMethod} containing the conditions * @param <T> The mapping for a {@link HandlerMethod} containing the conditions
* needed to match the handler method to incoming request. * needed to match the handler method to incoming request.
*
* @author Rossen Stoyanchev
* @since 5.0
*/ */
public abstract class AbstractHandlerMethodMapping<T> extends AbstractHandlerMapping implements InitializingBean { public abstract class AbstractHandlerMethodMapping<T> extends AbstractHandlerMapping implements InitializingBean {

View File

@ -25,6 +25,7 @@ import org.springframework.web.server.ServerWebExchange;
/** /**
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public interface HandlerMethodArgumentResolver { public interface HandlerMethodArgumentResolver {

View File

@ -41,6 +41,7 @@ import org.springframework.web.server.ServerWebExchange;
/** /**
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class InvocableHandlerMethod extends HandlerMethod { public class InvocableHandlerMethod extends HandlerMethod {

View File

@ -47,6 +47,7 @@ import org.springframework.web.util.HttpRequestPathHelper;
* </ol> * </ol>
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public final class RequestMappingInfo implements RequestCondition<RequestMappingInfo> { public final class RequestMappingInfo implements RequestCondition<RequestMappingInfo> {

View File

@ -51,6 +51,7 @@ import org.springframework.web.server.UnsupportedMediaTypeStatusException;
* the mapping between a request and a handler method. * the mapping between a request and a handler method.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public abstract class RequestMappingInfoHandlerMapping extends AbstractHandlerMethodMapping<RequestMappingInfo> { public abstract class RequestMappingInfoHandlerMapping extends AbstractHandlerMethodMapping<RequestMappingInfo> {

View File

@ -53,6 +53,7 @@ import org.springframework.web.server.UnsupportedMediaTypeStatusException;
* failure results in an {@link ServerWebInputException}. * failure results in an {@link ServerWebInputException}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public abstract class AbstractMessageConverterArgumentResolver { public abstract class AbstractMessageConverterArgumentResolver {

View File

@ -40,6 +40,7 @@ import org.springframework.web.server.ServerWebExchange;
* to the response with {@link HttpMessageConverter}. * to the response with {@link HttpMessageConverter}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public abstract class AbstractMessageConverterResultHandler extends ContentNegotiatingResultHandlerSupport { public abstract class AbstractMessageConverterResultHandler extends ContentNegotiatingResultHandlerSupport {

View File

@ -53,6 +53,7 @@ import org.springframework.web.server.ServerWebInputException;
* {@link ConfigurableBeanFactory} must be supplied to the class constructor. * {@link ConfigurableBeanFactory} must be supplied to the class constructor.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public abstract class AbstractNamedValueMethodArgumentResolver implements HandlerMethodArgumentResolver { public abstract class AbstractNamedValueMethodArgumentResolver implements HandlerMethodArgumentResolver {

View File

@ -34,6 +34,7 @@ import org.springframework.web.server.ServerWebInputException;
* does not exist. * does not exist.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class CookieValueMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver { public class CookieValueMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver {

View File

@ -32,6 +32,7 @@ import org.springframework.web.server.ServerWebExchange;
* Language #{...} expressions. * Language #{...} expressions.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class ExpressionValueMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver { public class ExpressionValueMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver {

View File

@ -38,6 +38,7 @@ import org.springframework.web.server.ServerWebExchange;
* {@code HttpMessageConverter}. * {@code HttpMessageConverter}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class HttpEntityArgumentResolver extends AbstractMessageConverterArgumentResolver public class HttpEntityArgumentResolver extends AbstractMessageConverterArgumentResolver
implements HandlerMethodArgumentResolver { implements HandlerMethodArgumentResolver {

View File

@ -27,6 +27,7 @@ import org.springframework.web.server.ServerWebExchange;
* Resolver for the {@link Model} controller method argument. * Resolver for the {@link Model} controller method argument.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class ModelArgumentResolver implements HandlerMethodArgumentResolver { public class ModelArgumentResolver implements HandlerMethodArgumentResolver {

View File

@ -37,6 +37,7 @@ import org.springframework.web.server.ServerWebExchange;
* template name-value pairs. * template name-value pairs.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
* @see PathVariableMethodArgumentResolver * @see PathVariableMethodArgumentResolver
*/ */
public class PathVariableMapMethodArgumentResolver implements HandlerMethodArgumentResolver { public class PathVariableMapMethodArgumentResolver implements HandlerMethodArgumentResolver {

View File

@ -48,6 +48,7 @@ import org.springframework.web.server.ServerWebExchange;
* {@link Converter}. * {@link Converter}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
* @see PathVariableMapMethodArgumentResolver * @see PathVariableMapMethodArgumentResolver
*/ */
public class PathVariableMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver { public class PathVariableMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver {

View File

@ -29,6 +29,7 @@ import org.springframework.web.server.ServerWebInputException;
* Resolves method arguments annotated with an @{@link RequestAttribute}. * Resolves method arguments annotated with an @{@link RequestAttribute}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
* @see SessionAttributeMethodArgumentResolver * @see SessionAttributeMethodArgumentResolver
*/ */
public class RequestAttributeMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver { public class RequestAttributeMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver {

View File

@ -42,6 +42,7 @@ import org.springframework.web.server.ServerWebInputException;
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @author Stephane Maldini * @author Stephane Maldini
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class RequestBodyArgumentResolver extends AbstractMessageConverterArgumentResolver public class RequestBodyArgumentResolver extends AbstractMessageConverterArgumentResolver
implements HandlerMethodArgumentResolver { implements HandlerMethodArgumentResolver {

View File

@ -38,6 +38,7 @@ import org.springframework.web.server.ServerWebExchange;
* values for a header, not only the first one. * values for a header, not only the first one.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
* @see RequestHeaderMethodArgumentResolver * @see RequestHeaderMethodArgumentResolver
*/ */
public class RequestHeaderMapMethodArgumentResolver implements HandlerMethodArgumentResolver { public class RequestHeaderMapMethodArgumentResolver implements HandlerMethodArgumentResolver {

View File

@ -41,6 +41,7 @@ import org.springframework.web.server.ServerWebInputException;
* request header values that don't yet match the method parameter type. * request header values that don't yet match the method parameter type.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
* @see RequestHeaderMapMethodArgumentResolver * @see RequestHeaderMapMethodArgumentResolver
*/ */
public class RequestHeaderMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver { public class RequestHeaderMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver {

View File

@ -53,6 +53,7 @@ import org.springframework.web.server.ServerWebExchange;
* Supports the invocation of {@code @RequestMapping} methods. * Supports the invocation of {@code @RequestMapping} methods.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class RequestMappingHandlerAdapter implements HandlerAdapter, BeanFactoryAware, InitializingBean { public class RequestMappingHandlerAdapter implements HandlerAdapter, BeanFactoryAware, InitializingBean {

View File

@ -38,6 +38,7 @@ import org.springframework.web.reactive.result.method.RequestMappingInfoHandlerM
* {@link RequestMapping @RequestMapping} annotations. * {@link RequestMapping @RequestMapping} annotations.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class RequestMappingHandlerMapping extends RequestMappingInfoHandlerMapping public class RequestMappingHandlerMapping extends RequestMappingInfoHandlerMapping
implements EmbeddedValueResolverAware { implements EmbeddedValueResolverAware {

View File

@ -40,6 +40,7 @@ import org.springframework.web.server.ServerWebExchange;
* request parameters have multiple values. * request parameters have multiple values.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
* @see RequestParamMethodArgumentResolver * @see RequestParamMethodArgumentResolver
*/ */
public class RequestParamMapMethodArgumentResolver implements HandlerMethodArgumentResolver { public class RequestParamMapMethodArgumentResolver implements HandlerMethodArgumentResolver {

View File

@ -48,6 +48,7 @@ import org.springframework.web.server.ServerWebInputException;
* to provide access to all request parameters in the form of a map. * to provide access to all request parameters in the form of a map.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
* @see RequestParamMapMethodArgumentResolver * @see RequestParamMapMethodArgumentResolver
*/ */
public class RequestParamMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver { public class RequestParamMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver {

View File

@ -48,6 +48,7 @@ import org.springframework.web.server.ServerWebExchange;
* @author Stephane Maldini * @author Stephane Maldini
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 5.0
*/ */
public class ResponseBodyResultHandler extends AbstractMessageConverterResultHandler public class ResponseBodyResultHandler extends AbstractMessageConverterResultHandler
implements HandlerResultHandler { implements HandlerResultHandler {

View File

@ -42,6 +42,7 @@ import org.springframework.web.server.ServerWebExchange;
* safe to place it early in the order as it looks for a concrete return type. * safe to place it early in the order as it looks for a concrete return type.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class ResponseEntityResultHandler extends AbstractMessageConverterResultHandler public class ResponseEntityResultHandler extends AbstractMessageConverterResultHandler
implements HandlerResultHandler { implements HandlerResultHandler {

View File

@ -31,6 +31,7 @@ import org.springframework.web.server.ServerWebInputException;
* Resolves method arguments annotated with an @{@link SessionAttribute}. * Resolves method arguments annotated with an @{@link SessionAttribute}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
* @see RequestAttributeMethodArgumentResolver * @see RequestAttributeMethodArgumentResolver
*/ */
public class SessionAttributeMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver { public class SessionAttributeMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver {

View File

@ -1,6 +1,7 @@
/** /**
* Support for various programming model styles including the invocation of * Support for various programming model styles including the invocation of
* different types of handlers (e.g. annotated controllers, simple WebHandler, * different types of handlers, e.g. annotated controller vs simple WebHandler,
* etc) as well as result handling (@ResponseBody, view resolution, etc). * including the handling of handler result values, e.g. @ResponseBody, view
* resolution, and so on.
*/ */
package org.springframework.web.reactive.result; package org.springframework.web.reactive.result;

View File

@ -24,6 +24,7 @@ import org.springframework.beans.factory.InitializingBean;
* holding the URL that a View wraps, in the form of a "url" bean property. * holding the URL that a View wraps, in the form of a "url" bean property.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public abstract class AbstractUrlBasedView extends AbstractView implements InitializingBean { public abstract class AbstractUrlBasedView extends AbstractView implements InitializingBean {

View File

@ -36,6 +36,7 @@ import org.springframework.web.server.ServerWebExchange;
/** /**
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public abstract class AbstractView implements View, ApplicationContextAware { public abstract class AbstractView implements View, ApplicationContextAware {

View File

@ -40,6 +40,7 @@ import org.springframework.web.server.ServerWebExchange;
* A {@link View} that delegates to an {@link HttpMessageConverter}. * A {@link View} that delegates to an {@link HttpMessageConverter}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 5.0
*/ */
public class HttpMessageConverterView implements View { public class HttpMessageConverterView implements View {

Some files were not shown because too many files have changed in this diff Show More