@WebServlet(name="FileHarvestController",
urlPatterns="/harvester/harvest")
public class FileHarvestController
extends edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServlet
| 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.
|
| 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,
edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq) |
static String |
getUploadPath(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
Gets the location where we want to save uploaded files.
|
long |
maximumMultipartFileSize() |
protected edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.ResponseValues |
processRequest(edu.cornell.mannlib.vitro.webapp.controller.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 edu.cornell.mannlib.vitro.webapp.controller.MultipartRequestWrapper.ParsingStrategymaximumMultipartFileSize in class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServletpublic boolean stashFileSizeException()
stashFileSizeException in interface edu.cornell.mannlib.vitro.webapp.controller.MultipartRequestWrapper.ParsingStrategystashFileSizeException in class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServletprotected edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.ResponseValues processRequest(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
processRequest in class edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServletprotected String getTitle(String siteName, edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
getTitle in class edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServletpublic static String getHarvesterPath(javax.servlet.http.HttpServletRequest req)
public static String getFileHarvestRootPath(javax.servlet.http.HttpServletRequest req)
public static String getUploadPath(edu.cornell.mannlib.vitro.webapp.controller.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 edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServletIOExceptionjavax.servlet.ServletExceptionCopyright © 2022. All rights reserved.