Class AcceleratorAddOnFilter

  • All Implemented Interfaces:
    javax.servlet.Filter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware, org.springframework.core.env.EnvironmentCapable, org.springframework.web.context.ServletContextAware

    public class AcceleratorAddOnFilter
    extends org.springframework.web.filter.GenericFilterBean
    • Field Detail

      • ADDON_FILTER_ACTIVE_PROPERTY

        public static final java.lang.String ADDON_FILTER_ACTIVE_PROPERTY
        See Also:
        Constant Field Values
    • Constructor Detail

      • AcceleratorAddOnFilter

        public AcceleratorAddOnFilter()
    • Method Detail

      • doFilter

        public void doFilter​(javax.servlet.ServletRequest req,
                             javax.servlet.ServletResponse res,
                             javax.servlet.FilterChain chain)
                      throws java.io.IOException,
                             javax.servlet.ServletException
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • getAppContextFullPathNameFromRequest

        protected java.lang.String getAppContextFullPathNameFromRequest​(javax.servlet.http.HttpServletRequest request)
      • getFullPathNameFromRequest

        protected java.lang.String getFullPathNameFromRequest​(javax.servlet.http.HttpServletRequest request)
      • copyFileInternalIfNeeded

        protected void copyFileInternalIfNeeded​(java.lang.String sourceAddOnFileName,
                                                java.lang.String targetWebAddOnFileName)
                                         throws java.io.IOException
        Copies file @param sourceAddOnFileName to @param targetWebAddOnFileName if it is older. Creates a directory structure if needed.
        Parameters:
        sourceAddOnFileName -
        targetWebAddOnFileName -
        Throws:
        java.io.IOException
      • isActive

        protected boolean isActive()
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)