Polishing

This commit is contained in:
rstoyanchev 2022-09-07 17:38:31 +01:00
parent 616161f054
commit f669e957a9
2 changed files with 11 additions and 12 deletions

View File

@ -24,11 +24,11 @@ import java.lang.annotation.Target;
/** /**
* Annotation to declare a method on an RSocket service interface as an RSocket * Annotation to declare a method on an RSocket service interface as an RSocket
* endpoint. The endpoint route is defined statically through the annotation * endpoint. The endpoint route is determined through the annotation attribute,
* attributes, and through the input method argument types. * and through the method arguments.
* *
* <p>Supported at the type level to express common attributes, to be inherited * <p>The annotation is supported at the type level to express a common route,
* by all methods, such as a base route. * to be inherited by all methods.
* *
* <p>Supported method arguments: * <p>Supported method arguments:
* <table border="1"> * <table border="1">
@ -48,13 +48,13 @@ import java.lang.annotation.Target;
* <td>{@link PayloadArgumentResolver}</td> * <td>{@link PayloadArgumentResolver}</td>
* </tr> * </tr>
* <tr> * <tr>
* <td>{@link Object} argument followed by {@link org.springframework.util.MimeType} argument</td> * <td>{@link Object}, if followed by {@link org.springframework.util.MimeType}</td>
* <td>Add a metadata value</td> * <td>Add a metadata value</td>
* <td>{@link MetadataArgumentResolver}</td> * <td>{@link MetadataArgumentResolver}</td>
* </tr> * </tr>
* <tr> * <tr>
* <td>{@link org.springframework.util.MimeType} argument preceded by {@link Object} argument</td> * <td>{@link org.springframework.util.MimeType}</td>
* <td>Specify the mime type for the preceding metadata value</td> * <td>Set the MIME type for the metadata value in the preceding argument</td>
* <td>{@link MetadataArgumentResolver}</td> * <td>{@link MetadataArgumentResolver}</td>
* </tr> * </tr>
* </table> * </table>
@ -71,8 +71,9 @@ public @interface RSocketExchange {
* Destination-based mapping expressed by this annotation. This is either * Destination-based mapping expressed by this annotation. This is either
* {@link org.springframework.util.AntPathMatcher AntPathMatcher} or * {@link org.springframework.util.AntPathMatcher AntPathMatcher} or
* {@link org.springframework.web.util.pattern.PathPattern PathPattern} * {@link org.springframework.web.util.pattern.PathPattern PathPattern}
* based pattern, depending on which is configured, matched to the route of * based pattern, depending on which is configured via
* the stream request. * {@link org.springframework.messaging.rsocket.RSocketStrategies} in
* {@link org.springframework.messaging.rsocket.RSocketRequester}.
*/ */
String value() default ""; String value() default "";

View File

@ -964,7 +964,7 @@ method parameters:
| `Object`, if followed by `MimeType` | `Object`, if followed by `MimeType`
| The value for a metadata entry in the input payload. This can be any `Object` as long | The value for a metadata entry in the input payload. This can be any `Object` as long
as the next argument is the metadata entry `MimeType`. The value can be can a concrete as the next argument is the metadata entry `MimeType`. The value can be a concrete
value or any producer of a single value that can be adapted to a Reactive Streams value or any producer of a single value that can be adapted to a Reactive Streams
`Publisher` via `ReactiveAdapterRegistry`. `Publisher` via `ReactiveAdapterRegistry`.
@ -981,5 +981,3 @@ method parameters:
Annotated, RSocket exchange methods support return values that are concrete value(s), or Annotated, RSocket exchange methods support return values that are concrete value(s), or
any producer of value(s) that can be adapted to a Reactive Streams `Publisher` via any producer of value(s) that can be adapted to a Reactive Streams `Publisher` via
`ReactiveAdapterRegistry`. `ReactiveAdapterRegistry`.