Class MappedFilter<T extends javax.servlet.Filter>


  • public class MappedFilter<T extends javax.servlet.Filter>
    extends MappedWebArtifact<T>
    • Constructor Detail

      • MappedFilter

        public MappedFilter​(T filter,
                            Set<String> urlPatterns,
                            int order)
      • MappedFilter

        public MappedFilter​(T filter,
                            Set<String> urlPatterns,
                            String name,
                            int order)
        Parameters:
        filter - a filter to install inside of Jetty.
        urlPatterns - URL patterns that this filter will respond to.
        name - filter name. If null, Jetty will assign its own name.
        order - an order of the filter among all the filters in a given app. If two filters match the same request, filter with lower ordering will be an outer filter and will be called first.
      • MappedFilter

        public MappedFilter​(T filter,
                            Set<String> urlPatterns,
                            String name,
                            Map<String,​String> params,
                            int order)
        Parameters:
        filter - a filter to install inside of Jetty.
        urlPatterns - URL patterns that this filter will respond to.
        name - filter name. If null, Jetty will assign its own name.
        params - filter init parameters map.
        order - an order of the filter among all the filters in a given app. If two filters match the same request, filter with lower ordering will be an outer filter and will be called first.
    • Method Detail

      • getFilter

        public T getFilter()
      • getOrder

        public int getOrder()
        Returns filter relative ordering. If two filters match the same request, the filter with lower ordering will wrap the filter with higher ordering.
        Returns:
        filter relative ordering.