org.springframework.beans.factory.xml.BeanDefinitionParser that provides
the configuration for the <websocket:message-broker/> XML namespace element.
Registers a Spring MVC org.
with order 1 to map HTTP WebSocket handshake requests from STOMP/WebSocket clients.
Registers the following MessageChannels:
Registers one of the following based on the selected message broker options:
SimpleBrokerMessageHandler if the <simple-broker/> is used
StompBrokerRelayMessageHandler if the <stomp-broker-relay/> is used
Registers a UserDestinationMessageHandler for handling user destinations.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final boolean | |
| private static final boolean | |
| private static final boolean | |
| private static final boolean | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| DEFAULT_MAPPING_ORDER | back to summary |
|---|---|
| private static final int DEFAULT_MAPPING_ORDER | |
| gsonPresent | back to summary |
|---|---|
| private static final boolean gsonPresent | |
| jackson2Present | back to summary |
|---|---|
| private static final boolean jackson2Present | |
| javaxValidationPresent | back to summary |
|---|---|
| private static final boolean javaxValidationPresent | |
| jsonbPresent | back to summary |
|---|---|
| private static final boolean jsonbPresent | |
| MESSAGE_CONVERTER_BEAN_NAME | back to summary |
|---|---|
| public static final String MESSAGE_CONVERTER_BEAN_NAME | |
| MESSAGING_TEMPLATE_BEAN_NAME | back to summary |
|---|---|
| public static final String MESSAGING_TEMPLATE_BEAN_NAME | |
| SCHEDULER_BEAN_NAME | back to summary |
|---|---|
| public static final String SCHEDULER_BEAN_NAME | |
| SOCKJS_SCHEDULER_BEAN_NAME | back to summary |
|---|---|
| public static final String SOCKJS_SCHEDULER_BEAN_NAME | |
| WEB_SOCKET_HANDLER_BEAN_NAME | back to summary |
|---|---|
| public static final String WEB_SOCKET_HANDLER_BEAN_NAME | |
| MessageBrokerBeanDefinitionParser | back to summary |
|---|---|
| pack-priv MessageBrokerBeanDefinitionParser() | |
| extractBeanSubElements | back to summary |
|---|---|
| private ManagedList | |
| getDefaultExecutorBeanDefinition | back to summary |
|---|---|
private RootBeanDefinition getDefaultExecutorBeanDefinition(String channelName)
| |
| getMessageChannel | back to summary |
|---|---|
| private RuntimeBeanReference getMessageChannel(String name, Element element, ParserContext context, Object source) | |
| getValidator | back to summary |
|---|---|
private RuntimeBeanReference getValidator(Element messageBrokerElement, Object source, ParserContext context)
| |
| parse | back to summary |
|---|---|
| public BeanDefinition parse(Element element, ParserContext context) Implements org. Doc from org. Parse the specified Implementations must return the primary
| |
| registerAnnotationMethodMessageHandler | back to summary |
|---|---|
| private void registerAnnotationMethodMessageHandler(Element messageBrokerElement, RuntimeBeanReference inChannel, RuntimeBeanReference outChannel, RuntimeBeanReference converter, RuntimeBeanReference messagingTemplate, ParserContext context, Object source) | |
| registerBeanDef | back to summary |
|---|---|
| private static String registerBeanDef(RootBeanDefinition beanDef, ParserContext context, Object source) | |
| registerBeanDefByName | back to summary |
|---|---|
| private static void registerBeanDefByName(String name, RootBeanDefinition beanDef, ParserContext context, Object source) | |
| registerHandlerMapping | back to summary |
|---|---|
| private ManagedMap | |
| registerMessageBroker | back to summary |
|---|---|
| private RootBeanDefinition registerMessageBroker(Element brokerElement, RuntimeBeanReference inChannel, RuntimeBeanReference outChannel, RuntimeBeanReference brokerChannel, Object userDestHandler, RuntimeBeanReference brokerTemplate, RuntimeBeanReference userRegistry, ParserContext context, Object source) | |
| registerMessageConverter | back to summary |
|---|---|
| private RuntimeBeanReference registerMessageConverter(Element element, ParserContext context, Object source) | |
| registerMessagingTemplate | back to summary |
|---|---|
| private RuntimeBeanReference registerMessagingTemplate(Element element, RuntimeBeanReference brokerChannel, RuntimeBeanReference messageConverter, ParserContext context, Object source) | |
| registerRequestHandler | back to summary |
|---|---|
| private RuntimeBeanReference registerRequestHandler(Element element, RuntimeBeanReference subProtoHandler, ParserContext ctx, Object source) | |
| registerStompHandler | back to summary |
|---|---|
| private RuntimeBeanReference registerStompHandler(Element element, RuntimeBeanReference inChannel, RuntimeBeanReference outChannel, ParserContext context, Object source) | |
| registerUserDestHandler | back to summary |
|---|---|
| private RuntimeBeanReference registerUserDestHandler(Element brokerElem, RuntimeBeanReference userRegistry, RuntimeBeanReference inChannel, RuntimeBeanReference brokerChannel, ParserContext context, Object source) | |
| registerUserDestResolver | back to summary |
|---|---|
| private RuntimeBeanReference registerUserDestResolver(Element brokerElem, RuntimeBeanReference userRegistry, ParserContext context, Object source) | |
| registerUserRegistry | back to summary |
|---|---|
| private RuntimeBeanReference registerUserRegistry(Element element, ParserContext context, Object source) | |
| registerUserRegistryMessageHandler | back to summary |
|---|---|
| private RuntimeBeanReference registerUserRegistryMessageHandler(RuntimeBeanReference userRegistry, RuntimeBeanReference brokerTemplate, String destination, ParserContext context, Object source) | |
| registerWebSocketMessageBrokerStats | back to summary |
|---|---|
| private void registerWebSocketMessageBrokerStats(RootBeanDefinition broker, RuntimeBeanReference inChannel, RuntimeBeanReference outChannel, ParserContext context, Object source) | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final WebSocketHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public WebSocketHandler | getObject()
Implements org. Return an instance (possibly shared or independent) of the object managed by this factory. |
| public Class | getObjectType()
Implements org. Return the type of object that this FactoryBean creates,
or |
| public boolean | isSingleton()
Overrides default org. Is the object managed by this factory a singleton? |
| factories | back to summary |
|---|---|
| private final List<WebSocketHandlerDecoratorFactory> factories | |
| handler | back to summary |
|---|---|
| private final WebSocketHandler handler | |
| DecoratingFactoryBean | back to summary |
|---|---|
public DecoratingFactoryBean(WebSocketHandler handler, List<WebSocketHandlerDecoratorFactory> factories)
| |
| getObject | back to summary |
|---|---|
| public WebSocketHandler getObject() Implements org. Doc from org. Return an instance (possibly shared or independent) of the object managed by this factory. As with a If this FactoryBean is not fully initialized yet at the time of
the call (for example because it is involved in a circular reference),
throw a corresponding As of Spring 2.0, FactoryBeans are allowed to return
| |
| getObjectType | back to summary |
|---|---|
| public Class Implements org. Doc from org. Return the type of object that this FactoryBean creates,
or This allows one to check for specific types of beans without instantiating objects, for example on autowiring. In the case of implementations that are creating a singleton object, this method should try to avoid singleton creation as far as possible; it should rather estimate the type in advance. For prototypes, returning a meaningful type here is advisable too. This method can be called before this FactoryBean has been fully initialized. It must not rely on state created during initialization; of course, it can still use such state if available. Note Autowiring will simply ignore FactoryBeans that return
| |
| isSingleton | back to summary |
|---|---|
| public boolean isSingleton() Overrides default org. Doc from org. Is the object managed by this factory a singleton? That is,
will Note If a FactoryBean indicates to hold a singleton object,
the object returned from The singleton status of the FactoryBean itself will generally be provided by the owning BeanFactory; usually, it has to be defined as singleton there. Note This method returning The default implementation returns
| |