public class TimestampNamingStrategy extends Object implements NamingStrategy
| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS
Alias used identify this implementation when configuring which
NamingStrategy to use. |
| Constructor and Description |
|---|
TimestampNamingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
getTimestamp() |
String |
rename(String originalName,
InputStream inputStream)
Creates a new name of the resource which encodes a version.
|
public static final String ALIAS
NamingStrategy to use.public String rename(String originalName, InputStream inputStream)
rename in interface NamingStrategyoriginalName - original name of the resource.inputStream - the stream of the content to rename.protected long getTimestamp()
Copyright © 2008-2014. All Rights Reserved.