DefaultHashEncoderNamingStrategy.public class HashEncoderNamingStrategy extends Object implements NamingStrategy
NamingStrategy which encodes the hash code into the name of the
resource. For instance: For group.js -> group-.js . This implementation uses by
default CRC32HashBuilder implementation.| Constructor and Description |
|---|
HashEncoderNamingStrategy()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected HashStrategy |
getHashStrategy()
Deprecated.
|
protected HashStrategy |
newHashStrategy()
Deprecated.
|
String |
rename(String originalName,
InputStream inputStream)
Deprecated.
Creates a new name of the resource which encodes a version.
|
public static final String ALIAS
protected HashStrategy newHashStrategy()
HashStrategy.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-2013. All Rights Reserved.