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, service
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected 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
- IOException
protected void handleRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
req
- res
- javax.servlet.ServletException
IOException
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.