|
Guvnor - Services Backend 6.0.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.guvnor.common.services.backend.file.upload.AbstractFileServlet
public abstract class AbstractFileServlet
This is for dealing with assets that have an attachment (ie assets that are really an attachment).
| Constructor Summary | |
|---|---|
AbstractFileServlet()
|
|
| Method Summary | |
|---|---|
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,
javax.servlet.http.HttpServletRequest request,
String comment)
Create a new resource |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
doGet acting like a dispatcher. |
protected abstract InputStream |
doLoad(org.uberfire.backend.vfs.Path path,
javax.servlet.http.HttpServletRequest request)
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,
javax.servlet.http.HttpServletRequest request,
String comment)
Update a resource |
protected void |
processAttachmentDownload(String path,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractFileServlet()
| Method Detail |
|---|
protected abstract InputStream doLoad(org.uberfire.backend.vfs.Path path,
javax.servlet.http.HttpServletRequest request)
path - request -
protected abstract void doCreate(org.uberfire.backend.vfs.Path path,
InputStream data,
javax.servlet.http.HttpServletRequest request,
String comment)
path - data - request - comment -
protected abstract void doUpdate(org.uberfire.backend.vfs.Path path,
InputStream data,
javax.servlet.http.HttpServletRequest request,
String comment)
path - data - request - 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.HttpServletjavax.servlet.ServletException
IOException
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletException
IOException
protected void processAttachmentDownload(String path,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOException
|
Guvnor - Services Backend 6.0.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||