org.openprivacy.reptile.extensions
Class ChannelRenderExtension

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

public class ChannelRenderExtension
extends java.lang.Object

Responsible for rendering an RSS channel from the network or the DB, which ever is more appropriate.

Version:
$Id: ChannelRenderExtension.java,v 1.5 2002/04/10 08:34:12 burton Exp $
Author:
burtonator

Constructor Summary
ChannelRenderExtension()
           
 
Method Summary
 java.lang.String getAsChannel(java.lang.String location, java.lang.String contentType)
          Get this from the network.
 java.lang.String getAsSubscription(Channel channel)
          Get this from the DB as a search request.
 void init(org.apache.xalan.extensions.XSLProcessorContext context, org.apache.xalan.templates.ElemExtensionCall elem)
          When called from an extension, we call init so that we can get copies of the given params.
 java.lang.String render(java.lang.String location, java.lang.String contentType)
          We have to return a string here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelRenderExtension

public ChannelRenderExtension()
Method Detail

render

public java.lang.String render(java.lang.String location,
                               java.lang.String contentType)
We have to return a string here. We are not sure how we are going to pull this out. A String is a lowest common denominator.


getAsSubscription

public java.lang.String getAsSubscription(Channel channel)
                                   throws java.lang.Exception
Get this from the DB as a search request.

java.lang.Exception

getAsChannel

public java.lang.String getAsChannel(java.lang.String location,
                                     java.lang.String contentType)
                              throws java.lang.Exception
Get this from the network.

java.lang.Exception

init

public void init(org.apache.xalan.extensions.XSLProcessorContext context,
                 org.apache.xalan.templates.ElemExtensionCall elem)
When called from an extension, we call init so that we can get copies of the given params.