Class RegistrationWebEndpointMappingFactory<R extends javax.servlet.Registration>

    • Field Detail

      • servletContext

        protected final javax.servlet.ServletContext servletContext
    • Constructor Detail

      • RegistrationWebEndpointMappingFactory

        public RegistrationWebEndpointMappingFactory​(javax.servlet.ServletContext servletContext)
    • Method Detail

      • supports

        public final boolean supports​(java.lang.String endpoint)
        Description copied from interface: WebEndpointMappingFactory
        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
      • getRegistration

        @Nonnull
        protected abstract R getRegistration​(java.lang.String name,
                                             javax.servlet.ServletContext servletContext)
        Parameters:
        name - the name of Registration
        servletContext - ServletContext
        Returns:
        The Registration
      • getPatterns

        @Nonnull
        protected abstract java.util.Collection<java.lang.String> getPatterns​(R registration)
        Get the patterns of Registration
        Parameters:
        registration - Registration
        Returns:
        non-null