public abstract String mediaTypes
In the following example, the swap is only invoked by the JSON serializer:
Template strings are arbitrary strings associated with swaps that help provide additional context information for the swap class. They're called 'templates' because their primary purpose is for providing template names, such as Apache FreeMarker template names.
The following is an example of a templated swap class used to serialize POJOs to HTML using FreeMarker:
Copyright © 2018 Apache. All rights reserved.