| javax.servlet.http.HttpServlet org.sakaiproject.connector.fck.FCKConnectorServlet
FCKConnectorServlet | public class FCKConnectorServlet extends HttpServlet (Code) | | Conenctor Servlet to upload and browse files to a Sakai worksite for the FCK editor.
This servlet accepts 4 commands used to retrieve and create files and folders from a worksite resource.
The allowed commands are:
- GetFolders: Retrive the list of directory under the current folder
- GetFoldersAndFiles: Retrive the list of files and directory under the current folder
- CreateFolder: Create a new directory under the current folder
- FileUpload: Send a new file to the server (must be sent with a POST)
The current user must have a valid sakai session with permissions to access the realm associated
with the resource.
author: Joshua Ryan (joshua.ryan@asu.edu) merged servlets and Sakai-ified them author: This connector is loosely based on two servlets found on the FCK website http://www.fckeditor.net/ author: written by Simone Chiaretta (simo@users.sourceforge.net) |
Method Summary | |
public void | doGet(HttpServletRequest request, 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 command and then return the results to the client in XML format. | public void | doPost(HttpServletRequest request, HttpServletResponse response) Manage the Post requests (FileUpload).
The servlet accepts commands sent in the following format:
connector?Command=FileUpload&Type=ResourceType&CurrentFolder=FolderPath
It stores 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. |
doGet | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code) | | 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 command and then return the results to the client in XML format.
Valid values for Type are: Image, File, Flash and Link
|
doPost | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code) | | Manage the Post requests (FileUpload).
The servlet accepts commands sent in the following format:
connector?Command=FileUpload&Type=ResourceType&CurrentFolder=FolderPath
It stores 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.
|
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)
|
|
|