org.guvnor.common.services.backend.file.upload
public abstract class AbstractFileServlet extends javax.servlet.http.HttpServlet
Constructor and Description |
---|
AbstractFileServlet() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.uberfire.backend.vfs.Path |
convertPath(String fullPath)
Convert fullPath into a Path
|
protected abstract org.uberfire.backend.vfs.Path |
convertPath(String fileName,
String contextPath)
Convert fileName and contextPath into a Path
|
protected abstract void |
doCreate(org.uberfire.backend.vfs.Path path,
InputStream data,
String comment)
Create a new resource
|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
doGet acting like a dispatcher.
|
protected abstract InputStream |
doLoad(org.uberfire.backend.vfs.Path path)
Load resource
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Posting accepts content of various types.
|
protected abstract void |
doUpdate(org.uberfire.backend.vfs.Path path,
InputStream data,
String comment)
Update a resource
|
protected void |
processAttachmentDownload(String path,
javax.servlet.http.HttpServletResponse response) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected abstract InputStream doLoad(org.uberfire.backend.vfs.Path path)
path
- protected abstract void doCreate(org.uberfire.backend.vfs.Path path, InputStream data, String comment)
path
- data
- comment
- protected abstract void doUpdate(org.uberfire.backend.vfs.Path path, InputStream data, String comment)
path
- data
- comment
- protected abstract org.uberfire.backend.vfs.Path convertPath(String fileName, String contextPath) throws URISyntaxException
fileName
- contextPath
- URISyntaxException
protected abstract org.uberfire.backend.vfs.Path convertPath(String fullPath) throws URISyntaxException
fullPath
- URISyntaxException
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
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 processAttachmentDownload(String path, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.