com.konakart.json
Class KKJSONEngServerBase
java.lang.Object
com.konakart.json.KKJSONEngServerBase
- Direct Known Subclasses:
- KKJSONEngServer
public class KKJSONEngServerBase
- extends java.lang.Object
KonaKart JSON Server-side Engine Base for the Application Engine
Implements the server side part of the JSON Application Engine.
It has to manage multiple engines - one for each store, instantiating them on demand as new calls
are made on specific stores.
|
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
getJsonEngine
protected static KKEngIf getJsonEngine(java.lang.String storeId)
throws KKException
- Throws:
KKException
handleThrowable
protected static KKException handleThrowable(java.lang.Throwable e,
java.lang.String methodName)
- Handles the exception for all methods. If the exception is a KKException and has a cause
exception, then we add the cause exception instead of the KKException, although we do save
the message of the KKException. We do this so that the receiver can detect the cause
exception and act on it. Otherwise it gets lost.
- Parameters:
e - methodName -
- Returns:
- Returns an exception
getMapper
public static org.codehaus.jackson.map.ObjectMapper getMapper()
- Returns:
- the mapper
Copyright © 2011 DS Data Systems UK Ltd.