Class WebSocketUrlHandlerMapping

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, org.springframework.core.Ordered, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.handler.MatchableHandlerMapping, org.springframework.web.servlet.HandlerMapping

    public class WebSocketUrlHandlerMapping
    extends org.springframework.web.socket.server.support.WebSocketHandlerMapping
    Since:
    2.3
    Author:
    Martin Maher
    • Field Summary

      • Fields inherited from class org.springframework.web.servlet.handler.AbstractHandlerMapping

        mappingsLogger
      • Fields inherited from class org.springframework.context.support.ApplicationObjectSupport

        logger
      • Fields inherited from interface org.springframework.web.servlet.HandlerMapping

        BEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, LOOKUP_PATH, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
      • Fields inherited from interface org.springframework.context.SmartLifecycle

        DEFAULT_PHASE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void postRegisterUrlHandlers​(Map<String,​Object> wsHandlers)
      Workaround for registering the WebSocket request handlers, after the spring context has been initialised.
      • Methods inherited from class org.springframework.web.socket.server.support.WebSocketHandlerMapping

        getHandlerInternal, initServletContext, isRunning, setWebSocketUpgradeMatch, start, stop
      • Methods inherited from class org.springframework.web.servlet.handler.SimpleUrlHandlerMapping

        getUrlMap, initApplicationContext, registerHandlers, setMappings, setUrlMap
      • Methods inherited from class org.springframework.web.servlet.handler.AbstractUrlHandlerMapping

        buildPathExposingHandler, exposePathWithinMapping, exposeUriTemplateVariables, getHandlerMap, getPathPatternHandlerMap, getRootHandler, lookupHandler, lookupHandler, match, registerHandler, registerHandler, setLazyInitHandlers, setPatternParser, setRootHandler, setUseTrailingSlashMatch, supportsTypeLevelMappings, useTrailingSlashMatch, validateHandler
      • Methods inherited from class org.springframework.web.servlet.handler.AbstractHandlerMapping

        adaptInterceptor, detectMappedInterceptors, extendInterceptors, formatMappingName, getAdaptedInterceptors, getCorsConfiguration, getCorsConfigurationSource, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getPatternParser, getUrlPathHelper, hasCorsConfigurationSource, initInterceptors, initLookupPath, setAlwaysUseFullPath, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelper, usesPathPatterns
      • Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport

        getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, isContextRequired, setServletContext
      • Methods inherited from class org.springframework.context.support.ApplicationObjectSupport

        getApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContext
      • Methods inherited from interface org.springframework.web.servlet.HandlerMapping

        getHandler, usesPathPatterns
      • Methods inherited from interface org.springframework.web.servlet.handler.MatchableHandlerMapping

        getPatternParser
      • Methods inherited from interface org.springframework.context.SmartLifecycle

        getPhase, isAutoStartup, stop
    • Constructor Detail

      • WebSocketUrlHandlerMapping

        public WebSocketUrlHandlerMapping()
    • Method Detail

      • postRegisterUrlHandlers

        public void postRegisterUrlHandlers​(Map<String,​Object> wsHandlers)
        Workaround for registering the WebSocket request handlers, after the spring context has been initialised.
        Parameters:
        wsHandlers -