com.lightdev.app.fileserver.http
Class HttpFileExchanger

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.lightdev.app.fileserver.http.HttpFileExchanger
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class HttpFileExchanger
extends HttpServlet

Class HttpFileExchanger can be used to send and receive binary data that represents contents of files through the Hypertext Transfer Protocol (HTTP).

The Light Development Simple Access Model framework (SAM) is used for authentication and authorisation.

Version:
2, 11.9.2008
Author:
Ulrich Hilger, Light Development, http://www.lightdev.com, info@lightdev.com, published under the terms and conditions of the BSD License, for details see file license.txt in the distribution package of this software
See Also:
Serialized Form

Constructor Summary
HttpFileExchanger()
          create a new instance of class HttpFileExchanger
 
Method Summary
 void init(ServletConfig config)
          initialise this servlet
 void setGatekeeper(Gatekeeper gatekeeper)
          set the gatekeeper of this servlet.
 
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
 

Constructor Detail

HttpFileExchanger

public HttpFileExchanger()
create a new instance of class HttpFileExchanger

Method Detail

setGatekeeper

public void setGatekeeper(Gatekeeper gatekeeper)
set the gatekeeper of this servlet. This method can be used to change the backing user data store.

Parameters:
gatekeeper - the gatekeeper to use

init

public void init(ServletConfig config)
          throws ServletException
initialise this servlet

Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Parameters:
config - the servlet configuration
Throws:
ServletException