Class AbstractWebEndpointMappingFactory<E>

    • Field Detail

      • logger

        protected final io.microsphere.logging.Logger logger
    • Constructor Detail

      • AbstractWebEndpointMappingFactory

        public AbstractWebEndpointMappingFactory()
    • Method Detail

      • create

        public final java.util.Optional<WebEndpointMapping<E>> create​(E endpoint)
        Description copied from interface: WebEndpointMappingFactory
        Create the instance of WebEndpointMapping
        Specified by:
        create in interface WebEndpointMappingFactory<E>
        Parameters:
        endpoint - could be one of these :
        • ServletRegistration
        • FilterRegistration
        • org.springframework.web.servlet.mvc.method.RequestMappingInfo
        • org.springframework.web.reactive.result.method.RequestMappingInfo
        Returns:
        WebEndpointMapping if present
      • doCreate

        @Nullable
        protected abstract WebEndpointMapping<?> doCreate​(E endpoint)
                                                   throws java.lang.Throwable
        Throws:
        java.lang.Throwable