/** * Adds a filter mapping with the given servlet names and dispatcher * types for the Filter represented by this FilterRegistration. * * <p>Filter mappings are matched in the order in which they were * added. * * <p>If this method is called multiple times, each successive call * adds to the effects of the former. * * @param dispatcherTypes the dispatcher types of the filter mapping, * or null if the default <tt>DispatcherType.REQUEST</tt> is to be used * @param servletNames the servlet names of the filter mapping * * @throws IllegalArgumentException if <tt>servletNames</tt> is null or * empty * @throws IllegalStateException if the ServletContext from which this * FilterRegistration was obtained has already been initialized */ public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, String... servletNames) { addMappingForServletNames(dispatcherTypes, true, servletNames); }
/** * Adds a filter mapping with the given servlet names and dispatcher * types for the Filter represented by this FilterRegistration. * * <p>Filter mappings are matched in the order in which they were * added. * * <p>If this method is called multiple times, each successive call * adds to the effects of the former. * * @param dispatcherTypes the dispatcher types of the filter mapping, * or null if the default <tt>DispatcherType.REQUEST</tt> is to be used * @param servletNames the servlet names of the filter mapping * * @throws IllegalArgumentException if <tt>servletNames</tt> is null or * empty * @throws IllegalStateException if the ServletContext from which this * FilterRegistration was obtained has already been initialized */ public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, String... servletNames) { addMappingForServletNames(dispatcherTypes, true, servletNames); }
/** * Adds a filter mapping with the given servlet names and dispatcher * types for the Filter represented by this FilterRegistration. * * <p>Filter mappings are matched in the order in which they were * added. * * <p>If this method is called multiple times, each successive call * adds to the effects of the former. * * @param dispatcherTypes the dispatcher types of the filter mapping, * or null if the default <tt>DispatcherType.REQUEST</tt> is to be used * @param servletNames the servlet names of the filter mapping * * @throws IllegalArgumentException if <tt>servletNames</tt> is null or * empty * @throws IllegalStateException if the ServletContext from which this * FilterRegistration was obtained has already been initialized */ public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, String... servletNames) { addMappingForServletNames(dispatcherTypes, true, servletNames); }
/** * Adds a filter mapping with the given servlet names and dispatcher * types for the Filter represented by this FilterRegistration. * * <p>Filter mappings are matched in the order in which they were * added. * * <p>If this method is called multiple times, each successive call * adds to the effects of the former. * * @param dispatcherTypes the dispatcher types of the filter mapping, * or null if the default <tt>DispatcherType.REQUEST</tt> is to be used * @param servletNames the servlet names of the filter mapping * * @throws IllegalArgumentException if <tt>servletNames</tt> is null or * empty * @throws IllegalStateException if the ServletContext from which this * FilterRegistration was obtained has already been initialized */ public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, String... servletNames) { addMappingForServletNames(dispatcherTypes, true, servletNames); }
/** * Adds a filter mapping with the given servlet names and dispatcher * types for the Filter represented by this FilterRegistration. * * <p>Filter mappings are matched in the order in which they were * added. * * <p>If this method is called multiple times, each successive call * adds to the effects of the former. * * @param dispatcherTypes the dispatcher types of the filter mapping, * or null if the default <tt>DispatcherType.REQUEST</tt> is to be used * @param servletNames the servlet names of the filter mapping * * @throws IllegalArgumentException if <tt>servletNames</tt> is null or * empty * @throws IllegalStateException if the ServletContext from which this * FilterRegistration was obtained has already been initialized */ public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, String... servletNames) { addMappingForServletNames(dispatcherTypes, true, servletNames); }
/** * Adds a filter mapping with the given servlet names and dispatcher * types for the Filter represented by this FilterRegistration. * * <p>Filter mappings are matched in the order in which they were * added. * * <p>If this method is called multiple times, each successive call * adds to the effects of the former. * * @param dispatcherTypes the dispatcher types of the filter mapping, * or null if the default <tt>DispatcherType.REQUEST</tt> is to be used * @param servletNames the servlet names of the filter mapping * * @throws IllegalArgumentException if <tt>servletNames</tt> is null or * empty * @throws IllegalStateException if the ServletContext from which this * FilterRegistration was obtained has already been initialized */ public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, String... servletNames) { addMappingForServletNames(dispatcherTypes, true, servletNames); }