Class LoginServlet
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- de.kosmos_lab.web.server.servlets.ExampleServlet
-
- de.kosmos_lab.web.server.servlets.user.LoginServlet
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
@WebServlet(urlPatterns="/user/login", loadOnStartup=1) public class LoginServlet extends ExampleServlet- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.kosmos_lab.web.server.servlets.ExampleServlet
logger, pattern_host, server, STATUS_CONFLICT, STATUS_ERROR, STATUS_FAILED, STATUS_FORBIDDEN, STATUS_METHOD_NOT_ALLOWED, STATUS_NO_AUTH, STATUS_NO_RESPONSE, STATUS_NOT_FOUND, STATUS_OK, STATUS_UNPROCESSABLE
-
-
Constructor Summary
Constructors Constructor Description LoginServlet(ExampleWebServer server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpost(MyHttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)-
Methods inherited from class de.kosmos_lab.web.server.servlets.ExampleServlet
addCORSHeader, checkParameter, delete, doDelete, doGet, doOptions, doPost, doPut, get, isAllowed, options, put, sendJSON, sendJSON, sendJWT, sendText, sendXML
-
Methods inherited from class jakarta.servlet.http.HttpServlet
doHead, doTrace, getLastModified, service, service
-
-
-
-
Constructor Detail
-
LoginServlet
public LoginServlet(ExampleWebServer server)
-
-
Method Detail
-
post
public void post(MyHttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, LoginFailedException, NoSuchAlgorithmException, InvalidKeyException, ParameterNotFoundException, NoPersistenceException
- Overrides:
postin classExampleServlet- Throws:
IOExceptionLoginFailedExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionParameterNotFoundExceptionNoPersistenceException
-
-