|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RestInputCustomizer
An interface to allow for customizing REST input.
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
| Method Summary | |
|---|---|
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 |
| Field Detail |
|---|
static final java.lang.String CLASS_VERSION
| Method Detail |
|---|
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 response
RestException - if the string cannot be parsed
java.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 response
RestException - if an error occurs
java.lang.Object instantiateObjectParameter(java.lang.Object pObject,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
throws RestException
pObject - the formatted data
RestExceptionboolean isValidTypeString(java.lang.String pData)
pData - the string to test
java.lang.String[] splitMultipleStringsAtCharacter(java.lang.String pData,
char pChar)
pData - the string to splitpChar - the character to split at
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||