org.guvnor.m2repo.backend.server
public class FileServlet extends javax.servlet.http.HttpServlet
Constructor and Description |
---|
FileServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
doGet acting like a dispatcher.
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Posting accepts content of various types -
may be an attachement for an asset, or perhaps a repository import to process.
|
static FormData |
getFormData(javax.servlet.http.HttpServletRequest request)
Get the form data from the inbound request.
|
protected void |
processAttachmentDownload(String path,
javax.servlet.http.HttpServletResponse response) |
String |
uploadFile(FormData uploadItem) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
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
public static FormData getFormData(javax.servlet.http.HttpServletRequest request) throws IOException
IOException
public String uploadFile(FormData uploadItem) throws IOException
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.