|
||||||||||
| 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.iccdemo.CViewer
public class CViewer
This is a modified version of the CInlineFrame channel that uses inter-channel communications.
| Field Summary | |
|---|---|
private java.lang.String |
currentURL
|
private static java.lang.String |
historyFname
|
private static org.apache.commons.logging.Log |
log
|
private static java.lang.String |
sslLocation
|
| Fields inherited from class org.jasig.portal.channels.BaseChannel |
|---|
runtimeData, staticData |
| Constructor Summary | |
|---|---|
CViewer()
|
|
| Method Summary | |
|---|---|
private void |
addHistoryURL(java.lang.String url)
An internal method to report new URL to the history's channel registry |
(package private) void |
changeURL(java.lang.String newURL)
Change URL that's being shown |
private java.lang.Object |
getBoundObject(java.lang.String channelSubscribeId)
A utility method to determine an object bound to the "chan-obj" branch for a particular channel id. |
private java.lang.String |
getChannelId(java.lang.String fname)
A utility method for obtaining a channelSubscribeId given a channel fname |
private java.lang.String |
getStylesheetTitle(java.lang.String userAgent)
Uses the user agent string to determine which stylesheet title to use. |
private void |
registerHistory()
A utility method to register history channel as both listener and instructor. |
void |
renderXML(org.xml.sax.ContentHandler out)
Ask channel to render its content. |
void |
setStaticData(ChannelStaticData sd)
Passes ChannelStaticData to the channel. |
| Methods inherited from class org.jasig.portal.channels.BaseChannel |
|---|
getRuntimeProperties, receiveEvent, setRuntimeData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.commons.logging.Log log
private static final java.lang.String sslLocation
private static final java.lang.String historyFname
private java.lang.String currentURL
| Constructor Detail |
|---|
public CViewer()
| Method Detail |
|---|
public void setStaticData(ChannelStaticData sd)
throws PortalException
IChannel
setStaticData in interface IChannelsetStaticData in class BaseChannelsd - channel static data
PortalExceptionChannelStaticDataprivate void registerHistory()
void changeURL(java.lang.String newURL)
newURL - a String valueprivate void addHistoryURL(java.lang.String url)
url - a String value
public void renderXML(org.xml.sax.ContentHandler out)
throws PortalException
IChannel
renderXML in interface IChannelrenderXML in class BaseChannelout - the SAX ContentHandler to output content to
PortalExceptionprivate java.lang.String getStylesheetTitle(java.lang.String userAgent)
userAgent - the user agent string
private java.lang.String getChannelId(java.lang.String fname)
fname - a String value
null if no channel with given fname was foundprivate java.lang.Object getBoundObject(java.lang.String channelSubscribeId)
channelSubscribeId - a String value of the channel who's object we're looking for
Object value bound to that jndi location (or null if channel didn't bind anything)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||