Package prompto.server
Class PromptoServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- prompto.server.CleverServlet
-
- prompto.server.PromptoServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class PromptoServlet extends CleverServlet
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class prompto.server.CleverServlet
CURRENT_REQUEST, CURRENT_RESPONSE, REGISTERED_ORIGINS
-
-
Constructor Summary
Constructors Constructor Description PromptoServlet(boolean sendsXAutorization)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)protected voiddoPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)voidinit(javax.servlet.ServletConfig config)protected prompto.grammar.IdentifierreadMethod(javax.servlet.http.HttpServletRequest req)protected ExecutionModereadMode(javax.servlet.http.HttpServletRequest req)protected voidservice(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)-
Methods inherited from class prompto.server.CleverServlet
getServletName, readPartsAsBytes, readPartsAsObjects, setHolder, setMultipartConfig, writeJSONError, writeJsonResponseError, writeJSONResult
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
service
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException- Overrides:
servicein classCleverServlet- Throws:
javax.servlet.ServletExceptionIOException
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException- Overrides:
doPostin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
readMethod
protected prompto.grammar.Identifier readMethod(javax.servlet.http.HttpServletRequest req)
-
readMode
protected ExecutionMode readMode(javax.servlet.http.HttpServletRequest req)
-
-