superviseur.net.servlets
Class CapServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bysuperviseur.net.servlets.ProtectedResourceServlet
              extended bysuperviseur.net.servlets.CapServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class CapServlet
extends ProtectedResourceServlet

See Also:
Serialized Form

Nested Class Summary
private  class CapServlet.ReponseWriter
           
 
Field Summary
private  CapServlet.ReponseWriter reponseWriter
           
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
CapServlet()
           
 
Method Summary
 void destroy()
          Nettoyer les ressources
protected  void doAuthorizedGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
protected  void doAuthorizedPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 void init(javax.servlet.ServletConfig config)
           
protected  boolean isRequireddAdmin()
           
private  java.lang.String makeParamAcces()
           
private  java.lang.String readCodeCAP(java.lang.String strNumero)
           
private  java.lang.String writeCodeCAP(java.lang.String strNumero, java.lang.String code)
           
 
Methods inherited from class superviseur.net.servlets.ProtectedResourceServlet
doGet, doPost
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, 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
 

Field Detail

reponseWriter

private CapServlet.ReponseWriter reponseWriter
Constructor Detail

CapServlet

public CapServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class ProtectedResourceServlet
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Nettoyer les ressources


doAuthorizedGet

protected void doAuthorizedGet(javax.servlet.http.HttpServletRequest req,
                               javax.servlet.http.HttpServletResponse res)
                        throws javax.servlet.ServletException,
                               java.io.IOException
Specified by:
doAuthorizedGet in class ProtectedResourceServlet
Throws:
javax.servlet.ServletException
java.io.IOException

makeParamAcces

private java.lang.String makeParamAcces()

doAuthorizedPost

protected void doAuthorizedPost(javax.servlet.http.HttpServletRequest req,
                                javax.servlet.http.HttpServletResponse res)
                         throws javax.servlet.ServletException,
                                java.io.IOException
Specified by:
doAuthorizedPost in class ProtectedResourceServlet
Throws:
javax.servlet.ServletException
java.io.IOException

readCodeCAP

private java.lang.String readCodeCAP(java.lang.String strNumero)

writeCodeCAP

private java.lang.String writeCodeCAP(java.lang.String strNumero,
                                      java.lang.String code)

isRequireddAdmin

protected boolean isRequireddAdmin()
Specified by:
isRequireddAdmin in class ProtectedResourceServlet