Package com.alibaba.spring.boot.rsocket
Class RSocketRequesterSupportImpl
java.lang.Object
com.alibaba.spring.boot.rsocket.RSocketRequesterSupportImpl
- All Implemented Interfaces:
RSocketRequesterSupport,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class RSocketRequesterSupportImpl
extends Object
implements RSocketRequesterSupport, org.springframework.context.ApplicationContextAware
RSocket Requester Support implementation: setup payload, published service, token and app info
- Author:
- leijuan
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected Stringprotected Propertiesprotected char[]protected RSocketPropertiesprotected List<io.rsocket.plugins.RSocketInterceptor>protected List<io.rsocket.plugins.RSocketInterceptor>protected io.rsocket.SocketAcceptor -
Constructor Summary
ConstructorsConstructorDescriptionRSocketRequesterSupportImpl(RSocketProperties properties, Properties env, io.rsocket.SocketAcceptor socketAcceptor) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequesterInterceptor(io.rsocket.plugins.RSocketInterceptor interceptor) voidaddResponderInterceptor(io.rsocket.plugins.RSocketInterceptor interceptor) inputStreamToString(InputStream inputStream) List<io.rsocket.plugins.RSocketInterceptor>List<io.rsocket.plugins.RSocketInterceptor>voidsetApplicationContext(@NotNull org.springframework.context.ApplicationContext applicationContext) Supplier<io.rsocket.Payload>setupPayload(String serviceId) io.rsocket.SocketAcceptor
-
Field Details
-
env
-
properties
-
appName
-
jwtToken
protected char[] jwtToken -
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
socketAcceptor
protected io.rsocket.SocketAcceptor socketAcceptor -
responderInterceptors
-
requestInterceptors
-
-
Constructor Details
-
RSocketRequesterSupportImpl
public RSocketRequesterSupportImpl(RSocketProperties properties, Properties env, io.rsocket.SocketAcceptor socketAcceptor)
-
-
Method Details
-
originUri
- Specified by:
originUriin interfaceRSocketRequesterSupport
-
setupPayload
- Specified by:
setupPayloadin interfaceRSocketRequesterSupport
-
exposedServices
- Specified by:
exposedServicesin interfaceRSocketRequesterSupport
-
subscribedServices
- Specified by:
subscribedServicesin interfaceRSocketRequesterSupport
-
servicesExposedEvent
- Specified by:
servicesExposedEventin interfaceRSocketRequesterSupport
-
socketAcceptor
public io.rsocket.SocketAcceptor socketAcceptor()- Specified by:
socketAcceptorin interfaceRSocketRequesterSupport
-
responderInterceptors
- Specified by:
responderInterceptorsin interfaceRSocketRequesterSupport
-
addResponderInterceptor
public void addResponderInterceptor(io.rsocket.plugins.RSocketInterceptor interceptor) -
requestInterceptors
- Specified by:
requestInterceptorsin interfaceRSocketRequesterSupport
-
addRequesterInterceptor
public void addRequesterInterceptor(io.rsocket.plugins.RSocketInterceptor interceptor) -
setApplicationContext
public void setApplicationContext(@NotNull @NotNull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
inputStreamToString
-