Class RequestMappingMetadataWebEndpointMappingFactory

java.lang.Object
io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory<io.microsphere.spring.web.metadata.HandlerMetadata<H,M>>
io.microsphere.spring.webmvc.metadata.HandlerMappingWebEndpointMappingFactory<org.springframework.web.method.HandlerMethod,org.springframework.web.servlet.mvc.method.RequestMappingInfo>
io.microsphere.spring.webmvc.metadata.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
  • Constructor Summary

    Constructors
    Constructor
    Description
    RequestMappingMetadataWebEndpointMappingFactory(org.springframework.web.servlet.HandlerMapping handlerMapping)
     
  • Method Summary

    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 Collection<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 Collection<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.webmvc.metadata.HandlerMappingWebEndpointMappingFactory

    doCreate, getMetadata

    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 Details

    • RequestMappingMetadataWebEndpointMappingFactory

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

    • 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>
    • getMethods

      protected Collection<String> getMethods(org.springframework.web.method.HandlerMethod handler, org.springframework.web.servlet.mvc.method.RequestMappingInfo metadata)
      Description copied from class: HandlerMappingWebEndpointMappingFactory
      Get the methods of the specified Handler and Metadata
      Specified by:
      getMethods in class HandlerMappingWebEndpointMappingFactory<org.springframework.web.method.HandlerMethod,org.springframework.web.servlet.mvc.method.RequestMappingInfo>
      Parameters:
      handler - Handler
      metadata - Metadata
      Returns:
      non-null
    • getPatterns

      protected Collection<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