Class UrlMapping

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

    public class UrlMapping
    extends TeamCitySimpleUrlHandlerMapping
    Author:
    Kir
    • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      UrlMapping()  
    • Constructor Detail

      • UrlMapping

        public UrlMapping()
    • Method Detail

      • addHandler

        public void addHandler​(@NotNull
                               String urlPath,
                               @NotNull
                               org.springframework.web.servlet.mvc.Controller controller)
                        throws org.springframework.beans.BeansException
        Throws:
        org.springframework.beans.BeansException
      • addCustomHandler

        public void addCustomHandler​(@NotNull
                                     CustomUrlHandler handler)
                              throws org.springframework.beans.BeansException
        Throws:
        org.springframework.beans.BeansException
      • registerHandler

        protected void registerHandler​(@NotNull
                                       String urlPath,
                                       @NotNull
                                       Object handler)
                                throws org.springframework.beans.BeansException,
                                       IllegalStateException
        Description copied from class: TeamCitySimpleUrlHandlerMapping
        Register the specified handler for the given URL path.
        Overrides:
        registerHandler in class TeamCitySimpleUrlHandlerMapping
        Parameters:
        urlPath - the URL the bean should be mapped to
        handler - the handler instance or handler bean name String (a bean name will automatically be resolved into the corresponding handler bean)
        Throws:
        org.springframework.beans.BeansException - if the handler couldn't be registered
        IllegalStateException - if there is a conflicting handler registered
      • getOmittingPrefixes

        @NotNull
        public String[] getOmittingPrefixes()
      • setOmittingPrefixes

        public void setOmittingPrefixes​(String[] omittingPrefixes)
      • isContextRequired

        protected boolean isContextRequired()
        Overrides:
        isContextRequired in class org.springframework.web.context.support.WebApplicationObjectSupport
      • getCorsHandlerExecutionChain

        protected org.springframework.web.servlet.HandlerExecutionChain getCorsHandlerExecutionChain​(javax.servlet.http.HttpServletRequest request,
                                                                                                     org.springframework.web.servlet.HandlerExecutionChain chain,
                                                                                                     org.springframework.web.cors.CorsConfiguration config)
        Overrides:
        getCorsHandlerExecutionChain in class org.springframework.web.servlet.handler.AbstractHandlerMapping