Class SFSExtensionFilterChain

  • All Implemented Interfaces:
    IFilterChain

    public class SFSExtensionFilterChain
    extends java.lang.Object
    implements IFilterChain
    The Filter Chain allows the developer to configure a number of Filters that will run prior to executing a Client request or dispatching a Server side event.

    By using the addFilter method you can add filters to the Extension. Filters will be executed in the same order in which they were added to the Filter Chain

    • Constructor Detail

      • SFSExtensionFilterChain

        public SFSExtensionFilterChain​(SFSExtension parentExtension)
    • Method Detail

      • addFilter

        public void addFilter​(java.lang.String filterName,
                              SFSExtensionFilter filter)
        Add a filter to the Filter Chain. Filters will be executed in the same order in which they were added to the Filter Chain.
        Specified by:
        addFilter in interface IFilterChain
        Parameters:
        filterName - the name of the filter
        filter - the filter that is going to be added
      • remove

        public void remove​(java.lang.String filterName)
        Remove a Filter from the Filter Chain.
        Specified by:
        remove in interface IFilterChain
        Parameters:
        filterName - the name of the Filter
      • size

        public int size()
        Get the size of the Filter Chain.
        Specified by:
        size in interface IFilterChain
        Returns:
        the size of the Filter Chain.
      • destroy

        public void destroy()
        Shut down the Filter Chain.
        Specified by:
        destroy in interface IFilterChain