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 add-on for XperienceCentral. The addon has a headless presentation plugin that uses a presentation JSP to produce JSON. Normal presentation plugins always use the contenttype content type header text/html. For XperienCentral Headless, a the contenttype content type application/json header is required. To provide a configurable contenttype content type header, the JSP descriptor has been expanded to support a <contentype> node. In this node you can add your own contenttype content type to be used when a page is rendered. Usually only the page JSP needs this node in its descriptor. If you add your own contenttype content type to this descriptor, the page will be generated with that contenttypecontent type.

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

...