public class SuffixFileMapper extends AbstractFileMapper
directory/archive.tar.gz => directory/archivesuffix.tar.gz
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROLE_HINT
The suffix mappers role-hint: "suffix".
|
private java.lang.String |
suffix |
DEFAULT_ROLE_HINT, ROLE
Constructor and Description |
---|
SuffixFileMapper() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMappedFileName(java.lang.String pName)
Checks the input and returns it without modifications.
|
java.lang.String |
getSuffix()
Returns the suffix to add.
|
void |
setSuffix(java.lang.String suffix)
Sets the suffix to add.
|
public static final java.lang.String ROLE_HINT
private java.lang.String suffix
public java.lang.String getSuffix()
public void setSuffix(java.lang.String suffix)
@Nonnull public java.lang.String getMappedFileName(@Nonnull java.lang.String pName)
AbstractFileMapper
getMappedFileName
in interface FileMapper
getMappedFileName
in class AbstractFileMapper
pName
- The source name.