|
|||||||||
| 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
redstone.xmlrpc.XmlRpcServlet
com.lightdev.app.fileserver.http.HttpFileManager
public class HttpFileManager
Class HttpFileManager is a Servlet for file management via HTTP based on the Light Development File System library.
It extends the Redstone XML-RPC servlet and inherits the capability to communicate through the Hypertext Transfer Protocol (HTTP) this way, using remote procedure calls formatted in a flavor of the extensible markup language (XML-RPC).
It also uses the Light Development Simple Authentication and Authorisation Framework (SAM) so that remote method calls via XML-RPC are not exposed to users that are not allowed to use the file server.
| Field Summary | |
|---|---|
static String |
FILE_MANAGER_HANDLER_NAME
name of XML-RPC handler for file management |
static String |
FILE_SERVER_USERS
name of xml file with users and roles to use for authentication |
static String |
USER_FILE
name of file having user names, etc. |
static String |
USER_HOME_PROPERTY_NAME
property name of user home directory |
| Constructor Summary | |
|---|---|
HttpFileManager()
create a new instance of class RedstoneFileServer |
|
| Method Summary | |
|---|---|
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
override the doGet method to implement some service methods: reloadUsers causes the servlet to load the user xml file again. |
void |
init(ServletConfig servletConfig)
initialise this servlet, i.e. |
void |
setGatekeeper(Gatekeeper gatekeeper)
set the gatekeeper of this servlet. |
| Methods inherited from class redstone.xmlrpc.XmlRpcServlet |
|---|
doPost, getContentType, getStreamMessages, getXmlRpcServer |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String USER_FILE
public static final String FILE_MANAGER_HANDLER_NAME
public static final String USER_HOME_PROPERTY_NAME
public static final String FILE_SERVER_USERS
| Constructor Detail |
|---|
public HttpFileManager()
| Method Detail |
|---|
public void setGatekeeper(Gatekeeper gatekeeper)
gatekeeper - the gatekeeper to use
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException
doGet in class HttpServletIOException
ServletException
public void init(ServletConfig servletConfig)
throws ServletException
initialise this servlet, i.e.
The gatekeeper assumes an XML file with user and role information on the server.
init in interface Servletinit in class XmlRpcServletServletException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||