接口 WebEndpointMappingFactory<E>

    • 方法详细资料

      • supports

        default boolean supports​(E endpoint)
        Current factory supports the specified endpoint or not
        参数:
        endpoint - could be one of these :
        • ServletRegistration
        • FilterRegistration
        • org.springframework.web.servlet.mvc.method.RequestMappingInfo
        • org.springframework.web.reactive.result.method.RequestMappingInfo
        返回:
        true if supports, false otherwise
      • create

        java.util.Optional<WebEndpointMapping<E>> create​(E endpoint)
        Create the instance of WebEndpointMapping
        参数:
        endpoint - could be one of these :
        • ServletRegistration
        • FilterRegistration
        • org.springframework.web.servlet.mvc.method.RequestMappingInfo
        • org.springframework.web.reactive.result.method.RequestMappingInfo
        返回:
        WebEndpointMapping if present
      • getSourceType

        @NonNull
        default java.lang.Class<E> getSourceType()
        Get the type of source
        返回:
        the type of source