@ProviderType @Model(adaptables=org.apache.sling.api.resource.Resource.class) public class OptimizeResource extends Object
Constructor and Description |
---|
OptimizeResource(org.apache.sling.api.resource.Resource resource) |
Modifier and Type | Method and Description |
---|---|
OptimizationResult |
getResult()
Gets the optimization result.
|
void |
init() |
boolean |
isCanOptimize()
Return true if the file can be optimized
|
boolean |
isOptimized()
Returns true if the file is optimized, false otherwise
|
public OptimizeResource(org.apache.sling.api.resource.Resource resource)
@PostConstruct public void init() throws IOException
IOException
public boolean isOptimized()
public OptimizationResult getResult()
public boolean isCanOptimize()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.