com.konakart.json
Class KKJSONServer

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.konakart.json.KKJSONServer
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class KKJSONServer
extends javax.servlet.http.HttpServlet

KonaKart JSON Server for the Application Engine. This is defined to be started in the web.xml of the konakart webapp.

See Also:
Serialized Form

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
KKJSONServer()
           
 
Method Summary
 void destroy()
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected static KKJSONEngServerIf getEngRemote()
           
static org.codehaus.jackson.map.ObjectMapper getMapper()
           
 void init(javax.servlet.ServletConfig config)
           
 boolean isJsonEnabled()
           
protected static void setEngRemote(KKJSONEngServerIf engRemote)
           
 void setJsonEnabled(boolean jsonEnabled)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

KKJSONServer

public KKJSONServer()
             throws KKException
Throws:
KKException
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config -
Throws:
javax.servlet.ServletException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
Overrides:
doPost in class javax.servlet.http.HttpServlet

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

isJsonEnabled

public boolean isJsonEnabled()
Returns:
the jsonEnabled

setJsonEnabled

public void setJsonEnabled(boolean jsonEnabled)
Parameters:
jsonEnabled - the jsonEnabled to set

getEngRemote

protected static KKJSONEngServerIf getEngRemote()
Returns:
the engRemote

setEngRemote

protected static void setEngRemote(KKJSONEngServerIf engRemote)
Parameters:
engRemote - the engRemote to set

getMapper

public static org.codehaus.jackson.map.ObjectMapper getMapper()
Returns:
the mapper


Copyright © 2011 DS Data Systems UK Ltd.