com.ibm.commerce.campaigns.filter

Class CampaignsFilter

  • java.lang.Object
    • com.ibm.commerce.campaigns.filter.CampaignsFilter
  • All Implemented Interfaces:
    javax.servlet.Filter


    public class CampaignsFilter
    extends java.lang.Object
    implements javax.servlet.Filter
    Filter that handles campaign e-Marketing Spot population for caching purposes.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      static java.lang.String EMS_REQUEST_ATTRIBUTE_CACHE_KEY_PREPEND
      The name of the request attribute that is the unique identifier of the eMarketingSpots and their content.
    • Constructor Summary

      Constructors 
      Constructor and Description
      CampaignsFilter() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void destroy() 
      void doFilter(javax.servlet.ServletRequest arg0, javax.servlet.ServletResponse arg1, javax.servlet.FilterChain arg2)
      Chaining method doFilter
      java.lang.String getCommandName(javax.servlet.http.HttpServletRequest request)
      Get WebSphere Commerce command name
      void init(javax.servlet.FilterConfig arg0)
      Main init method, called to initialize the cache filter.
      • Methods inherited from class java.lang.Object

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

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • EMS_REQUEST_ATTRIBUTE_CACHE_KEY_PREPEND

        public static final java.lang.String EMS_REQUEST_ATTRIBUTE_CACHE_KEY_PREPEND
        The name of the request attribute that is the unique identifier of the eMarketingSpots and their content. This name is displayed as part of the request.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CampaignsFilter

        public CampaignsFilter()
    • Method Detail

      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter
        See Also:
        Filter.destroy()
      • doFilter

        public void doFilter(javax.servlet.ServletRequest arg0,
                             javax.servlet.ServletResponse arg1,
                             javax.servlet.FilterChain arg2)
                      throws java.io.IOException,
                             javax.servlet.ServletException
        Chaining method doFilter
        Specified by:
        doFilter in interface javax.servlet.Filter
        Parameters:
        request - javax.servlet.ServletRequest
        response - javax.servlet.ServletResponse
        chain - javax.servlet.FilterChain
        Throws:
        javax.servlet.ServletException
        java.io.IOException
        See Also:
        Filter.doFilter(ServletRequest, ServletResponse, FilterChain)
      • getCommandName

        public java.lang.String getCommandName(javax.servlet.http.HttpServletRequest request)
        Get WebSphere Commerce command name
        Parameters:
        request - request object
        Returns:
        WebSphere Commerce command name
      • init

        public void init(javax.servlet.FilterConfig arg0)
                  throws javax.servlet.ServletException
        Main init method, called to initialize the cache filter.
        Specified by:
        init in interface javax.servlet.Filter
        Parameters:
        arg0 - FilterConfig
        Throws:
        javax.servlet.ServletException
        See Also:
        Filter.init(FilterConfig)