openlsd.web.client
Class LSDGetServletAction

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by openlsd.web.client.LSDGetServletAction
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class LSDGetServletAction
extends javax.servlet.http.HttpServlet

Example module for getting a file from a LSD Server with native Servlet

Author:
Frederic Bregier LGPL
See Also:
Serialized Form

Constructor Summary
LSDGetServletAction()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Respond to a GET request for the content produced by this servlet.
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Respond to a POST request for the content produced by this servlet.
 void init()
          Init procedure
 
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

LSDGetServletAction

public LSDGetServletAction()
Method Detail

init

public void init()
          throws javax.servlet.UnavailableException
Init procedure

Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.UnavailableException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException,
                   javax.servlet.ServletException
Respond to a POST request for the content produced by this servlet.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - la requête HTTP du client
response - la réponse HTTP qu'on va construire
Throws:
java.io.IOException
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
Respond to a GET request for the content produced by this servlet.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - The servlet request we are processing
response - The servlet response we are producing
Throws:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet error occurs