public class KKJSONServer
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
KKJSONServer() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
static void |
disableJSON()
disable JSON
|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Used for JSONP calls
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Used for JSON calls
|
static void |
enableJSON()
enable JSON
|
static void |
excludeInterfaces(java.lang.String efs)
excludeInterfaces
|
protected static KKJSONEngServerIf |
getEngRemote() |
static com.fasterxml.jackson.databind.ObjectMapper |
getMapper() |
static KKJSONServer |
getMe()
Gets the singleton instance.
|
static void |
includeInterfaces(java.lang.String ifs)
includeInterfaces
|
void |
init(javax.servlet.ServletConfig config) |
boolean |
isJsonEnabled() |
protected static void |
setEngRemote(KKJSONEngServerIf engRemote) |
void |
setJsonEnabled(boolean jsonEnabled) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public KKJSONServer() throws com.konakart.app.KKException
com.konakart.app.KKException
- an unexpected KKException exceptionpublic void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
config
- the configjavax.servlet.ServletException
- an unexpected ServletException exceptionpublic static KKJSONServer getMe()
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
doPost
in class javax.servlet.http.HttpServlet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
doGet
in class javax.servlet.http.HttpServlet
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public boolean isJsonEnabled()
public void setJsonEnabled(boolean jsonEnabled)
jsonEnabled
- the jsonEnabled to setprotected static KKJSONEngServerIf getEngRemote()
protected static void setEngRemote(KKJSONEngServerIf engRemote)
engRemote
- the engRemote to setpublic static com.fasterxml.jackson.databind.ObjectMapper getMapper()
public static void enableJSON()
public static void disableJSON()
public static void excludeInterfaces(java.lang.String efs)
efs
- the efspublic static void includeInterfaces(java.lang.String ifs)
ifs
- the ifsCopyright © 2018 DS Data Systems UK Ltd.