|
||||||||||
| 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.CSyndFeed
@Deprecated public class CSyndFeed
A channel which renders news feeds in the portal.
Static channel parameters to be supplied: 1) "xmlUri" - URI representing the news feed. RSS and Atom are supported. (See Rome's documentation for specific version information.) 2) "viewNum" - Maximum number of news articles to list. 3) "cacheTimeout" - the amount of time (in seconds) that the contents of the channel should be cached (optional). If this parameter is left out, a default timeout value will be used. 4) "upc_localConnContext" - The class name of the ILocalConnectionContext implementation. Use when local data needs to be sent with the request for the URL. 5) "upc_allow_xmlUri_prefixes" - Optional parameter specifying as a whitespace delimited String the allowable xmlUri prefixes. Defaults to "http:// https://" 6) "upc_deny_xmlUri_prefixes" - Optional parameter specifying as a whitespace delimited String URI prefixes that should block a URI as xmlUri even if it matched one of the allow prefixes. Defaults to "" 7) "restrict_xmlUri_inStaticData" - Optional parameter specifying whether the xmlUri should be restricted according to the allow and deny prefix rules above as presented in ChannelStaticData or just as presented in ChannelRuntimeData. "true" means both ChannelStaticData and ChannelRuntimeData will be restricted. Any other value or the parameter not being present means only ChannelRuntimeData will be restricted. It is important to set this value to true when using subscribe-time channel parameter configuration of the xmlUri.
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.
| 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 | |
|---|---|
CSyndFeed()
Deprecated. |
|
| Method Summary | |
|---|---|
ChannelCacheKey |
generateKey()
Deprecated. Requests the channel to generate a key uniquely describing its current state, and a description of key usage. |
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 |
setRuntimeData(ChannelRuntimeData rd)
Deprecated. Passes ChannelRuntimeData to the channel. |
void |
setStaticData(ChannelStaticData sd)
Deprecated. Passes ChannelStaticData to the channel. |
| Methods inherited from class org.jasig.portal.channels.BaseChannel |
|---|
getRuntimeProperties, receiveEvent, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CSyndFeed()
| Method Detail |
|---|
public void renderXML(ContentHandler out)
throws PortalException
IChannel
renderXML in interface IChannelrenderXML in class BaseChannelout - the SAX ContentHandler to output content to
PortalException
public void setStaticData(ChannelStaticData sd)
throws PortalException
IChannel
setStaticData in interface IChannelsetStaticData in class BaseChannelsd - channel static data
PortalExceptionChannelStaticData
public void setRuntimeData(ChannelRuntimeData rd)
throws PortalException
IChannel
setRuntimeData in interface IChannelsetRuntimeData in class BaseChannelrd - channel runtime data
PortalExceptionChannelRuntimeDatapublic ChannelCacheKey generateKey()
ICacheable
generateKey in interface ICacheablepublic boolean isCacheValid(Object validity)
ICacheable
isCacheValid in interface ICacheable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||