Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When an asset instance is returned from a resource method or is set as the entity on a Response instance, it is used by the Apache Wink runtime to retrieve the actual response entity by invoking the appropriate entity-producing method of the asset.

Info
titleReference

Refer to chapter 5, section ‎5.3.1 TBD for For more information on Entity-Producing Methods refer to section Entity Producing Methods.

When an asset is the entity parameter of a resource method, it is used by the Apache Wink runtime to set the actual request entity by invoking the appropriate entity-consuming method of the asset.

Info
titleReference

Refer to chapter 5, section ‎5.3.2 TBD for For more information on Entity-Consuming Methods refer to section Entity Consuming Methods.

Assets Overview

A typical application exposes each resource in a number of representations. Some form of data model usually backs the resource, and the application business logic relies on the manipulation of that data model. The application will most likely expose resource methods allowing the consumption of the data model in more than one representation (for example Atom and XML) and the production of the data model in other representation (for example Atom, XML and JSON).

...