|
|||||||||
| 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
openlsm.web.client.LSMPoolGetServletAction
public class LSMPoolGetServletAction
Example module for getting a file from a pooled connection to the LSD Server with native Servlet for OpenLSM Support. No OpenLDAP or similar action is done since it is out of the scope of the current example. But of course, a reasonable implementation should verify who is asking an email in order to ensure privacy.
| Constructor Summary | |
|---|---|
LSMPoolGetServletAction()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy this service at Tomcat stop or Application stop (non-Javadoc) |
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 |
|---|
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 LSMPoolGetServletAction()
| Method Detail |
|---|
public void init()
throws javax.servlet.UnavailableException
init in class javax.servlet.GenericServletjavax.servlet.UnavailableExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletGenericServlet.destroy()
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
doPost in class javax.servlet.http.HttpServletrequest - la requête HTTP du clientresponse - la réponse HTTP qu'on va construire
java.io.IOException
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
doGet in class javax.servlet.http.HttpServletrequest - The servlet request we are processingresponse - The servlet response we are producing
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||