public class KKJSONAdminServer
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
private static com.konakartadmin.json.KKJSONAdminEngServerIf |
engRemote |
private java.util.Set<java.lang.String> |
excludedInterfaces |
private java.util.Set<java.lang.String> |
includedInterfaces |
private boolean |
jsonEnabled |
protected static org.apache.commons.logging.Log |
log |
private static KKJSONAdminServer |
me |
private static long |
serialVersionUID
Serial Version UID
|
Constructor and Description |
---|
KKJSONAdminServer() |
Modifier and Type | Method and Description |
---|---|
private void |
checkToSeeIfExcluded(java.lang.String function) |
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 com.konakartadmin.json.KKJSONAdminEngServerIf |
getEngRemote() |
static com.fasterxml.jackson.databind.ObjectMapper |
getMapper() |
static KKJSONAdminServer |
getMe()
Gets the singleton instance.
|
static void |
includeInterfaces(java.lang.String ifs)
includeInterfaces
|
void |
init(javax.servlet.ServletConfig config) |
private boolean |
isInterfaceExcluded(java.lang.String function) |
private boolean |
isInterfaceIncluded(java.lang.String function) |
boolean |
isJsonEnabled() |
protected static void |
setEngRemote(com.konakartadmin.json.KKJSONAdminEngServerIf engRemote) |
void |
setJsonEnabled(boolean jsonEnabled) |
private void |
setupExcludedInterfaces(java.lang.String param) |
private void |
setupIncludedInterfaces(java.lang.String param) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
protected static org.apache.commons.logging.Log log
private boolean jsonEnabled
private java.util.Set<java.lang.String> includedInterfaces
private java.util.Set<java.lang.String> excludedInterfaces
private static com.konakartadmin.json.KKJSONAdminEngServerIf engRemote
private static KKJSONAdminServer me
public KKJSONAdminServer() 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 KKJSONAdminServer getMe()
private void setupIncludedInterfaces(java.lang.String param)
private void setupExcludedInterfaces(java.lang.String param)
private boolean isInterfaceIncluded(java.lang.String function)
private boolean isInterfaceExcluded(java.lang.String function)
private void checkToSeeIfExcluded(java.lang.String function) throws KKAdminException
KKAdminException
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 com.konakartadmin.json.KKJSONAdminEngServerIf getEngRemote()
protected static void setEngRemote(com.konakartadmin.json.KKJSONAdminEngServerIf 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.