HtmlSerializer¶
-
public abstract class
HtmlSerializer
implements Serializer¶ An abstract HTML serializer class. The class which inherits this, needs to implement toJson method. This class will be used in send a serialize HTML data as a response
Methods¶
render¶
-
public abstract byte[]
render
(HttpRequest request, HttpResponse response)¶ This method is used to serialize data in HTML format
Parameters: - request – The http request for which the data is being serialized
- response – The http response object which sends this serialized data.
serialize¶
-
public void
serialize
(HttpRequest request, HttpResponse response)¶