|
||||||||||
| 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.error.CError
@Deprecated public final class CError
CError is the error channel, also known as the null channel; it is designed to render in place of other channels when something goes wrong.
Possible conditions when CError is invoked are:
| Field Summary |
|---|
| Fields inherited from class org.jasig.portal.channels.BaseChannel |
|---|
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 | |
|---|---|
CError()
Deprecated. Construct an uninitialized instance of the CError channel. |
|
CError(ErrorCode errorCode,
String message,
String channelSubscribeId,
IChannel channelInstance)
Deprecated. Instantiate a CError representing a particular channel's failure, including a message and errorCode, but not a Throwable. |
|
CError(ErrorCode errorCode,
Throwable throwable,
String channelSubscribeId,
IChannel channelInstance)
Deprecated. Construct an instance of the Error channel representing a failure to render of a particular subscribed channel for reason of having thrown a Throwable. |
|
CError(ErrorCode errorCode,
Throwable exception,
String channelSubscribeId,
IChannel channelInstance,
String message)
Deprecated. Instantiate a CError instance representing the failure of some particular channel, including an error code, message, and the Throwable. |
|
| Method Summary | |
|---|---|
protected void |
doCommonErrorHandling(ContentHandler contentHandler,
PrintWriter printWriter)
Deprecated. Logic common to both renderXml and renderCharacters for handling a request for an errored out channel. |
ChannelCacheKey |
generateKey()
Deprecated. Requests the channel to generate a key uniquely describing its current state, and a description of key usage. |
ErrorDocument |
getErrorDocument()
Deprecated. |
boolean |
isCacheValid(Object validity)
Deprecated. Requests the channel to verify validity of the retrieved cache based on the validator object. |
void |
receiveEvent(PortalEvent ev)
Deprecated. Passes an outside event to a channel. |
protected void |
renderChannel(IChannel channel,
ContentHandler contentHandler,
PrintWriter printWriter)
Deprecated. |
void |
renderCharacters(PrintWriter out)
Deprecated. Asks the channel to render its content as characters. |
void |
renderXML(ContentHandler out)
Deprecated. Ask channel to render its content. |
void |
setErrorDocument(ErrorDocument errorDocument)
Deprecated. |
void |
setPortalControlStructures(PortalControlStructures pcs)
Deprecated. Passes portal control structure 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, setRuntimeData |
| 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, setRuntimeData |
| Constructor Detail |
|---|
public CError()
public CError(ErrorCode errorCode,
Throwable throwable,
String channelSubscribeId,
IChannel channelInstance)
errorCode - one of the static error codes of this classthrowable - cause of failed channel's failurechannelSubscribeId - identifies the failed channelchannelInstance - the failed channel
public CError(ErrorCode errorCode,
String message,
String channelSubscribeId,
IChannel channelInstance)
errorCode - one of the static error codes of this classmessage - describes errorchannelSubscribeId - identifies failed channelchannelInstance - failed channel
public CError(ErrorCode errorCode,
Throwable exception,
String channelSubscribeId,
IChannel channelInstance,
String message)
errorCode - one of the static error codes of this classexception - thrown by the failed channelchannelSubscribeId - identifies failed channelchannelInstance - the failed channel instancemessage - message describing failure| Method Detail |
|---|
public void setPortalControlStructures(PortalControlStructures pcs)
IPrivileged
setPortalControlStructures in interface IPrivilegedPortalControlStructurespublic void receiveEvent(PortalEvent ev)
IChannel
receiveEvent in interface IChannelreceiveEvent in class BaseChannelev - PortalEvent objectPortalEventpublic void setStaticData(ChannelStaticData sd)
IChannel
setStaticData in interface IChannelsetStaticData in class BaseChannelsd - channel static dataChannelStaticData
protected void renderChannel(IChannel channel,
ContentHandler contentHandler,
PrintWriter printWriter)
throws Exception
Exception
protected void doCommonErrorHandling(ContentHandler contentHandler,
PrintWriter printWriter)
public void renderXML(ContentHandler out)
IChannel
renderXML in interface IChannelrenderXML in class BaseChannelout - the SAX ContentHandler to output content topublic ChannelCacheKey generateKey()
ICacheable
generateKey in interface ICacheablepublic boolean isCacheValid(Object validity)
ICacheable
isCacheValid in interface ICacheable
public void renderCharacters(PrintWriter out)
throws PortalException
ICharacterChannel
renderCharacters in interface ICharacterChannelout - a PrintWriter value into which the character output should be directed
PortalException - if an error occurspublic ErrorDocument getErrorDocument()
public void setErrorDocument(ErrorDocument errorDocument)
errorDocument - The errorDocument to set.public String toString()
toString in class BaseChannel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||