Class JenaCsv2RdfController
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
-
- edu.cornell.mannlib.vedit.controller.BaseEditController
-
- edu.cornell.mannlib.vitro.webapp.controller.jena.JenaIngestController
-
- edu.cornell.mannlib.vitro.webapp.controller.jena.JenaCsv2RdfController
-
- All Implemented Interfaces:
MultipartRequestWrapper.ParsingStrategy,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
@WebServlet(name="JenaCsv2RdfController", urlPatterns="/csv2rdf") public class JenaCsv2RdfController extends JenaIngestController- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.cornell.mannlib.vedit.controller.BaseEditController
BaseEditController.RoleInfo
-
Nested classes/interfaces inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
VitroHttpServlet.PickListSorter
-
-
Field Summary
-
Fields inherited from class edu.cornell.mannlib.vedit.controller.BaseEditController
BASE_10, DISPLAY_DATE_FORMAT, ENTITY_TYPE_ATTRIBUTE_NAME, ENTITY_URI_ATTRIBUTE_NAME, FORCE_NEW, JSP_PREFIX, MULTIPLEXED_PARAMETER_NAME, PROPERTY_SUPPRESSIONS_NOT_RELATED, TYPE_SUPPRESSIONS, TYPE_SUPPRESSIONS_NOT_RELATED, URI_SUPPRESSIONS
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
HTML_MIMETYPE, JSON_LD_MIMETYPE, JSON_MIMETYPE, N3_MIMETYPE, publicDateFormat, RDFXML_MIMETYPE, TTL_MIMETYPE, XHTML_MIMETYPE
-
-
Constructor Summary
Constructors Constructor Description JenaCsv2RdfController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jena.rdf.model.ModeldoExecuteCsv2Rdf(VitroRequest vreq, org.apache.commons.fileupload.FileItem fileStream, String filePath)voiddoPost(javax.servlet.http.HttpServletRequest rawRequest, javax.servlet.http.HttpServletResponse response)doPost does the same thing as the doGet methodlongmaximumMultipartFileSize()Override this to change the maximum size of uploaded files in multipart requests.booleanstashFileSizeException()Override this to change the way that exceptions are handled when parsing a multipart request.-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.jena.JenaIngestController
doCleanLiterals, doGenerateTBox, doGet, doProcessStrings, doSplitPropertyValues, doSubtractModels, getModel, getModelMaker, getModelType, isUsingMainStoreForIngest, showModelList
-
Methods inherited from class edu.cornell.mannlib.vedit.controller.BaseEditController
addAccessAttributes, addNotRelatedPropertySuppressions, addNotRelatedTypeSuppressions, addTypeSuppressions, addUriSuppressions, buildListOfSelectableRoles, createEpo, createEpo, getDefaultLandingPage, getSelfEditorRole, getSortedList, getWebappDaoFactory, getWebappDaoFactory, populateBeanFromParams, setRequestAttributes
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
dumpRequestParameters, isAuthorizedToDisplayPage, redirectToInsufficientAuthorizationPage, redirectToLoginPage, redirectUnauthorizedRequest, service, sortForPickList
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
maximumMultipartFileSize
public long maximumMultipartFileSize()
Description copied from class:VitroHttpServletOverride this to change the maximum size of uploaded files in multipart requests.- Specified by:
maximumMultipartFileSizein interfaceMultipartRequestWrapper.ParsingStrategy- Overrides:
maximumMultipartFileSizein classVitroHttpServlet
-
stashFileSizeException
public boolean stashFileSizeException()
Description copied from class:VitroHttpServletOverride this to change the way that exceptions are handled when parsing a multipart request. Be aware that multipart parameters have been lost, and that may include form fields.- Specified by:
stashFileSizeExceptionin interfaceMultipartRequestWrapper.ParsingStrategy- Overrides:
stashFileSizeExceptionin classVitroHttpServlet
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest rawRequest, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOExceptionDescription copied from class:VitroHttpServletdoPost does the same thing as the doGet method- Overrides:
doPostin classVitroHttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
doExecuteCsv2Rdf
public org.apache.jena.rdf.model.Model doExecuteCsv2Rdf(VitroRequest vreq, org.apache.commons.fileupload.FileItem fileStream, String filePath) throws Exception
- Throws:
Exception
-
-