LocalLoginServlet
Stay organized with collections
Save and categorize content based on your preferences.
- java.lang.Object
-
- HttpServlet
-
- com.google.appengine.api.users.dev.LocalLoginServlet
-
public final class LocalLoginServlet
extends HttpServlet
LocalLoginServlet
is the servlet responsible for implementing
the fake authentication provided by the Development AppServer.
This servlet responds to both GET
and POST
requests. GET
requests result in a simple HTML form that
asks for an email address and whether or not the user is an
administrator. POST
requests expect to receive the output
from this form, and set a cookie that contains the same data.
After the user has been logged in, they are redirected to the URL
specified in the "continue"
request parameter.
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LocalLoginServlet
public LocalLoginServlet()
-
Method Detail
-
doGet
public void doGet(HttpServletRequest req,
HttpServletResponse resp)
throws java.io.IOException
- Throws:
java.io.IOException
-
doPost
public void doPost(HttpServletRequest req,
HttpServletResponse resp)
throws java.io.IOException
- Throws:
java.io.IOException
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-02-15 UTC."],[[["`LocalLoginServlet` is a servlet that provides fake authentication for the Development AppServer."],["This servlet handles both `GET` and `POST` requests to simulate user login functionality."],["`GET` requests display an HTML form for entering an email address and admin status."],["`POST` requests process form submissions, set a cookie with the user data, and redirect the user to a specified URL."],["The class implements methods `doGet()` and `doPost()` to manage the requests, and throws an `IOException`."]]],[]]