A C D F G H I J M O P R S

## A

activate(FileOptimizerEventHandler.Config) - Method in class org.apache.sling.fileoptim.impl.FileOptimizerEventHandler
activate(ComponentContext, FileOptimizerServiceImpl.Config) - Method in class org.apache.sling.fileoptim.impl.FileOptimizerServiceImpl
activate(JpegFileOptimizer.Config) - Method in class org.apache.sling.fileoptim.internal.optimizers.JpegFileOptimizer

## C

canOptimize(Resource) - Method in interface org.apache.sling.fileoptim.FileOptimizerService
  Returns true if the resource is a registered type, the CA Config for the resource is enabled and if an optimizer is registered for the file's meta type
canOptimize(Resource) - Method in class org.apache.sling.fileoptim.impl.FileOptimizerServiceImpl
CONSOLE_LABEL - Static variable in class org.apache.sling.fileoptim.impl.FileOptimizerWebConsole
CONSOLE_TITLE - Static variable in class org.apache.sling.fileoptim.impl.FileOptimizerWebConsole

## D

deactivate() - Method in class org.apache.sling.fileoptim.impl.FileOptimizerEventHandler
deactivate(ComponentContext) - Method in class org.apache.sling.fileoptim.impl.FileOptimizerServiceImpl
destroy() - Method in class org.apache.sling.fileoptim.impl.filters.FileOptimizerFilter
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class org.apache.sling.fileoptim.impl.filters.FileOptimizerFilter
doGet(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class org.apache.sling.fileoptim.impl.servlets.FileOptimizerData
doGet(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class org.apache.sling.fileoptim.impl.servlets.FileOptimizerPreview
doRun(SlingHttpServletRequest, List<Modification>) - Method in class org.apache.sling.fileoptim.impl.OptimizeFileOperation
doRun(SlingHttpServletRequest, List<Modification>) - Method in class org.apache.sling.fileoptim.impl.RestoreOriginalOperation

## F

FileOptimizer - Interface in org.apache.sling.fileoptim
  Interface for File Optimizers to extend to implement
FileOptimizerConstants - Class in org.apache.sling.fileoptim
FileOptimizerData - Class in org.apache.sling.fileoptim.impl.servlets
  Servlet for displaying a preview of an optimized image.
FileOptimizerData() - Constructor for class org.apache.sling.fileoptim.impl.servlets.FileOptimizerData
FileOptimizerEventHandler - Class in org.apache.sling.fileoptim.impl
  An event filter to trigger to optimize images when they have been saved by compressing.
FileOptimizerEventHandler() - Constructor for class org.apache.sling.fileoptim.impl.FileOptimizerEventHandler
FileOptimizerEventHandler.Config - Annotation Type in org.apache.sling.fileoptim.impl
FileOptimizerFilter - Class in org.apache.sling.fileoptim.impl.filters
  Sling Servlet Filter for optimizing a file response.
FileOptimizerFilter() - Constructor for class org.apache.sling.fileoptim.impl.filters.FileOptimizerFilter
FileOptimizerFilter.Config - Annotation Type in org.apache.sling.fileoptim.impl.filters
FileOptimizerPreview - Class in org.apache.sling.fileoptim.impl.servlets
  Servlet for displaying a preview of an optimized image.
FileOptimizerPreview() - Constructor for class org.apache.sling.fileoptim.impl.servlets.FileOptimizerPreview
FileOptimizerService - Interface in org.apache.sling.fileoptim
  A service for optimizing files stored in Sling Resources.
FileOptimizerServiceImpl - Class in org.apache.sling.fileoptim.impl
  Implementation of the FileOptimizerService
FileOptimizerServiceImpl() - Constructor for class org.apache.sling.fileoptim.impl.FileOptimizerServiceImpl
FileOptimizerServiceImpl.Config - Annotation Type in org.apache.sling.fileoptim.impl
FileOptimizerWebConsole - Class in org.apache.sling.fileoptim.impl
  Simple web console plugin for listing out the available optimizers
FileOptimizerWebConsole() - Constructor for class org.apache.sling.fileoptim.impl.FileOptimizerWebConsole

## G

getAlgorithm() - Method in interface org.apache.sling.fileoptim.models.OptimizedFile
getAlgorithm() - Method in class org.apache.sling.fileoptim.OptimizationResult
  Returns the algorithm by which the file was optimized
getContent() - Method in interface org.apache.sling.fileoptim.models.OptimizedFile
getDisabled() - Method in interface org.apache.sling.fileoptim.models.OptimizedFile
getFileOptimizers() - Method in class org.apache.sling.fileoptim.impl.FileOptimizerServiceImpl
getHash() - Method in interface org.apache.sling.fileoptim.models.OptimizedFile
getLabel() - Method in class org.apache.sling.fileoptim.impl.FileOptimizerWebConsole
getMimeType() - Method in interface org.apache.sling.fileoptim.models.OptimizedFile
getName() - Method in interface org.apache.sling.fileoptim.FileOptimizer
  Gets the name of the optimizer
getName() - Method in class org.apache.sling.fileoptim.internal.optimizers.JpegFileOptimizer
getName() - Method in class org.apache.sling.fileoptim.internal.optimizers.PngFileOptimizer
getOptimizedContents(Resource) - Method in interface org.apache.sling.fileoptim.FileOptimizerService
  Gets the optimized contents of a file resource.
getOptimizedContents(Resource) - Method in class org.apache.sling.fileoptim.impl.FileOptimizerServiceImpl
getOptimizedContents() - Method in class org.apache.sling.fileoptim.OptimizationResult
  Returns the raw optimized contents as a byte array
getOptimizedContentStream() - Method in class org.apache.sling.fileoptim.OptimizationResult
  Returns the optimized contents as an InputStream
getOptimizedSize() - Method in class org.apache.sling.fileoptim.OptimizationResult
  Returns the optimized size in bytes
getOriginal() - Method in interface org.apache.sling.fileoptim.models.OptimizedFile
getOriginalSize() - Method in class org.apache.sling.fileoptim.OptimizationResult
  Return the original size in bytes
getResource() - Method in class org.apache.sling.fileoptim.OptimizationResult
  Returns the resource that was optimized
getResult() - Method in class org.apache.sling.fileoptim.models.OptimizeResource
  Gets the optimization result.
getSavings() - Method in interface org.apache.sling.fileoptim.models.OptimizedFile
getSavings() - Method in class org.apache.sling.fileoptim.OptimizationResult
  Return the percent savings as a 1-based double value
getTitle() - Method in class org.apache.sling.fileoptim.impl.FileOptimizerWebConsole

## H

handleEvent(Event) - Method in class org.apache.sling.fileoptim.impl.FileOptimizerEventHandler

## I

init(FilterConfig) - Method in class org.apache.sling.fileoptim.impl.filters.FileOptimizerFilter
init() - Method in class org.apache.sling.fileoptim.models.OptimizeResource
isCanOptimize() - Method in class org.apache.sling.fileoptim.models.OptimizeResource
  Return true if the file can be optimized
isOptimized(Resource) - Method in interface org.apache.sling.fileoptim.FileOptimizerService
  Returns true if the specified resource has already been optimized by the FileOptimizer.
isOptimized(Resource) - Method in class org.apache.sling.fileoptim.impl.FileOptimizerServiceImpl
isOptimized() - Method in class org.apache.sling.fileoptim.models.OptimizeResource
  Returns true if the file is optimized, false otherwise
isOptimized() - Method in class org.apache.sling.fileoptim.OptimizationResult
  Returns true if the result is actually optimized, if the optimization did not provide a smaller result or the file was not optimized for any other reason, this will be false.

## J

JpegFileOptimizer - Class in org.apache.sling.fileoptim.internal.optimizers
  Default optimizer which lossily compresses a JPEG image.
JpegFileOptimizer() - Constructor for class org.apache.sling.fileoptim.internal.optimizers.JpegFileOptimizer
JpegFileOptimizer.Config - Annotation Type in org.apache.sling.fileoptim.internal.optimizers

## M

MIME_TYPE - Static variable in class org.apache.sling.fileoptim.FileOptimizerConstants
MT_OPTIMIZED - Static variable in class org.apache.sling.fileoptim.FileOptimizerConstants

## O

OptimizationResult - Class in org.apache.sling.fileoptim
  Result of file optimization
OptimizationResult(Resource) - Constructor for class org.apache.sling.fileoptim.OptimizationResult
OptimizedFile - Interface in org.apache.sling.fileoptim.models
  Sling Model representing a file which can be or has been optimized.
optimizeFile(byte[], String) - Method in interface org.apache.sling.fileoptim.FileOptimizer
  Optimize a single file.
optimizeFile(Resource, boolean) - Method in interface org.apache.sling.fileoptim.FileOptimizerService
  Optimizes a file resource.
optimizeFile(Resource, boolean) - Method in class org.apache.sling.fileoptim.impl.FileOptimizerServiceImpl
optimizeFile(byte[], String) - Method in class org.apache.sling.fileoptim.internal.optimizers.JpegFileOptimizer
optimizeFile(byte[], String) - Method in class org.apache.sling.fileoptim.internal.optimizers.PngFileOptimizer
OptimizeFileOperation - Class in org.apache.sling.fileoptim.impl
  The File Optimization operation will optimize a file
OptimizeFileOperation() - Constructor for class org.apache.sling.fileoptim.impl.OptimizeFileOperation
OptimizeResource - Class in org.apache.sling.fileoptim.models
  Sling model for executing the optimizer on a resource, will not commit the result
OptimizeResource(Resource) - Constructor for class org.apache.sling.fileoptim.models.OptimizeResource
org.apache.sling.fileoptim - package org.apache.sling.fileoptim
org.apache.sling.fileoptim.impl - package org.apache.sling.fileoptim.impl
org.apache.sling.fileoptim.impl.filters - package org.apache.sling.fileoptim.impl.filters
org.apache.sling.fileoptim.impl.servlets - package org.apache.sling.fileoptim.impl.servlets
org.apache.sling.fileoptim.internal.optimizers - package org.apache.sling.fileoptim.internal.optimizers
org.apache.sling.fileoptim.models - package org.apache.sling.fileoptim.models

## P

PN_ALGORITHM - Static variable in class org.apache.sling.fileoptim.FileOptimizerConstants
PN_DISABLED - Static variable in class org.apache.sling.fileoptim.FileOptimizerConstants
PN_HASH - Static variable in class org.apache.sling.fileoptim.FileOptimizerConstants
PN_ORIGINAL - Static variable in class org.apache.sling.fileoptim.FileOptimizerConstants
PN_SAVINGS - Static variable in class org.apache.sling.fileoptim.FileOptimizerConstants
PngFileOptimizer - Class in org.apache.sling.fileoptim.internal.optimizers
  Default optimizer which lossly compresses a PNG image.
PngFileOptimizer() - Constructor for class org.apache.sling.fileoptim.internal.optimizers.PngFileOptimizer
PREFIX - Static variable in class org.apache.sling.fileoptim.FileOptimizerConstants

## R

renderContent(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.fileoptim.impl.FileOptimizerWebConsole
RestoreOriginalOperation - Class in org.apache.sling.fileoptim.impl
  The File Optimization operation restore the original file
RestoreOriginalOperation() - Constructor for class org.apache.sling.fileoptim.impl.RestoreOriginalOperation
run(SlingHttpServletRequest, PostResponse, SlingPostProcessor[]) - Method in class org.apache.sling.fileoptim.impl.OptimizeFileOperation
run(SlingHttpServletRequest, PostResponse, SlingPostProcessor[]) - Method in class org.apache.sling.fileoptim.impl.RestoreOriginalOperation

## S

serviceChanged(ServiceEvent) - Method in class org.apache.sling.fileoptim.impl.FileOptimizerServiceImpl
setAlgorithm(String) - Method in class org.apache.sling.fileoptim.OptimizationResult
setFileOptimizers(Map<String, List<ServiceReference<FileOptimizer>>>) - Method in class org.apache.sling.fileoptim.impl.FileOptimizerServiceImpl
setOptimized(boolean) - Method in class org.apache.sling.fileoptim.OptimizationResult
setOptimizedContents(byte[]) - Method in class org.apache.sling.fileoptim.OptimizationResult
setOptimizedSize(long) - Method in class org.apache.sling.fileoptim.OptimizationResult
setOriginalSize(long) - Method in class org.apache.sling.fileoptim.OptimizationResult
setSavings(double) - Method in class org.apache.sling.fileoptim.OptimizationResult

A C D F G H I J M O P R S