public interface RestInputCustomizer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
convertToMap(java.lang.Object pObject,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Converts the supplied object to a Map of parameters
|
java.lang.String[] |
getAcceptableMimeTypes()
An array of mimetypes which this input customizer can handle
|
java.lang.Class<?> |
getContainerClass()
Returns the class of the type of object used by this object customizer to represent input
|
java.lang.String |
getEncoding()
Returns the character encoding of the output
|
java.lang.String |
getFormat()
Returns an identifier for the format, like "xml" or "json"
|
java.lang.Object |
instantiateObjectParameter(java.lang.Object pObject,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Instantiates an object from the formatted data in pObject
|
boolean |
isValidTypeString(java.lang.String pData)
Returns true if the pData string can be handled by the InputCustomizer, false otherwise
|
java.lang.Object |
parseString(java.lang.String pData,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Parses the given String and creates the appropriate representation of the data
|
java.lang.String[] |
splitMultipleStringsAtCharacter(java.lang.String pData,
char pChar)
Splits multiple strings of the input customizer's format at the specified character
|
static final java.lang.String CLASS_VERSION
java.lang.String getFormat()
java.lang.String[] getAcceptableMimeTypes()
java.lang.Class<?> getContainerClass()
java.lang.String getEncoding()
java.lang.Object parseString(java.lang.String pData, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws RestException
pData
- a String which contains the data streampRequest
- the servlet requestpResponse
- the servlet responseRestException
- if the string cannot be parsedjava.util.Map<java.lang.String,java.lang.Object> convertToMap(java.lang.Object pObject, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws RestException
pObject
- the object to convertpRequest
- the servlet requestpResponse
- the servlet responseRestException
- if an error occursjava.lang.Object instantiateObjectParameter(java.lang.Object pObject, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws RestException
pObject
- the formatted dataRestException
boolean isValidTypeString(java.lang.String pData)
pData
- the string to testjava.lang.String[] splitMultipleStringsAtCharacter(java.lang.String pData, char pChar)
pData
- the string to splitpChar
- the character to split at