Serializer¶
-
public interface
Serializer
¶ The data serializer used in general to serialize the response content.
Methods¶
serialize¶
-
public void
serialize
(HttpRequest request, HttpResponse response)¶ This method should set the response data in the response and the neccessary modifications in the response headers. For example, if this method is used to send a json response, it should set the response content, and then modify the content type header to application/json
Parameters: - request – The request object of the the current request it is processing
- response – The response object that will be used to send the response to the request
See also:
HttpRequest
,HttpResponse