/** * Gets the currently available URL pattern mappings of the Filter * represented by this <code>FilterRegistration</code>. * * <p>If permitted, any changes to the returned <code>Collection</code> must not * affect this <code>FilterRegistration</code>. * * @return a (possibly empty) <code>Collection</code> of the currently * available URL pattern mappings of the Filter represented by this * <code>FilterRegistration</code> */ @Override public Collection<String> getUrlPatternMappings() { return ctx.getUrlPatternFilterMappings(getName()); }
/** * Gets the currently available URL pattern mappings of the Filter * represented by this <code>FilterRegistration</code>. * * <p>If permitted, any changes to the returned <code>Collection</code> must not * affect this <code>FilterRegistration</code>. * * @return a (possibly empty) <code>Collection</code> of the currently * available URL pattern mappings of the Filter represented by this * <code>FilterRegistration</code> */ @Override public Collection<String> getUrlPatternMappings() { return ctx.getUrlPatternFilterMappings(getName()); }
/** * Gets the currently available servlet name mappings * of the Filter represented by this <code>FilterRegistration</code>. * * <p>If permitted, any changes to the returned <code>Collection</code> must not * affect this <code>FilterRegistration</code>. * * @return a (possibly empty) <code>Collection</code> of the currently * available servlet name mappings of the Filter represented by this * <code>FilterRegistration</code> */ @Override public Collection<String> getServletNameMappings() { return ctx.getServletNameFilterMappings(getName()); }
/** * Gets the currently available servlet name mappings * of the Filter represented by this <code>FilterRegistration</code>. * * <p>If permitted, any changes to the returned <code>Collection</code> must not * affect this <code>FilterRegistration</code>. * * @return a (possibly empty) <code>Collection</code> of the currently * available servlet name mappings of the Filter represented by this * <code>FilterRegistration</code> */ @Override public Collection<String> getServletNameMappings() { return ctx.getServletNameFilterMappings(getName()); }
/** * Gets the currently available URL pattern mappings of the Filter * represented by this <code>FilterRegistration</code>. * * <p>If permitted, any changes to the returned <code>Collection</code> must not * affect this <code>FilterRegistration</code>. * * @return a (possibly empty) <code>Collection</code> of the currently * available URL pattern mappings of the Filter represented by this * <code>FilterRegistration</code> */ @Override public Collection<String> getUrlPatternMappings() { return ctx.getUrlPatternFilterMappings(getName()); }
/** * Gets the currently available URL pattern mappings of the Filter * represented by this <code>FilterRegistration</code>. * * <p>If permitted, any changes to the returned <code>Collection</code> must not * affect this <code>FilterRegistration</code>. * * @return a (possibly empty) <code>Collection</code> of the currently * available URL pattern mappings of the Filter represented by this * <code>FilterRegistration</code> */ @Override public Collection<String> getUrlPatternMappings() { return ctx.getUrlPatternFilterMappings(getName()); }
/** * Gets the currently available URL pattern mappings of the Filter * represented by this <code>FilterRegistration</code>. * * <p>If permitted, any changes to the returned <code>Collection</code> must not * affect this <code>FilterRegistration</code>. * * @return a (possibly empty) <code>Collection</code> of the currently * available URL pattern mappings of the Filter represented by this * <code>FilterRegistration</code> */ @Override public Collection<String> getUrlPatternMappings() { return ctx.getUrlPatternFilterMappings(getName()); }
/** * Gets the currently available servlet name mappings * of the Filter represented by this <code>FilterRegistration</code>. * * <p>If permitted, any changes to the returned <code>Collection</code> must not * affect this <code>FilterRegistration</code>. * * @return a (possibly empty) <code>Collection</code> of the currently * available servlet name mappings of the Filter represented by this * <code>FilterRegistration</code> */ @Override public Collection<String> getServletNameMappings() { return ctx.getServletNameFilterMappings(getName()); }
/** * Gets the currently available servlet name mappings * of the Filter represented by this <code>FilterRegistration</code>. * * <p>If permitted, any changes to the returned <code>Collection</code> must not * affect this <code>FilterRegistration</code>. * * @return a (possibly empty) <code>Collection</code> of the currently * available servlet name mappings of the Filter represented by this * <code>FilterRegistration</code> */ @Override public Collection<String> getServletNameMappings() { return ctx.getServletNameFilterMappings(getName()); }
/** * Gets the currently available URL pattern mappings of the Filter * represented by this <code>FilterRegistration</code>. * * <p>If permitted, any changes to the returned <code>Collection</code> must not * affect this <code>FilterRegistration</code>. * * @return a (possibly empty) <code>Collection</code> of the currently * available URL pattern mappings of the Filter represented by this * <code>FilterRegistration</code> */ @Override public Collection<String> getUrlPatternMappings() { return ctx.getUrlPatternFilterMappings(getName()); }
/** * Gets the currently available servlet name mappings * of the Filter represented by this <code>FilterRegistration</code>. * * <p>If permitted, any changes to the returned <code>Collection</code> must not * affect this <code>FilterRegistration</code>. * * @return a (possibly empty) <code>Collection</code> of the currently * available servlet name mappings of the Filter represented by this * <code>FilterRegistration</code> */ @Override public Collection<String> getServletNameMappings() { return ctx.getServletNameFilterMappings(getName()); }
/** * Gets the currently available servlet name mappings * of the Filter represented by this <code>FilterRegistration</code>. * * <p>If permitted, any changes to the returned <code>Collection</code> must not * affect this <code>FilterRegistration</code>. * * @return a (possibly empty) <code>Collection</code> of the currently * available servlet name mappings of the Filter represented by this * <code>FilterRegistration</code> */ @Override public Collection<String> getServletNameMappings() { return ctx.getServletNameFilterMappings(getName()); }
/** * * @param registration * @return */ private FilterConfigImpl createFilterConfig(final FilterRegistration registration) { final FilterConfigImpl fConfig = new FilterConfigImpl(this); fConfig.setFilterName(registration.getName()); if (!registration.initParameters.isEmpty()) { fConfig.setInitParameters(registration.initParameters); } return fConfig; }
/** * * @param registration * @return */ private FilterConfigImpl createFilterConfig(final FilterRegistration registration) { final FilterConfigImpl fConfig = new FilterConfigImpl(this); fConfig.setFilterName(registration.getName()); if (!registration.initParameters.isEmpty()) { fConfig.setInitParameters(registration.initParameters); } return fConfig; }
/** * * @param registration * @return */ private FilterConfigImpl createFilterConfig(final FilterRegistration registration) { final FilterConfigImpl fConfig = new FilterConfigImpl(this); fConfig.setFilterName(registration.getName()); if (!registration.initParameters.isEmpty()) { fConfig.setInitParameters(registration.initParameters); } return fConfig; }
/** * * @param registration * @return */ private FilterConfigImpl createFilterConfig(final FilterRegistration registration) { final FilterConfigImpl fConfig = new FilterConfigImpl(this); fConfig.setFilterName(registration.getName()); if (!registration.initParameters.isEmpty()) { fConfig.setInitParameters(registration.initParameters); } return fConfig; }
/** * * @param registration * @return */ private FilterConfigImpl createFilterConfig(final FilterRegistration registration) { final FilterConfigImpl fConfig = new FilterConfigImpl(this); fConfig.setFilterName(registration.getName()); if (!registration.initParameters.isEmpty()) { fConfig.setInitParameters(registration.initParameters); } return fConfig; }
/** * * @param registration * @return */ private FilterConfigImpl createFilterConfig(final FilterRegistration registration) { final FilterConfigImpl fConfig = new FilterConfigImpl(this); fConfig.setFilterName(registration.getName()); if (!registration.initParameters.isEmpty()) { fConfig.setInitParameters(registration.initParameters); } return fConfig; }
/** * {@inheritDoc} */ @Override public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... servletNames) { if (ctx.deployed) { throw new IllegalStateException("WebappContext has already been deployed"); } if ((servletNames==null) || (servletNames.length==0)) { throw new IllegalArgumentException("'servletNames' is null or zero-length"); } for (String servletName : servletNames) { FilterMap fmap = new FilterMap(); fmap.setFilterName(getName()); fmap.setServletName(servletName); fmap.setDispatcherTypes(dispatcherTypes); ctx.addFilterMap(fmap, isMatchAfter); } }
/** * {@inheritDoc} */ @Override public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... servletNames) { if (ctx.deployed) { throw new IllegalStateException("WebappContext has already been deployed"); } if ((servletNames==null) || (servletNames.length==0)) { throw new IllegalArgumentException("'servletNames' is null or zero-length"); } for (String servletName : servletNames) { FilterMap fmap = new FilterMap(); fmap.setFilterName(getName()); fmap.setServletName(servletName); fmap.setDispatcherTypes(dispatcherTypes); ctx.addFilterMap(fmap, isMatchAfter); } }