ro.isdc.wro.model.resource.support.naming
Class NoOpNamingStrategy

java.lang.Object
  extended by 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.
 
Constructor Summary
NoOpNamingStrategy()
           
 
Method Summary
 String rename(String originalName, InputStream inputStream)
          Creates a new name of the resource which encodes a version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIAS

public static final String ALIAS
A short name of this naming strategy.

See Also:
Constant Field Values
Constructor Detail

NoOpNamingStrategy

public NoOpNamingStrategy()
Method Detail

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.