Interface WebEndpointMappingFactory<E>

Type Parameters:
E - the type of endpoint
All Known Implementing Classes:
AbstractWebEndpointMappingFactory, FilterRegistrationWebEndpointMappingFactory, Jackson2WebEndpointMappingFactory, RegistrationWebEndpointMappingFactory, ServletRegistrationWebEndpointMappingFactory, SmartWebEndpointMappingFactory

public interface WebEndpointMappingFactory<E>
The factory interface for WebEndpointMapping
Since:
1.0.0
Author:
Mercy
  • Method Details

    • supports

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

      Optional<WebEndpointMapping<E>> create(E endpoint)
      Create the instance of WebEndpointMapping
      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
    • getSourceType

      @Nonnull default Class<E> getSourceType()
      Get the type of source
      Returns:
      the type of source