com.mhavila.cookbook.web.security
Class AutenticadoServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.mhavila.cookbook.web.security.AutenticadoServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class AutenticadoServlet
- extends HttpServlet
- Author:
- Márcio d'Ávila (www.mhavila.com)
- See Also:
- Serialized Form
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutenticadoServlet
public AutenticadoServlet()
doGet
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Esta é uma servlet comum, porém no web.xml da sua aplicação web,
deve ser configurada a necessidade de autenticação para acessá-la.
- Overrides:
doGet in class HttpServlet
- Throws:
ServletException
IOException- See Also:
HttpServlet.doGet(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
main
public static void main(String[] args)