ai.foremast.micrometer.web.servlet

Class HandlerMappingIntrospector

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.web.cors.CorsConfigurationSource


    public class HandlerMappingIntrospectorextends Objectimplements org.springframework.web.cors.CorsConfigurationSource, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
    Helper class to get information from the HandlerMapping that would serve a specific request.

    Provides the following methods:

    Since:
    4.3.1
    Author:
    Rossen Stoyanchev
    • Constructor Detail

      • HandlerMappingIntrospector

        public HandlerMappingIntrospector()
        Constructor for use with ApplicationContextAware.
    • Method Detail

      • getHandlerMappings

        public List<org.springframework.web.servlet.HandlerMapping> getHandlerMappings()
        Return the configured HandlerMapping's.
      • setApplicationContext

        public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • getHandlerExecutionChain

        public org.springframework.web.servlet.HandlerExecutionChain getHandlerExecutionChain(javax.servlet.http.HttpServletRequest request)                                                                               throws Exception
        Find the HandlerMapping that would handle the given request and return it as a MatchableHandlerMapping that can be used to test request-matching criteria.

        If the matching HandlerMapping is not an instance of MatchableHandlerMapping, an IllegalStateException is raised.

        Parameters:
        request - the current request
        Returns:
        the resolved matcher, or null
        Throws:
        Exception - if any of the HandlerMapping's raise an exception
      • getCorsConfiguration

        public org.springframework.web.cors.CorsConfiguration getCorsConfiguration(javax.servlet.http.HttpServletRequest request)
        Specified by:
        getCorsConfiguration in interface org.springframework.web.cors.CorsConfigurationSource

Copyright © 2019 Foremast.AI. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14