public class DefaultHashEncoderNamingStrategy extends Object implements NamingStrategy
| Constructor and Description |
|---|
DefaultHashEncoderNamingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected HashStrategy |
getHashStrategy() |
String |
rename(String originalName,
InputStream inputStream)
Creates a new name of the resource which encodes a version.
|
public static final String ALIAS
protected HashStrategy getHashStrategy()
HashStrategy to use for renaming. By default the used strategy is the same as the one
configured by wro4j. Override this method to provide a custom HashStrategy.public String rename(String originalName, InputStream inputStream) throws IOException
rename in interface NamingStrategyoriginalName - original name of the resource.inputStream - the stream of the content to rename.IOException - if there are stream reading problem.Copyright © 2008-2014. All Rights Reserved.