ro.isdc.wro.model.resource.support.naming
Class NoOpNamingStrategy
java.lang.Object
ro.isdc.wro.model.resource.support.naming.NoOpNamingStrategy
- All Implemented Interfaces:
- NamingStrategy
public class NoOpNamingStrategy
- extends Object
- implements NamingStrategy
The simplest implementation of NamingStrategy
which preserve the original name.
- Author:
- Alex Objelean
Field Summary |
static String |
ALIAS
A short name of this naming strategy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALIAS
public static final String ALIAS
- A short name of this naming strategy.
- See Also:
- Constant Field Values
NoOpNamingStrategy
public NoOpNamingStrategy()
rename
public String rename(String originalName,
InputStream inputStream)
- Creates a new name of the resource which encodes a version.
- Specified by:
rename
in interface NamingStrategy
- Parameters:
originalName
- original name of the resource.inputStream
- the stream of the content to rename.
- Returns:
- new name of the resource with version encoded.
Copyright © 2008-2013. All Rights Reserved.