Class SecureMediaFilter

java.lang.Object
org.springframework.web.filter.GenericFilterBean
de.hybris.platform.servicelayer.web.SecureMediaFilter
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

@Deprecated(since="6.3.0", forRemoval=true) public class SecureMediaFilter extends org.springframework.web.filter.GenericFilterBean
Deprecated, for removal: This API element is subject to removal in a future version.
since 6.3.0 - in favor ofWebAppMediaFilter
The SecureMediaFilter takes care of checking if access to medias is granted (based on their ACL and secure folder).
  • Field Summary

    Fields inherited from class org.springframework.web.filter.GenericFilterBean

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected InputStream
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected String
    getResourcePath(javax.servlet.http.HttpServletRequest httpRequest)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected boolean
    isAddContentDisposition(javax.servlet.http.HttpServletRequest httpRequest)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setSecureMediaToken(String secureMediaToken)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class org.springframework.web.filter.GenericFilterBean

    addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SecureMediaFilter

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

    • doFilter

      public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
      javax.servlet.ServletException
    • logMediaLookupError

      protected void logMediaLookupError(String mediaPKStr, Exception e)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isAddContentDisposition

      protected boolean isAddContentDisposition(javax.servlet.http.HttpServletRequest httpRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getResourcePath

      protected String getResourcePath(javax.servlet.http.HttpServletRequest httpRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getResourceAsStream

      protected InputStream getResourceAsStream(String resourceName)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setMediaPermissionService

      public void setMediaPermissionService(MediaPermissionService mediaPermissionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setModelService

      public void setModelService(ModelService modelService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUserService

      public void setUserService(UserService userService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setMediaService

      public void setMediaService(MediaService mediaService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setSecureMediaToken

      public void setSecureMediaToken(String secureMediaToken)
      Deprecated, for removal: This API element is subject to removal in a future version.