public abstract class HtmlSerializer extends Object implements Serializer
| Constructor and Description |
|---|
HtmlSerializer() |
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
render(HttpRequest request,
HttpResponse response)
This method is used to serialize data in HTML format
|
void |
serialize(HttpRequest request,
HttpResponse response)
This method should set the response data in the response and the
neccessary modifications in the response headers.
|
public void serialize(HttpRequest request, HttpResponse response)
Serializerserialize in interface Serializerrequest - The request object of the the current request it is
processingresponse - The response object that will be used to send the response
to the requestHttpRequest,
HttpResponsepublic abstract byte[] render(HttpRequest request, HttpResponse response)
request - The http request for which the data is being serializedresponse - The http response object which sends this serialized data.Copyright © 2017. All rights reserved.