| java.lang.Object uk.org.ponder.rsf.content.ContentTypeInfo
ContentTypeInfo | public class ContentTypeInfo (Code) | | A "pea" holding information about a particular content type that may
be used during a request cycle.
author: Antranig Basman (antranig@caret.cam.ac.uk) |
Field Summary | |
public String | IDStrategy | final public static String | ID_FORCE The same strategy as
ContentTypeInfo.ID_FULL , only the id attribute will be
written onto every rendered tag (same as RSF pre-0.7 "full" strategy). | final public static String | ID_FULL A constant representing the standard "full" ID allocation strategy,
derived from the full ID of a component. | final public static String | ID_NONE Suppress generation of the "id" attribute. | final public static String | ID_RSF Pass through the rsf:id attribute unchanged. | public String | contentTypeHeader The value for the "ContentType" header served over HTTP for requests
of this type. | public String | declaration | public boolean | directRedirects Whether the content type supports "direct" Action -> Render redirects. | public String | fileextension The extension, omitting period ".", to be used when looking for templates
in the filesystem. | public String | typename The name of the content/request type - e.g. |
IDStrategy | public String IDStrategy(Code) | | The strategy to be used for generating the values of "ID" elements - either
ID_FULL, ID_NONE, or ID_RSF
|
ID_FORCE | final public static String ID_FORCE(Code) | | The same strategy as
ContentTypeInfo.ID_FULL , only the id attribute will be
written onto every rendered tag (same as RSF pre-0.7 "full" strategy).
|
ID_FULL | final public static String ID_FULL(Code) | | A constant representing the standard "full" ID allocation strategy,
derived from the full ID of a component. This will only be applied to
tags which already have an XML id attribute supplied in the template.
Appropriate for HTML and similar dialects.
|
ID_NONE | final public static String ID_NONE(Code) | | Suppress generation of the "id" attribute. Appropriate for some types
of pure XML response.
|
ID_RSF | final public static String ID_RSF(Code) | | Pass through the rsf:id attribute unchanged. Appropriate for the
(so far untried) strategy of using RSF to render RSF templates.
|
contentTypeHeader | public String contentTypeHeader(Code) | | The value for the "ContentType" header served over HTTP for requests
of this type.
|
declaration | public String declaration(Code) | | The XML declaration to be served at the head of rendered content *
|
directRedirects | public boolean directRedirects(Code) | | Whether the content type supports "direct" Action -> Render redirects.
|
fileextension | public String fileextension(Code) | | The extension, omitting period ".", to be used when looking for templates
in the filesystem.
|
ContentTypeInfo | public ContentTypeInfo()(Code) | | |
|
|