| javax.servlet.http.HttpServlet org.apache.geronimo.deployment.remote.FileUploadServlet
FileUploadServlet | public class FileUploadServlet extends HttpServlet (Code) | | A servlet that accepts file uploads. It takes only POST requests, which should
contain a Java "DataOutput" formatted stream from RemoteDeployUtil containing:
RemoteDeployer data stream format:
0) an int, the version of this datastream format - REMOTE_DEPLOY_REQUEST_VER
1) an int, the number of files being uploaded
2) for each file:
2.0) a UTF String, the filename of the file being uploaded
2.1) a long, the length of the file in bytes
2.2) byte[], byte count equal to the number above for the file
RemoteDeployer response stream format:
It returns a serialized stream containing:
0) an int, the version of this datastream format - REMOTE_DEPLOY_RESPONSE_VER
1) a UTF string, the status (should be "OK")
2) an int, the number of files received
3) for each file:
3.1) a UTF String, the path to the file as saved to the server's filesystem
The file positions in the response will be the same as in the request.
That is, a name for upload file #2 will be in response position #2.
version: $Rev: 567944 $ $Date: 2007-08-20 21:22:33 -0700 (Mon, 20 Aug 2007) $ |
REMOTE_DEPLOY_REQUEST_VER | final public static int REMOTE_DEPLOY_REQUEST_VER(Code) | | |
REMOTE_DEPLOY_REQUEST_VER_0 | final public static int REMOTE_DEPLOY_REQUEST_VER_0(Code) | | Note: The below versions should be kept in sync with those in RemoteDeployUtil.java *
|
REMOTE_DEPLOY_RESPONSE_VER | final public static int REMOTE_DEPLOY_RESPONSE_VER(Code) | | |
REMOTE_DEPLOY_RESPONSE_VER_0 | final public static int REMOTE_DEPLOY_RESPONSE_VER_0(Code) | | |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|