|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2023 the original author or authors. |
|
|
|
* Copyright 2002-2024 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -63,7 +63,7 @@ public final class ReactiveHttpRequestValues extends HttpRequestValues { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Return a {@link Publisher} that will produce for the request body. |
|
|
|
* Return a {@link Publisher} that will produce the request body. |
|
|
|
* <p>This is mutually exclusive with {@link #getBodyValue()}. |
|
|
|
* <p>This is mutually exclusive with {@link #getBodyValue()}. |
|
|
|
* Only one of the two or neither is set. |
|
|
|
* Only one of the two or neither is set. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -73,7 +73,7 @@ public final class ReactiveHttpRequestValues extends HttpRequestValues { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Return the element type for a {@linkplain #getBodyPublisher() Publisher body}. |
|
|
|
* Return the element type for a {@linkplain #getBodyPublisher() body publisher}. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Nullable |
|
|
|
@Nullable |
|
|
|
public ParameterizedTypeReference<?> getBodyPublisherElementType() { |
|
|
|
public ParameterizedTypeReference<?> getBodyPublisherElementType() { |
|
|
|
@ -81,7 +81,7 @@ public final class ReactiveHttpRequestValues extends HttpRequestValues { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Return the request body as a Publisher. |
|
|
|
* Return the request body as a {@link Publisher}. |
|
|
|
* <p>This is mutually exclusive with {@link #getBodyValue()}. |
|
|
|
* <p>This is mutually exclusive with {@link #getBodyValue()}. |
|
|
|
* Only one of the two or neither is set. |
|
|
|
* Only one of the two or neither is set. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -92,7 +92,7 @@ public final class ReactiveHttpRequestValues extends HttpRequestValues { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Return the element type for a {@linkplain #getBodyPublisher() Publisher body}. |
|
|
|
* Return the element type for a {@linkplain #getBodyPublisher() body publisher}. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@SuppressWarnings("removal") |
|
|
|
@SuppressWarnings("removal") |
|
|
|
@Nullable |
|
|
|
@Nullable |
|
|
|
@ -217,8 +217,9 @@ public final class ReactiveHttpRequestValues extends HttpRequestValues { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* {@inheritDoc} |
|
|
|
* {@inheritDoc} |
|
|
|
* <p>This is mutually exclusive with, and resets any previously set |
|
|
|
* <p>This is mutually exclusive with and resets any previously set |
|
|
|
* {@linkplain #setBodyPublisher(Publisher, ParameterizedTypeReference)}. |
|
|
|
* {@linkplain #setBodyPublisher(Publisher, ParameterizedTypeReference) |
|
|
|
|
|
|
|
* body publisher}. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void setBodyValue(Object bodyValue) { |
|
|
|
public void setBodyValue(Object bodyValue) { |
|
|
|
@ -228,8 +229,8 @@ public final class ReactiveHttpRequestValues extends HttpRequestValues { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Set the request body as a Reactive Streams Publisher. |
|
|
|
* Set the request body as a Reactive Streams {@link Publisher}. |
|
|
|
* <p>This is mutually exclusive with, and resets any previously set |
|
|
|
* <p>This is mutually exclusive with and resets any previously set |
|
|
|
* {@linkplain #setBodyValue(Object) body value}. |
|
|
|
* {@linkplain #setBodyValue(Object) body value}. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@SuppressWarnings("DataFlowIssue") |
|
|
|
@SuppressWarnings("DataFlowIssue") |
|
|
|
|