类 WebEndpointMapping<E>

  • 类型参数:
    E - the type of endpoint

    public class WebEndpointMapping<E>
    extends java.lang.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
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    另请参阅:
    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
    • 字段详细资料

      • ID_HEADER_NAME

        public static final java.lang.String ID_HEADER_NAME
        The HTTP header name for getId()
        另请参阅:
        常量字段值
      • NON_ENDPOINT

        public static final java.lang.Object NON_ENDPOINT
      • NON_SOURCE

        public static final java.lang.Object NON_SOURCE
    • 方法详细资料

      • of

        public static <E> WebEndpointMapping.Builder<E> of​(@Nullable
                                                           E endpoint,
                                                           java.util.Collection<java.lang.String> patterns)
      • getKind

        @NonNull
        public WebEndpointMapping.Kind getKind()
        The kind of endpoint:
        • Servlet
        • Servlet's Filter
        • Spring WebMVC DispatcherServlet
        • Spring WebFlux DispatcherHandler
        • Customized
        返回:
        non-null
      • getEndpoint

        @NonNull
        public E getEndpoint()
        The 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.DispatcherHandler:
          • 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
        返回:
        non-null
      • getSource

        @NonNull
        public java.lang.Object getSource()
        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
        返回:
        non-null
      • getPatterns

        @NonNull
        public java.lang.String[] getPatterns()
      • getMethods

        @NonNull
        public java.lang.String[] getMethods()
      • getParams

        @NonNull
        public java.lang.String[] getParams()
      • getHeaders

        @NonNull
        public java.lang.String[] getHeaders()
      • getConsumes

        @NonNull
        public java.lang.String[] getConsumes()
      • getProduces

        @NonNull
        public java.lang.String[] getProduces()
      • setAttribute

        public <V> WebEndpointMapping<E> setAttribute​(java.lang.String name,
                                                      @Nullable
                                                      V value)
      • getAttribute

        @Nullable
        public <V> V getAttribute​(java.lang.String name)
      • toJSON

        public java.lang.String toJSON()
      • equals

        public boolean equals​(java.lang.Object o)
        覆盖:
        equals 在类中 java.lang.Object
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 java.lang.Object
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object