3 Replies Latest reply on Sep 28, 2011 9:39 PM by vstorm83

    Gatein Filter

    capra

      How can I implement a response/request filter in gatein?

        • 1. Re: Gatein Filter
          vstorm83

          You can write an Filter that can be plugged in to GateIn, thank to extension machanism.

          There is an example : GATEIN/sample/extension/jar/src/main/java/org/exoplatform/sample/ext/web/SampleFilter.java

           

          This filter implement interface : org.exoplatform.web.filter.Filter . As you can see this is not normal J2EE filter, it's not configured in web.xml . You can find out its configuration at : GATEIN/sample/extension/war/src/main/webapp/WEB-INF/conf/sample-ext/web/web-inf-extension-configuration.xml

          • 2. Re: Gatein Filter
            capra

            thank you very much for your answer Vu Viet, i couldn´t find the sample folder

            where should it be on a gatein 3.2 jboss 5?

            • 3. Re: Gatein Filter
              vstorm83

              ah, sorry, here is the right path, i hope it's what you need

               

              3.2.x/examples/extension/jar/src/main/java/org/exoplatform/sample/ext/web/SampleFilter.java

              3.2.x/examples/extension/war/src/main/webapp/WEB-INF/conf/sample-ext/web/web-inf-extension-configuration.xml