Retrieval of raw Page content from the Content Data Store
Use the PageContentFactory class in Java to specify a Publication ID and Page ID to get the raw contents of a Page stored in the Content Data Store.
- Java/JSP
-
The Java/JSP Content Delivery API contains a class called
PageContentFactorythat lets you retrieve the raw contents of a Page.The fully qualified class name is com.tridion.content.PageContentFactory. You retrieve the Page content by making a call to the
getPageContentmethod, which has the following signatures:public CharacterData getPageContent(final int publicationId, final int pageId)Instead of a Publication ID and Page ID, you can also specify the Content Manager URI of the Page:
public CharacterData getPageContent(final String pageURI)The Page content is returned in a
com.tridion.data.CharacterDataobject. - .NET
-
In .NET, the fully qualified class name is Tridion.ContentDelivery.DynamicContent.PageContentFactory. You retrieve the Page content by making a call to the
GetPageContentmethod, which has the following signatures:public CharacterData GetPageContent(int publicationId, int pageId)Instead of a Publication ID and Page ID, you can also specify the Content Manager URI of the Page:
public CharacterData GetPageContent(string pageURI)The Page content is returned in an object of class
Tridion.ContentDelivery.DynamicContent.CharacterData
The returned object contains:
- a unique ID for this character data
- the ID of the Publication
- a string containing the Page content
- a stream that represents the Page content