public class CurationService extends javax.servlet.http.HttpServlet implements CuratorConfMetKeys
| Modifier and Type | Field and Description |
|---|---|
static CurationServiceConfig |
config |
protected static String |
FORMAT_HTML |
protected static String |
FORMAT_JSON |
protected SingleSignOn |
sso |
protected static String |
UNKNOWN_OUT_FORMAT |
CATALOG_FACTORY_CLASS, CRAWLER_CONF_FILE, DEFAULT_TRANSFER_FACTORY, FM_PROPS, FM_URL, MET_AREA_PATH, MET_EXTENSION, MET_EXTRACTOR_CONF_UPLOAD_PATH, POLICY_UPLOAD_PATH, STAGING_AREA_PATH| Constructor and Description |
|---|
CurationService()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
cleansePath(String path) |
String |
getDirectoryAreaAsJSON(String base,
String path,
boolean showFiles)
Gets the staging area as a JSON formatted response object.
|
protected String[] |
getFilesInDirectory(String directory,
boolean showFiles) |
void |
init(javax.servlet.ServletConfig conf) |
protected void |
sendRedirect(String page,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletResponse response) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic static CurationServiceConfig config
protected static final String FORMAT_JSON
protected static final String FORMAT_HTML
protected static final String UNKNOWN_OUT_FORMAT
protected SingleSignOn sso
public void init(javax.servlet.ServletConfig conf)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic String getDirectoryAreaAsJSON(String base, String path, boolean showFiles)
base - The base directory to read files from, should be the staging area
root.path - The particular child path within the staging area.showFiles - Whether or not to show File.isFile() files or not.JSONObject.toString().protected void sendRedirect(String page, javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionprotected String cleansePath(String path) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 1999–2017 Apache OODT. All rights reserved.