Class WebEndpointMapping<E>

java.lang.Object
io.microsphere.spring.web.metadata.WebEndpointMapping<E>
Type Parameters:
E - the type of endpoint

public class WebEndpointMapping<E> extends Object
The meta-data class for Web Endpoint Mapping that could be one of these endpoints:
  • Servlet
  • Servlet's Filter
  • Spring WebMVC DispatcherServlet
  • Spring WebFlux DispatcherHandler
  • Customized

The method getKind() can be used to identify the kind of endpoints, and the method getEndpoint() is an abstract presentation of actual endpoint that may be :

  • the name of Servlet
  • the name of Servlet's Filter
  • the any handler of Spring WebMVC org.springframework.web.servlet.HandlerMapping:
    • The String presenting the name of Handler bean
    • The org.springframework.web.servlet.mvc.Controller Bean
    • The HandlerMethod could be annotated the @RequestMapping
    • The org.springframework.web.servlet.function.HandlerFunction since Spring Framework 5.2
  • the any handler of Spring WebFlux org.springframework.web.reactive.HandlerMapping:
    • The String presenting the name of Handler bean
    • The HandlerMethod could be annotated the @RequestMapping
    • The org.springframework.web.reactive.function.server.RouterFunction since Spring Framework 5.0

The method getSource() can trace the source of WebEndpointMapping if present, it could be :

  • ServletContext
  • Spring WebMVC org.springframework.web.servlet.HandlerMapping
  • Spring WebFlux org.springframework.web.reactive.HandlerMapping
, or it's non-source
Since:
1.0.0
Author:
Mercy
See Also:
  • ServletRegistration
  • FilterRegistration
  • WebServlet
  • WebFilter
  • org.springframework.web.servlet.DispatcherServlet
  • org.springframework.web.reactive.DispatcherHandler
  • org.springframework.web.servlet.HandlerMapping
  • org.springframework.web.reactive.HandlerMapping
  • RequestMapping
  • org.springframework.web.servlet.mvc.method.RequestMappingInfo
  • org.springframework.web.reactive.result.method.RequestMappingInfo