类的使用
org.springframework.messaging.handler.HandlerMethod
使用HandlerMethod的程序包 程序包 说明 org.springframework.messaging.handler Basic abstractions for working with message handler methods.org.springframework.messaging.handler.annotation.reactive Support classes for working with annotated message-handling methods with non-blocking, reactive contracts.org.springframework.messaging.handler.invocation Common infrastructure for invoking message handler methods.org.springframework.messaging.handler.invocation.reactive Common infrastructure for invoking message handler methods with non-blocking, and reactive contracts.org.springframework.messaging.rsocket.annotation.support Support classes for working with annotated RSocket stream handling methods.org.springframework.messaging.simp.annotation.support Support classes for handling messages from simple messaging protocols (like STOMP).org.springframework.messaging.handler中HandlerMethod的使用
返回HandlerMethod的org.springframework.messaging.handler中的方法 修饰符和类型 方法 说明 HandlerMethodHandlerMethod. createWithResolvedBean()If the provided instance contains a bean name rather than an object instance, the bean name is resolved before aHandlerMethodis created and returned.HandlerMethodHandlerMethod. getResolvedFromHandlerMethod()Return the HandlerMethod from which this HandlerMethod instance was resolved viacreateWithResolvedBean().参数类型为HandlerMethod的org.springframework.messaging.handler中的构造器 构造器 说明 HandlerMethod(HandlerMethod handlerMethod)Copy constructor for use in subclasses.org.springframework.messaging.handler.annotation.reactive中HandlerMethod的使用
参数类型为HandlerMethod的org.springframework.messaging.handler.annotation.reactive中的方法 修饰符和类型 方法 说明 protected reactor.core.publisher.Mono<Void>MessageMappingMessageHandler. handleMatch(CompositeMessageCondition mapping, HandlerMethod handlerMethod, Message<?> message)org.springframework.messaging.handler.invocation中HandlerMethod的使用
org.springframework.messaging.handler.invocation中HandlerMethod的子类 修饰符和类型 类 说明 classInvocableHandlerMethodExtension ofHandlerMethodthat invokes the underlying method with argument values resolved from the current HTTP request through a list ofHandlerMethodArgumentResolver.返回HandlerMethod的org.springframework.messaging.handler.invocation中的方法 修饰符和类型 方法 说明 protected HandlerMethodAbstractMethodMessageHandler. createHandlerMethod(Object handler, Method method)Create a HandlerMethod instance from an Object handler that is either a handler instance or a String-based bean name.返回变量类型为HandlerMethod的类型的org.springframework.messaging.handler.invocation中的方法 修饰符和类型 方法 说明 Map<T,HandlerMethod>AbstractMethodMessageHandler. getHandlerMethods()Return a map with all handler methods and their mappings.参数类型为HandlerMethod的org.springframework.messaging.handler.invocation中的方法 修饰符和类型 方法 说明 protected InvocableHandlerMethodAbstractMethodMessageHandler. getExceptionHandlerMethod(HandlerMethod handlerMethod, Exception exception)Find an@MessageExceptionHandlermethod for the given exception.protected voidAbstractMethodMessageHandler. handleMatch(T mapping, HandlerMethod handlerMethod, String lookupDestination, Message<?> message)protected voidAbstractMethodMessageHandler. processHandlerMethodException(HandlerMethod handlerMethod, Exception exception, Message<?> message)参数类型为HandlerMethod的org.springframework.messaging.handler.invocation中的构造器 构造器 说明 InvocableHandlerMethod(HandlerMethod handlerMethod)Create an instance from aHandlerMethod.org.springframework.messaging.handler.invocation.reactive中HandlerMethod的使用
org.springframework.messaging.handler.invocation.reactive中HandlerMethod的子类 修饰符和类型 类 说明 classInvocableHandlerMethodExtension ofHandlerMethodthat invokes the underlying method with argument values resolved from the current HTTP request through a list ofHandlerMethodArgumentResolver.返回变量类型为HandlerMethod的类型的org.springframework.messaging.handler.invocation.reactive中的方法 修饰符和类型 方法 说明 Map<T,HandlerMethod>AbstractMethodMessageHandler. getHandlerMethods()Return a read-only map with all handler methods and their mappings.参数类型为HandlerMethod的org.springframework.messaging.handler.invocation.reactive中的方法 修饰符和类型 方法 说明 protected TAbstractMethodMessageHandler. extendMapping(T mapping, HandlerMethod handlerMethod)This method is invoked just before mappings are added.protected reactor.core.publisher.Mono<Void>AbstractMethodMessageHandler. handleMatch(T mapping, HandlerMethod handlerMethod, Message<?> message)参数类型为HandlerMethod的org.springframework.messaging.handler.invocation.reactive中的构造器 构造器 说明 InvocableHandlerMethod(HandlerMethod handlerMethod)Create an instance from aHandlerMethod.org.springframework.messaging.rsocket.annotation.support中HandlerMethod的使用
参数类型为HandlerMethod的org.springframework.messaging.rsocket.annotation.support中的方法 修饰符和类型 方法 说明 protected CompositeMessageConditionRSocketMessageHandler. extendMapping(CompositeMessageCondition composite, HandlerMethod handler)org.springframework.messaging.simp.annotation.support中HandlerMethod的使用
参数类型为HandlerMethod的org.springframework.messaging.simp.annotation.support中的方法 修饰符和类型 方法 说明 protected voidSimpAnnotationMethodMessageHandler. handleMatch(SimpMessageMappingInfo mapping, HandlerMethod handlerMethod, String lookupDestination, Message<?> message)