Class RegexFilter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.regex.Pattern[] _patterns  
      protected java.lang.String[] _replaces  
      protected java.lang.String[] _templates  
    • Constructor Summary

      Constructors 
      Constructor Description
      RegexFilter()  
    • Method Summary

      Modifier and Type Method Description
      protected java.lang.Object filterString​(org.cometd.bayeux.server.ServerSession session, org.cometd.bayeux.server.ServerChannel channel, java.lang.String string)  
      void init​(java.lang.Object init)
      The init object must be an array of array of this form:
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _templates

        protected java.lang.String[] _templates
      • _replaces

        protected java.lang.String[] _replaces
      • _patterns

        protected java.util.regex.Pattern[] _patterns
    • Constructor Detail

      • RegexFilter

        public RegexFilter()
    • Method Detail

      • init

        public void init​(java.lang.Object init)

        The init object must be an array of array of this form:

         [
             [regex1, replacement1],
             [regex2, replacement2],
             ...
         ]
         

        If the replacement string is null, then an DataFilter.AbortException is thrown if the pattern matches.

        Overrides:
        init in class JSONDataFilter
      • filterString

        protected java.lang.Object filterString​(org.cometd.bayeux.server.ServerSession session,
                                                org.cometd.bayeux.server.ServerChannel channel,
                                                java.lang.String string)
        Overrides:
        filterString in class JSONDataFilter