Class FileLinkProcessor
- java.lang.Object
-
- net.anotheria.anosite.content.variables.XLinkProcessor
-
- net.anotheria.anosite.content.variables.FileLinkProcessor
-
- All Implemented Interfaces:
VariablesProcessor
public class FileLinkProcessor extends XLinkProcessor
Processor for links to files (for example PDF) which are uploaded via IASResourceDataService.- Author:
- lrosenberg
-
-
Field Summary
-
Fields inherited from class net.anotheria.anosite.content.variables.XLinkProcessor
SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description FileLinkProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetFileName(String variable)Returns the filename corresponding with the variable.protected StringgetResourcePath(String contextPath)Returns URL part with context path and mapping to proper servlet.-
Methods inherited from class net.anotheria.anosite.content.variables.XLinkProcessor
getLog, getResourceServletMappingConfiguration, replace
-
-
-
-
Method Detail
-
getResourcePath
protected String getResourcePath(String contextPath)
Description copied from class:XLinkProcessorReturns URL part with context path and mapping to proper servlet. Path will contains all required parts - for resource reach viaResourceServlet.- Specified by:
getResourcePathin classXLinkProcessor- Parameters:
contextPath- request context path- Returns:
- string
-
getFileName
protected String getFileName(String variable)
Description copied from class:XLinkProcessorReturns the filename corresponding with the variable.- Specified by:
getFileNamein classXLinkProcessor- Parameters:
variable- var itself- Returns:
- file name
-
-