Class RequestMappingMetadataWebEndpointMappingFactory

  • All Implemented Interfaces:
    io.microsphere.spring.web.metadata.WebEndpointMappingFactory<io.microsphere.spring.web.metadata.HandlerMetadata<org.springframework.web.method.HandlerMethod,​org.springframework.web.servlet.mvc.method.RequestMappingInfo>>

    public class RequestMappingMetadataWebEndpointMappingFactory
    extends HandlerMappingWebEndpointMappingFactory<org.springframework.web.method.HandlerMethod,​org.springframework.web.servlet.mvc.method.RequestMappingInfo>
    WebEndpointMappingFactory based on Spring WebMVC RequestMappingInfo
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    RequestMapping, RequestMappingInfo
    • Field Summary

      • Fields inherited from class io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void contribute​(org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.servlet.mvc.method.RequestMappingInfo requestMappingInfo, org.springframework.web.servlet.HandlerMapping handlerMapping, io.microsphere.spring.web.metadata.WebEndpointMapping.Builder<org.springframework.web.method.HandlerMethod> builder)
      Contribute the WebEndpointMapping.Builder to create an instance of WebEndpointMapping
      protected org.springframework.web.method.HandlerMethod getHandler​(io.microsphere.spring.web.metadata.HandlerMetadata<org.springframework.web.method.HandlerMethod,​org.springframework.web.servlet.mvc.method.RequestMappingInfo> handlerMetadata)  
      protected java.util.Collection<java.lang.String> getMethods​(org.springframework.web.method.HandlerMethod handler, org.springframework.web.servlet.mvc.method.RequestMappingInfo metadata)
      Get the methods of the specified Handler and Metadata
      protected java.util.Collection<java.lang.String> getPatterns​(org.springframework.web.method.HandlerMethod handler, org.springframework.web.servlet.mvc.method.RequestMappingInfo requestMappingInfo)
      Get the patterns of Handler and Metadata
      • Methods inherited from class io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory

        create
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.microsphere.spring.web.metadata.WebEndpointMappingFactory

        getSourceType, supports
    • Constructor Detail

      • RequestMappingMetadataWebEndpointMappingFactory

        public RequestMappingMetadataWebEndpointMappingFactory​(org.springframework.web.servlet.HandlerMapping handlerMapping)
    • Method Detail

      • getHandler

        protected org.springframework.web.method.HandlerMethod getHandler​(io.microsphere.spring.web.metadata.HandlerMetadata<org.springframework.web.method.HandlerMethod,​org.springframework.web.servlet.mvc.method.RequestMappingInfo> handlerMetadata)
        Overrides:
        getHandler in class HandlerMappingWebEndpointMappingFactory<org.springframework.web.method.HandlerMethod,​org.springframework.web.servlet.mvc.method.RequestMappingInfo>
      • getPatterns

        protected java.util.Collection<java.lang.String> getPatterns​(org.springframework.web.method.HandlerMethod handler,
                                                                     org.springframework.web.servlet.mvc.method.RequestMappingInfo requestMappingInfo)
        Description copied from class: HandlerMappingWebEndpointMappingFactory
        Get the patterns of Handler and Metadata
        Specified by:
        getPatterns in class HandlerMappingWebEndpointMappingFactory<org.springframework.web.method.HandlerMethod,​org.springframework.web.servlet.mvc.method.RequestMappingInfo>
        Parameters:
        handler - Handler
        requestMappingInfo - Metadata
        Returns:
        non-null
      • contribute

        protected void contribute​(org.springframework.web.method.HandlerMethod handlerMethod,
                                  org.springframework.web.servlet.mvc.method.RequestMappingInfo requestMappingInfo,
                                  org.springframework.web.servlet.HandlerMapping handlerMapping,
                                  io.microsphere.spring.web.metadata.WebEndpointMapping.Builder<org.springframework.web.method.HandlerMethod> builder)
        Description copied from class: HandlerMappingWebEndpointMappingFactory
        Contribute the WebEndpointMapping.Builder to create an instance of WebEndpointMapping
        Overrides:
        contribute in class HandlerMappingWebEndpointMappingFactory<org.springframework.web.method.HandlerMethod,​org.springframework.web.servlet.mvc.method.RequestMappingInfo>
        Parameters:
        handlerMethod - Handler
        requestMappingInfo - Metadata
        handlerMapping - HandlerMapping
        builder - WebEndpointMapping.Builder