@Deprecated public abstract class TextualObjectSerialDeserial extends Object implements IWebSerialDeserial, IObjectSerialDeserial<String>
Constructor and Description |
---|
TextualObjectSerialDeserial(String charset,
String mimeType)
Deprecated.
Instantiates a new textual object serial deserial.
|
Modifier and Type | Method and Description |
---|---|
String |
getCharset()
Deprecated.
Gets the supported charset.
|
IObjectSerialDeserial<String> |
getIObjectSerialDeserial(String mimeType)
Deprecated.
Returns the
IObjectSerialDeserial for the specific MIME type |
String |
getMimeType()
Deprecated.
Gets the mime type.
|
boolean |
isMimeTypeSupported(String mimeType)
Deprecated.
Check if a given MIME type is handled.
|
void |
objectToResponse(Object targetObject,
org.apache.wicket.request.http.WebResponse response,
String mimeType)
Deprecated.
Write the object in input to the response converting it to a given MIME type.
|
<T> T |
requestToObject(org.apache.wicket.request.http.WebRequest request,
Class<T> targetClass,
String mimeType)
Deprecated.
Extract an instance of argClass form the request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deserializeObject, serializeObject
public void objectToResponse(Object targetObject, org.apache.wicket.request.http.WebResponse response, String mimeType)
IWebSerialDeserial
objectToResponse
in interface IWebSerialDeserial
targetObject
- the object instance to serialize to string.response
- the response object.mimeType
- the MIME type of the response.public <T> T requestToObject(org.apache.wicket.request.http.WebRequest request, Class<T> targetClass, String mimeType)
IWebSerialDeserial
requestToObject
in interface IWebSerialDeserial
request
- the request object.targetClass
- the type of the object we want to extract.mimeType
- the MIME type of the request.public final boolean isMimeTypeSupported(String mimeType)
IWebSerialDeserial
isMimeTypeSupported
in interface IWebSerialDeserial
mimeType
- the MIME type we want to check.public IObjectSerialDeserial<String> getIObjectSerialDeserial(String mimeType)
IWebSerialDeserial
IObjectSerialDeserial
for the specific MIME typegetIObjectSerialDeserial
in interface IWebSerialDeserial
public String getCharset()
public String getMimeType()
Copyright © 2015. All rights reserved.