You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-integration-rsocket/src/main/java/org/springframework/integration/rsocket/AbstractRSocketConnector.java
+17-7
Original file line number
Diff line number
Diff line change
@@ -61,12 +61,14 @@ public abstract class AbstractRSocketConnector
Copy file name to clipboardExpand all lines: spring-integration-rsocket/src/main/java/org/springframework/integration/rsocket/ClientRSocketConnector.java
Copy file name to clipboardExpand all lines: spring-integration-rsocket/src/main/java/org/springframework/integration/rsocket/IntegrationRSocketAcceptor.java
+1-2
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,6 @@
37
37
importorg.springframework.util.MimeType;
38
38
importorg.springframework.util.ReflectionUtils;
39
39
40
-
importio.rsocket.ConnectionSetupPayload;
41
40
importio.rsocket.RSocket;
42
41
43
42
/**
@@ -66,7 +65,7 @@ class IntegrationRSocketAcceptor extends RSocketMessageHandler implements Functi
66
65
/**
67
66
* Configure the default content type to use for data payloads.
68
67
* <p>By default this is not set. However a server acceptor will use the
69
-
* content type from the {@link ConnectionSetupPayload}, so this is typically
68
+
* content type from the {@link io.rsocket.ConnectionSetupPayload}, so this is typically
70
69
* required for clients but can also be used on servers as a fallback.
Copy file name to clipboardExpand all lines: spring-integration-rsocket/src/main/java/org/springframework/integration/rsocket/IntegrationRSocketEndpoint.java
Copy file name to clipboardExpand all lines: spring-integration-rsocket/src/main/java/org/springframework/integration/rsocket/ServerRSocketConnector.java
+24
Original file line number
Diff line number
Diff line change
@@ -69,25 +69,49 @@ public class ServerRSocketConnector extends AbstractRSocketConnector
69
69
70
70
privateMono<? extendsCloseable> serverMono;
71
71
72
+
/**
73
+
* Instantiate a server connector based on the {@link TcpServerTransport}.
74
+
* @param bindAddress the local address to bind TCP server onto.
Copy file name to clipboardExpand all lines: spring-integration-rsocket/src/main/java/org/springframework/integration/rsocket/config/RSocketNamespaceHandler.java
Copy file name to clipboardExpand all lines: spring-integration-rsocket/src/main/java/org/springframework/integration/rsocket/inbound/RSocketInboundGateway.java
+10-4
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@
55
55
56
56
/**
57
57
* The {@link MessagingGatewaySupport} implementation for the {@link IntegrationRSocketEndpoint}.
58
+
* Represents an inbound endpoint for RSocket requests.
58
59
* <p>
59
60
* May be configured with the {@link AbstractRSocketConnector} for mapping registration.
60
61
* Or existing {@link AbstractRSocketConnector} bean(s) will perform detection automatically.
@@ -92,6 +93,10 @@ public class RSocketInboundGateway extends MessagingGatewaySupport implements In
92
93
@Nullable
93
94
privateResolvableTyperequestElementType;
94
95
96
+
/**
97
+
* Instantiate based on the provided path patterns to map this endpoint for incoming RSocket requests.
98
+
* @param path the mapping patterns to use.
99
+
*/
95
100
publicRSocketInboundGateway(String... path) {
96
101
Assert.notNull(path, "'path' must not be null");
97
102
this.path = path;
@@ -123,7 +128,7 @@ public void setRSocketConnector(AbstractRSocketConnector rsocketConnector) {
123
128
* @return the mapping path
124
129
*/
125
130
publicString[] getPath() {
126
-
returnthis.path;
131
+
returnArrays.copyOf(this.path, this.path.length);
127
132
}
128
133
129
134
/**
@@ -151,9 +156,10 @@ public void setRequestElementType(ResolvableType requestElementType) {
Copy file name to clipboardExpand all lines: spring-integration-rsocket/src/main/java/org/springframework/integration/rsocket/outbound/RSocketOutboundGateway.java
0 commit comments