| java.lang.Object nextapp.echo2.webrender.service.StaticTextService
All known Subclasses: nextapp.echo2.webrender.service.DebugPaneService,
StaticTextService | public class StaticTextService implements Service(Code) | | A service which renders a text resource, such as a text or XML document.
|
StaticTextService | public StaticTextService(String id, String contentType, String content)(Code) | | Creates a new StaticTextService .
Parameters: id - the Service identifier Parameters: contentType - the content type of the document Parameters: content - the text |
forResource | public static StaticTextService forResource(String id, String contentType, String resourceName)(Code) | | Creates a new StaticTextService based on the content in the
specified CLASSPATH resource. A runtime exception will be
thrown in the even the resource does not exist (it generally should not
be caught).
Parameters: id - the Service identifier Parameters: contentType - the content type of the document Parameters: resourceName - the path to the content resource in the CLASSPATH the created StaticTextService |
|
|