public class DocumentExporterServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
DocumentExporterServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
executeHook(File hook,
File targetDir,
String providerName,
String segmentName)
Execute hook.
|
void |
exportDocuments(String id,
String providerName,
String segmentName,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Export documents for all active shares.
|
protected String |
getNormalizedFilename(String name)
Get normalized file name.
|
protected String |
getQualifiedFolderName(DocumentFolder documentFolder,
String separator)
Get qualified folder name.
|
protected void |
handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Export Documents.
|
void |
init(javax.servlet.ServletConfig config) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected String getQualifiedFolderName(DocumentFolder documentFolder, String separator)
documentFolder - separator - protected String getNormalizedFilename(String name)
name - protected void executeHook(File hook, File targetDir, String providerName, String segmentName)
hook - targetDir - providerName - segmentName - public void exportDocuments(String id, String providerName, String segmentName, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException
id - providerName - segmentName - req - res - IOExceptionprotected void handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
req - res - javax.servlet.ServletExceptionIOExceptionprotected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.