Class HandlerMappingWebEndpointMappingFactory<H,​M>

  • Type Parameters:
    H - the type of handler
    M - the type of metadata
    All Implemented Interfaces:
    io.microsphere.spring.web.metadata.WebEndpointMappingFactory<io.microsphere.spring.web.metadata.HandlerMetadata<H,​M>>
    Direct Known Subclasses:
    HandlerMetadataWebEndpointMappingFactory, RequestMappingMetadataWebEndpointMappingFactory

    public abstract class HandlerMappingWebEndpointMappingFactory<H,​M>
    extends io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory<io.microsphere.spring.web.metadata.HandlerMetadata<H,​M>>
    The abstract class WebEndpointMappingFactory for Spring WebFlux HandlerMapping
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    HandlerMapping, AbstractWebEndpointMappingFactory
    • Field Summary

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

        logger
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void contribute​(H handler, M metadata, org.springframework.web.reactive.HandlerMapping handlerMapping, io.microsphere.spring.web.metadata.WebEndpointMapping.Builder<H> builder)
      Contribute the WebEndpointMapping.Builder to create an instance of WebEndpointMapping
      protected io.microsphere.spring.web.metadata.WebEndpointMapping<?> doCreate​(io.microsphere.spring.web.metadata.HandlerMetadata<H,​M> handlerMetadata)  
      protected H getHandler​(io.microsphere.spring.web.metadata.HandlerMetadata<H,​M> handlerMetadata)  
      protected M getMetadata​(io.microsphere.spring.web.metadata.HandlerMetadata<H,​M> handlerMetadata)  
      protected abstract java.util.Collection<java.lang.String> getMethods​(H handler, M metadata)
      Get the methods of the specified Handler and Metadata
      protected abstract java.util.Collection<java.lang.String> getPatterns​(H handler, M metadata)
      Get the patterns of the specified 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

      • HandlerMappingWebEndpointMappingFactory

        public HandlerMappingWebEndpointMappingFactory​(org.springframework.web.reactive.HandlerMapping handlerMapping)
    • Method Detail

      • doCreate

        protected final io.microsphere.spring.web.metadata.WebEndpointMapping<?> doCreate​(io.microsphere.spring.web.metadata.HandlerMetadata<H,​M> handlerMetadata)
                                                                                   throws java.lang.Throwable
        Specified by:
        doCreate in class io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory<io.microsphere.spring.web.metadata.HandlerMetadata<H,​M>>
        Throws:
        java.lang.Throwable
      • getHandler

        protected H getHandler​(io.microsphere.spring.web.metadata.HandlerMetadata<H,​M> handlerMetadata)
      • getMetadata

        protected M getMetadata​(io.microsphere.spring.web.metadata.HandlerMetadata<H,​M> handlerMetadata)
      • getMethods

        @Nonnull
        protected abstract java.util.Collection<java.lang.String> getMethods​(H handler,
                                                                             M metadata)
        Get the methods of the specified Handler and Metadata
        Parameters:
        handler - Handler
        metadata - Metadata
        Returns:
        non-null
      • getPatterns

        @Nonnull
        protected abstract java.util.Collection<java.lang.String> getPatterns​(H handler,
                                                                              M metadata)
        Get the patterns of the specified Handler and Metadata
        Parameters:
        handler - Handler
        metadata - Metadata
        Returns:
        non-null
      • contribute

        protected void contribute​(H handler,
                                  M metadata,
                                  org.springframework.web.reactive.HandlerMapping handlerMapping,
                                  io.microsphere.spring.web.metadata.WebEndpointMapping.Builder<H> builder)
        Contribute the WebEndpointMapping.Builder to create an instance of WebEndpointMapping
        Parameters:
        handler - Handler
        metadata - Metadata
        handlerMapping - HandlerMapping
        builder - WebEndpointMapping.Builder