Class WeldCrossContextFilter

  • All Implemented Interfaces:
    jakarta.servlet.Filter

    @Deprecated(forRemoval=true)
    public class WeldCrossContextFilter
    extends Object
    implements jakarta.servlet.Filter
    Deprecated, for removal: This API element is subject to removal in a future version.
    this class is deprecated and will be removed in Weld 6
    This class provides support for cross-context dispatching to a web application that's using Weld. By default Weld assumes single context dispatching, and relies upon receiving events accordingly.

    This filter is only required in special circumstances - i.e. within portlet applications.

    To install add the following configuration to your portlet web archive's web.xml:
       
           WeldCrossContextFilter
           org.jboss.weld.servlet.WeldCrossContextFilter
       
    
       
           WeldCrossContextFilter
           /*
           INCLUDE
           FORWARD
           ERROR
       
     
    Author:
    Marko Strukelj
    • Constructor Summary

      Constructors 
      Constructor Description
      WeldCrossContextFilter()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Constructor Detail

      • WeldCrossContextFilter

        public WeldCrossContextFilter()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • init

        public void init​(jakarta.servlet.FilterConfig filterConfig)
                  throws jakarta.servlet.ServletException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        init in interface jakarta.servlet.Filter
        Throws:
        jakarta.servlet.ServletException
      • doFilter

        public void doFilter​(jakarta.servlet.ServletRequest request,
                             jakarta.servlet.ServletResponse response,
                             jakarta.servlet.FilterChain chain)
                      throws IOException,
                             jakarta.servlet.ServletException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        doFilter in interface jakarta.servlet.Filter
        Throws:
        IOException
        jakarta.servlet.ServletException
      • destroy

        public void destroy()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        destroy in interface jakarta.servlet.Filter