org.openprivacy.reptile.extensions
Class ContentTransformer

java.lang.Object
  |
  +--org.openprivacy.reptile.extensions.ContentTransformer

public class ContentTransformer
extends java.lang.Object

Handles generating Reptile output from subscription content and applying multiple stylesheets.

Version:
$Id: ContentTransformer.java,v 1.20 2002/02/27 07:41:49 burton Exp $
Author:
Kevin A. Burton

Field Summary
static java.lang.String REPTILE_CONTENT_LOCATION_KEY
           
static java.lang.String REPTILE_CONTENT_TYPE_KEY
           
 
Constructor Summary
ContentTransformer()
          Need at least one zero arg constructor for Xalan classname instantiation
ContentTransformer(ParameterPasser params)
          Construct a new ContentTransformer with a ParameterPasser.
 
Method Summary
 void init(org.apache.xalan.extensions.XSLProcessorContext context, org.apache.xalan.templates.ElemExtensionCall elem)
          Init this PageDispatcher and merge any required params.
 boolean isSupported(java.lang.String contentType)
          Return true if this given contentType is an RSS channel.
 java.lang.String transform(java.lang.String location, java.lang.String inputFormat, java.lang.String outputFormat)
          Transform the given content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPTILE_CONTENT_LOCATION_KEY

public static final java.lang.String REPTILE_CONTENT_LOCATION_KEY
See Also:
Constant Field Values

REPTILE_CONTENT_TYPE_KEY

public static final java.lang.String REPTILE_CONTENT_TYPE_KEY
See Also:
Constant Field Values
Constructor Detail

ContentTransformer

public ContentTransformer(ParameterPasser params)
Construct a new ContentTransformer with a ParameterPasser.


ContentTransformer

public ContentTransformer()
Need at least one zero arg constructor for Xalan classname instantiation

Method Detail

init

public void init(org.apache.xalan.extensions.XSLProcessorContext context,
                 org.apache.xalan.templates.ElemExtensionCall elem)
Init this PageDispatcher and merge any required params.


transform

public java.lang.String transform(java.lang.String location,
                                  java.lang.String inputFormat,
                                  java.lang.String outputFormat)
Transform the given content.


isSupported

public boolean isSupported(java.lang.String contentType)
Return true if this given contentType is an RSS channel.