|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.channels.BaseChannel
org.jasig.portal.channels.CGenericXSLT
@Deprecated public class CGenericXSLT
A channel which transforms XML for rendering in the portal.
Static channel parameters to be supplied:
xslUri is supplied, sslUri
and xslTitle will be ignored.
false (normally don't globally cache), or
true (cache everything).
The xmlUri and xslTitle static parameters above can be overridden by including
parameters of the same name (xmlUri and/or xslTitle)
in the HttpRequest string. Prior to uPortal 2.5.1 sslUri and xslUri could also
be overridden -- these features have been removed to improve the security of
CGenericXSLT instances.
Additionally, as of uPortal 2.5.1, the xmlUri must match an allowed URI prefix. By default http:// and https:// URIs are allowed. If you are using the empty document or another XML file from the classpath or from the filesystem, you will need to allow a prefix to or the full path of that resource.
This channel can be used for all XML formats including RSS.
Any other parameters passed to this channel via HttpRequest will get
passed in turn to the XSLT stylesheet as stylesheet parameters. They can be
read in the stylesheet as follows:
<xsl:param name="yourParamName">aDefaultValue</xsl:param>
CGenericXSLT is also useful for channels that have no dynamic data. In these types of channels, all the markup comes from the XSLT stylesheets. An empty XML document can be used and is included with CGenericXSLT. Just set the xml parameter to this empty document and allow the path to the empty document.
| Field Summary |
|---|
| Fields inherited from class org.jasig.portal.channels.BaseChannel |
|---|
log, runtimeData, staticData |
| Fields inherited from interface org.jasig.portal.ICacheable |
|---|
CHANNEL_CACHE_KEY_INSTANCE_SCOPE, CHANNEL_CACHE_KEY_SCOPE_PARAM_NAME, CHANNEL_CACHE_KEY_SYSTEM_SCOPE |
| Constructor Summary | |
|---|---|
CGenericXSLT()
Deprecated. |
|
| Method Summary | |
|---|---|
ChannelCacheKey |
generateKey()
Deprecated. Requests the channel to generate a key uniquely describing its current state, and a description of key usage. |
Document |
getCacheContent(String key)
Deprecated. |
long |
getCacheContentLoaded()
Deprecated. |
boolean |
isCacheValid(Object validity)
Deprecated. Requests the channel to verify validity of the retrieved cache based on the validator object. |
void |
renderXML(ContentHandler out)
Deprecated. Ask channel to render its content. |
void |
setCacheContent(String key,
Document data)
Deprecated. Storing cache data is straigt-forward. |
void |
setRuntimeData(ChannelRuntimeData rd)
Deprecated. Passes ChannelRuntimeData to the channel. |
void |
setStaticData(ChannelStaticData sd)
Deprecated. Passes ChannelStaticData to the channel. |
String |
toString()
Deprecated. |
| Methods inherited from class org.jasig.portal.channels.BaseChannel |
|---|
getRuntimeProperties, receiveEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jasig.portal.IChannel |
|---|
getRuntimeProperties, receiveEvent |
| Constructor Detail |
|---|
public CGenericXSLT()
| Method Detail |
|---|
public void setStaticData(ChannelStaticData sd)
throws ResourceMissingException
IChannel
setStaticData in interface IChannelsetStaticData in class BaseChannelsd - channel static data
ResourceMissingExceptionChannelStaticDatapublic void setRuntimeData(ChannelRuntimeData rd)
IChannel
setRuntimeData in interface IChannelsetRuntimeData in class BaseChannelrd - channel runtime dataChannelRuntimeData
public void renderXML(ContentHandler out)
throws PortalException
IChannel
renderXML in interface IChannelrenderXML in class BaseChannelout - the SAX ContentHandler to output content to
PortalExceptionpublic ChannelCacheKey generateKey()
ICacheable
generateKey in interface ICacheablepublic boolean isCacheValid(Object validity)
ICacheable
isCacheValid in interface ICacheablepublic String toString()
toString in class BaseChannel
public void setCacheContent(String key,
Document data)
key - the URL key Stringdata - our cache data as a String or Document Objectpublic Document getCacheContent(String key)
public long getCacheContentLoaded()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||