Interface IResourceLinkMapper

All Superinterfaces:
Serializable

public interface IResourceLinkMapper extends Serializable
Mapper for resource links returned by the user portal rest API. These are usually includes in a resource as a JSON object with the links property.

The REST API returns links relative to the request URL used when the API call was made. Since we are making the API calls on the server (and not on the client's browser), we need to remap these links to the URL of the client's browser. Only then can we use these links in the client's browser. The main use case is to display images via an HTML image tag with a src property.