|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWebSerialDeserial
General interface to serialize/deserialize an object to/from request/response.
Method Summary | ||
---|---|---|
IObjectSerialDeserial<?> |
getIObjectSerialDeserial(String mimeType)
Returns the IObjectSerialDeserial for the specific MIME type |
|
boolean |
isMimeTypeSupported(String mimeType)
Check if a given MIME type is handled. |
|
void |
objectToResponse(Object targetObject,
WebResponse response,
String mimeType)
Write the object in input to the response converting it to a given MIME type. |
|
|
requestToObject(WebRequest request,
Class<T> argClass,
String mimeType)
Extract an instance of argClass form the request. |
Method Detail |
---|
void objectToResponse(Object targetObject, WebResponse response, String mimeType) throws WicketRuntimeException
targetObject
- the object instance to serialize to string.response
- the response object.mimeType
- the MIME type of the response.
Exception
WicketRuntimeException
<T> T requestToObject(WebRequest request, Class<T> argClass, String mimeType) throws WicketRuntimeException
request
- the request object.argClass
- the type of the object we want to extract.mimeType
- the MIME type of the request.
WicketRuntimeException
boolean isMimeTypeSupported(String mimeType)
mimeType
- the MIME type we want to check.
IObjectSerialDeserial<?> getIObjectSerialDeserial(String mimeType)
IObjectSerialDeserial
for the specific MIME type
mimeType
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |