responseContentType property

ContentType responseContentType
getter/setter pair

The default content type of responses from this ResourceController.

If the Response.contentType has not explicitly been set by a operation method in this controller, the controller will set that property with this value. Defaults to "application/json".

Implementation

ContentType responseContentType = ContentType.json;