public abstract class JSONServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
protected SessionManager |
smgr |
| Constructor and Description |
|---|
JSONServlet() |
| Modifier and Type | Method and Description |
|---|---|
abstract JSONHandler |
constructHandler(WebRequest wr)
This is the first method you must override to return your own private
handler class that actually figures out what to do with the passed
in JSON objects, and what JSON Objects to return.
|
abstract SessionManager |
constructSessionManager(ServletContext sc)
This is the second method you must override to return your own private
handler class that actually figures out what to do with the passed
in JSON objects, and what JSON Objects to return.
|
static JSONObject |
convertModelExceptionToJSON(java.lang.Throwable e,
java.lang.String context)
this converts to JSON and includes some special rules for IBPM Model exceptions
|
void |
destroy() |
void |
init(ServletConfig config) |
void |
service(HttpServletRequest req,
HttpServletResponse resp) |
protected SessionManager smgr
public abstract JSONHandler constructHandler(WebRequest wr) throws java.lang.Exception
java.lang.Exceptionpublic abstract SessionManager constructSessionManager(ServletContext sc) throws java.lang.Exception
java.lang.Exceptionpublic void init(ServletConfig config)
throws ServletException
ServletExceptionpublic void destroy()
public void service(HttpServletRequest req,
HttpServletResponse resp)
public static JSONObject convertModelExceptionToJSON(java.lang.Throwable e, java.lang.String context) throws java.lang.Exception
java.lang.Exception