Versions Compared

Key

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

...

In XperienceCentral R23 the headless integration bundle is included as an edition bundle that is created as an Addadd-on for XperienceCentral. The addon has an a headless presentation plugin that uses a presentation JSP to produce JSON. Normal presentation plugins always use the contenttype header text/html. But for this case a other contenttype header is needed. (For XperienCentral Headless, a the contenttype application/json) header is required.  To To provide a configurable contenttype header, the jsp JSP descriptor has been expanded to support a <contentype> node. In this node you can add your own contenttype to be used when the a page is rendered. Normal Usually only the page jsp JSP needs this node in the its descriptor. So if If you add your own contenttype to this descriptor, the page will be generated with that contenttype.

A other Another way to choose your own contenttype is to use a java Java interface that is also added into the headless presentation bundle. XperienceCentral will automatically use the contenttype you have chosen if the interface is used in your own bundle.

...