|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.rest.input.RestInputCustomizerImpl
public abstract class RestInputCustomizerImpl
An abstract class which implements functionality common to input customizers.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected static char |
SPACE
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
RestInputCustomizerImpl()
Constructor |
Method Summary | |
---|---|
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 |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface atg.rest.input.RestInputCustomizer |
---|
convertToMap, getContainerClass, instantiateObjectParameter, isValidTypeString, parseString, splitMultipleStringsAtCharacter |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
protected static final char SPACE
Constructor Detail |
---|
public RestInputCustomizerImpl()
Method Detail |
---|
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 type
public static RestInputCustomizer getInputCustomizer(java.lang.Class pClass)
pClass
- a container class such as JSONObject or Document
protected java.lang.Object javaInstanceForClass(java.lang.String pClassName, DynamoHttpServletResponse pResponse) throws RestException
pClassName
- the class name for the object to instantiatepResponse
- the response object
RestException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |