Class ApplicationFilterRegistration

    • Constructor Detail

      • ApplicationFilterRegistration

        public ApplicationFilterRegistration​(FilterDef filterDef,
                                             Context context)
    • Method Detail

      • addMappingForServletNames

        public void addMappingForServletNames​(EnumSet<DispatcherType> dispatcherTypes,
                                              boolean isMatchAfter,
                                              String... servletNames)
        Description copied from interface: jakarta.servlet.FilterRegistration
        Add a mapping for this filter to one or more named Servlets.
        Specified by:
        addMappingForServletNames in interface FilterRegistration
        Parameters:
        dispatcherTypes - The dispatch types to which this filter should apply
        isMatchAfter - Should this filter be applied after any mappings defined in the deployment descriptor (true) or before?
        servletNames - Requests mapped to these servlets will be processed by this filter
      • addMappingForUrlPatterns

        public void addMappingForUrlPatterns​(EnumSet<DispatcherType> dispatcherTypes,
                                             boolean isMatchAfter,
                                             String... urlPatterns)
        Description copied from interface: jakarta.servlet.FilterRegistration
        Add a mapping for this filter to one or more URL patterns.
        Specified by:
        addMappingForUrlPatterns in interface FilterRegistration
        Parameters:
        dispatcherTypes - The dispatch types to which this filter should apply
        isMatchAfter - Should this filter be applied after any mappings defined in the deployment descriptor (true) or before?
        urlPatterns - The URL patterns to which this filter should be applied
      • getInitParameter

        public String getInitParameter​(String name)
        Description copied from interface: jakarta.servlet.Registration
        Get the value of an initialisation parameter.
        Specified by:
        getInitParameter in interface Registration
        Parameters:
        name - The initialisation parameter whose value is required
        Returns:
        The value of the named initialisation parameter
      • setInitParameter

        public boolean setInitParameter​(String name,
                                        String value)
        Description copied from interface: jakarta.servlet.Registration
        Add an initialisation parameter if not already added.
        Specified by:
        setInitParameter in interface Registration
        Parameters:
        name - Name of initialisation parameter
        value - Value of initialisation parameter
        Returns:
        true if the initialisation parameter was set, false if the initialisation parameter was not set because an initialisation parameter of the same name already existed
      • setInitParameters

        public Set<String> setInitParameters​(Map<String,​String> initParameters)
        Description copied from interface: jakarta.servlet.Registration
        Add multiple initialisation parameters. If any of the supplied initialisation parameter conflicts with an existing initialisation parameter, no updates will be performed.
        Specified by:
        setInitParameters in interface Registration
        Parameters:
        initParameters - The initialisation parameters to add
        Returns:
        The set of initialisation parameter names that conflicted with existing initialisation parameter. If there are no conflicts, this Set will be empty.
      • setAsyncSupported

        public void setAsyncSupported​(boolean asyncSupported)
        Description copied from interface: jakarta.servlet.Registration.Dynamic
        Mark this Servlet/Filter as supported asynchronous processing.
        Specified by:
        setAsyncSupported in interface Registration.Dynamic
        Parameters:
        asyncSupported - Should this Servlet/Filter support asynchronous processing