public class FileHarvestController extends FreemarkerHttpServlet
FreemarkerHttpServlet.TemplateVitroHttpServlet.PickListSorter| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_TO_HARVESTED_DATA
Relative path from the Harvester root directory to the directory containing the script templates.
|
static String |
PATH_TO_HARVESTER_SCRIPTS
Relative path from the Harvester root directory to the directory containing the script templates.
|
static String |
PATH_TO_TEMPLATE_FILES
Relative path from the Harvester root directory to the directory where user-downloadable template files are stored.
|
BODY_TEMPLATE_TYPE, PAGE_TEMPLATE_TYPEHTML_MIMETYPE, JSON_LD_MIMETYPE, JSON_MIMETYPE, N3_MIMETYPE, publicDateFormat, RDFXML_MIMETYPE, TTL_MIMETYPE, XHTML_MIMETYPE| Constructor and Description |
|---|
FileHarvestController() |
| Modifier and Type | Method and Description |
|---|---|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static String |
getFileHarvestRootPath(javax.servlet.http.HttpServletRequest req)
Returns the path on this machine of the area within Harvester reserved for File Harvest.
|
static String |
getHarvesterPath(javax.servlet.http.HttpServletRequest req)
Returns the root location of the VIVO Harvester on this machine.
|
protected String |
getTitle(String siteName,
VitroRequest vreq) |
static String |
getUploadPath(VitroRequest vreq)
Gets the location where we want to save uploaded files.
|
long |
maximumMultipartFileSize() |
protected ResponseValues |
processRequest(VitroRequest vreq) |
boolean |
stashFileSizeException() |
doException, doForward, doGet, doRdf, doRedirect, doResponse, doTemplate, getBeansWrapper, getDisplayModelMenu, getFreemarkerComponentsForJsp, getPageTemplateName, getPageTemplateValues, getThemeDir, handleException, processTemplate, processTemplateToString, requiredActions, wrap, wrap, write, writePage, writeTemplate, writeTemplatedumpRequestParameters, isAuthorizedToDisplayPage, redirectToInsufficientAuthorizationPage, redirectToLoginPage, redirectUnauthorizedRequest, service, sortForPickListdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, servicepublic static final String PATH_TO_TEMPLATE_FILES
public static final String PATH_TO_HARVESTER_SCRIPTS
public static final String PATH_TO_HARVESTED_DATA
public long maximumMultipartFileSize()
maximumMultipartFileSize in interface MultipartRequestWrapper.ParsingStrategymaximumMultipartFileSize in class VitroHttpServletpublic boolean stashFileSizeException()
stashFileSizeException in interface MultipartRequestWrapper.ParsingStrategystashFileSizeException in class VitroHttpServletprotected ResponseValues processRequest(VitroRequest vreq)
processRequest in class FreemarkerHttpServletprotected String getTitle(String siteName, VitroRequest vreq)
getTitle in class FreemarkerHttpServletpublic static String getHarvesterPath(javax.servlet.http.HttpServletRequest req)
public static String getFileHarvestRootPath(javax.servlet.http.HttpServletRequest req)
public static String getUploadPath(VitroRequest vreq)
vreq - the request from which to get the session IDpublic void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
doPost in class FreemarkerHttpServletIOExceptionjavax.servlet.ServletExceptionCopyright © 2016. All rights reserved.