public class BatchImportServlet extends DSpaceServlet
| Constructor and Description |
|---|
BatchImportServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDSGet(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
GET request is only ever used to show the upload form
|
protected void |
doDSPost(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Respond to a post request for metadata bulk importing via csv
|
protected List<String> |
getRepeatedParameter(javax.servlet.http.HttpServletRequest request,
String metadataField,
String param)
Get repeated values from a form.
|
doGet, doPostdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected void doDSPost(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException, SQLException, AuthorizeException
doDSPost in class DSpaceServletcontext - a DSpace Context objectrequest - the HTTP requestresponse - the HTTP responsejavax.servlet.ServletExceptionIOExceptionSQLExceptionAuthorizeExceptionprotected void doDSGet(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException, SQLException, AuthorizeException
doDSGet in class DSpaceServletcontext - a DSpace Context objectrequest - the HTTP requestresponse - the HTTP responsejavax.servlet.ServletExceptionIOExceptionSQLExceptionAuthorizeExceptionprotected List<String> getRepeatedParameter(javax.servlet.http.HttpServletRequest request, String metadataField, String param)
This method can also handle "composite fields" (metadata fields which may require multiple params, etc. a first name and last name).
request - the HTTP request containing the form informationmetadataField - the metadata field which can store repeated valuesparam - the repeated parameter on the page (used to fill out the
metadataField)Copyright © 2016 DuraSpace. All Rights Reserved.