|
||||||||||
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
net.fckeditor.connector.ConnectorServlet
public class ConnectorServlet
Servlet to upload and browse files.
This servlet accepts 4 commands used to retrieve and create files and folders from a server
directory. The allowed commands are:
Constructor Summary | |
---|---|
ConnectorServlet()
|
Method Summary | |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Manage the Get requests (GetFolders, GetFoldersAndFiles, CreateFolder). The servlet accepts commands sent in the following format: connector?Command=CommandName&Type=ResourceType&CurrentFolder=FolderPath It executes the commands and then return the results to the client in XML format. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Manage the Post requests (FileUpload). The servlet accepts commands sent in the following format: connector?Command=FileUpload&Type=ResourceType&CurrentFolder=FolderPath It store the file (renaming it in case a file with the same name exists) and then return an HTML file with a javascript command in it. |
void |
init()
Initialize the servlet. The default directory for user files will be constructed. |
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, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectorServlet()
Method Detail |
---|
public void init() throws javax.servlet.ServletException, java.lang.IllegalArgumentException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
java.lang.IllegalArgumentException
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |