Class ImageResizingProcessor

    • Field Detail

      • IMAGE_CACHE_PATH

        protected static final String IMAGE_CACHE_PATH
    • Constructor Detail

      • ImageResizingProcessor

        public ImageResizingProcessor()
    • Method Detail

      • processBefore

        public String processBefore​(String path,
                                    SilverpeasFileProcessor.ProcessingContext context)
        Description copied from interface: SilverpeasFileProcessor
        Processes the specified path and returns the new path of the SilverpeasFile to get. This method is triggered before retrieving the SilverpeasFile matching a given file path. If nothing should be done with the path, then just returns the path passed as argument.
        Parameters:
        path - the path of the asked file.
        context - the processing context.
        Returns:
        either the specified path or a new path of the asked file.
      • processAfter

        public SilverpeasFile processAfter​(SilverpeasFile file,
                                           SilverpeasFileProcessor.ProcessingContext context)
        Description copied from interface: SilverpeasFileProcessor
        Processes the specified SilverpeasFile and returns the new one. This method is triggered after retrieving the SilverpeasFile. If nothing should be done with the path, then just returns the SilverpeasFile instance passed as argument.
        Parameters:
        file - the SilverpeasFile to process.
        context - the processing context.
        Returns:
        either the specified one or a new one.