public abstract class RestInputCustomizerImpl extends GenericService implements RestInputCustomizer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected static char |
SPACE |
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
RestInputCustomizerImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAcceptableMimeTypes()
Returns an array of allowable mimeTypes which this input customizer can handle
|
java.lang.String |
getEncoding()
Gets the Character encoding which defaults to UTF-8
|
java.lang.String |
getFormat()
Returns the format for the input customizer, for example "json" or "xml"
|
static RestInputCustomizer |
getInputCustomizer(java.lang.Class pClass)
Returns the input customer which can handle the given object class type
|
static RestInputCustomizer |
getInputCustomizer(java.lang.String pMimeType)
Returns the input customer which can handle the given mime type
|
java.lang.String |
getMapKeyElementString()
The string to use for map key tags
|
java.lang.String |
getMapValueElementString()
The string to use for map value tags
|
protected java.lang.Object |
javaInstanceForClass(java.lang.String pClassName,
DynamoHttpServletResponse pResponse)
for a given json object, return a java object instance
|
void |
setAcceptableMimeTypes(java.lang.String[] pAcceptableMimeTypes)
Sets the array of allowable mimeTypes which this input customizer can handle
|
void |
setEncoding(java.lang.String pEncoding)
Sets the Character encoding to be used for input
|
protected void |
setFormat(java.lang.String pFormat)
Sets the format for the input customizer
|
void |
setMapKeyElementString(java.lang.String pMapKeyElementString)
Sets the string to use for map key tags
|
void |
setMapValueElementString(java.lang.String pMapValueElementString)
Sets the string to use for map value tags
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertToMap, getContainerClass, instantiateObjectParameter, isValidTypeString, parseString, splitMultipleStringsAtCharacter
public static java.lang.String CLASS_VERSION
protected static final char SPACE
public java.lang.String getFormat()
getFormat
in interface RestInputCustomizer
protected void setFormat(java.lang.String pFormat)
pFormat
- the format to setpublic java.lang.String[] getAcceptableMimeTypes()
getAcceptableMimeTypes
in interface RestInputCustomizer
public void setAcceptableMimeTypes(java.lang.String[] pAcceptableMimeTypes)
pAcceptableMimeTypes
- the acceptableMimeTypes to setpublic java.lang.String getMapKeyElementString()
public void setMapKeyElementString(java.lang.String pMapKeyElementString)
pMapKeyElementString
- the mapKeyElementString to setpublic java.lang.String getMapValueElementString()
public void setMapValueElementString(java.lang.String pMapValueElementString)
pMapValueElementString
- the mapValueElementString to setpublic java.lang.String getEncoding()
getEncoding
in interface RestInputCustomizer
public void setEncoding(java.lang.String pEncoding)
pEncoding
- character encodingpublic static RestInputCustomizer getInputCustomizer(java.lang.String pMimeType)
pMimeType
- the mime typepublic static RestInputCustomizer getInputCustomizer(java.lang.Class pClass)
pClass
- a container class such as JSONObject or Documentprotected java.lang.Object javaInstanceForClass(java.lang.String pClassName, DynamoHttpServletResponse pResponse) throws RestException
pClassName
- the class name for the object to instantiatepResponse
- the response objectRestException