Commit 3950ec31 authored by toaster's avatar toaster
Browse files

maven start on ace-am

git-svn-id: https://subversion.umiacs.umd.edu/ace/trunk@45 f1b3a171-7291-4a19-a512-95ad0ad9394a
parent 5540d94c
package edu.umiacs.ace.monitor.register;
import edu.umiacs.ace.monitor.core.Collection;
import edu.umiacs.ace.monitor.core.MonitoredItem;
import edu.umiacs.ace.token.TokenStoreEntry;
import java.util.Collections;
import java.util.List;
/**
*
* @author toaster
*/
public class IngestSessionBean {
private List<TokenStoreEntry> entries;
private Collection collection;
private MonitoredItem baseDirectory;
private int subset;
private int shortestEntry;
public MonitoredItem getBaseDirectory() {
return baseDirectory;
}
public Collection getCollection() {
return collection;
}
public List<TokenStoreEntry> getEntries() {
return Collections.unmodifiableList(entries);
}
public int getShortestEntry() {
return shortestEntry;
}
public int getSubset() {
return subset;
}
public void setSubset( int subset ) {
this.subset = subset;
}
}
package edu.umiacs.ace.monitor.register;
import edu.umiacs.ace.monitor.core.Collection;
import edu.umiacs.ace.monitor.core.MonitoredItem;
import edu.umiacs.ace.util.EntityManagerServlet;
import java.io.IOException;
import javax.persistence.EntityManager;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.tomcat.util.http.fileupload.FileUploadBase;
/**
*
* @author toaster
*/
public class IngestStore extends EntityManagerServlet {
@Override
protected void processRequest( HttpServletRequest request, HttpServletResponse response,
EntityManager em ) throws ServletException, IOException {
Collection coll = getCollection(request, em);
MonitoredItem item = getItem(request, em);
if (item != null && !item.isDirectory())
throw new ServletException("Selected item is not a directory " + item.getPath());
// request.
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment