|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.channels.webproxy.CWebProxy
@Deprecated public class CWebProxy
A channel which transforms and interacts with dynamic XML or HTML. See docs/website/developers/channel_docs/reference/CwebProxy.html for full documentation.
Static and Runtime Channel Parameters: These parameters can be configured both as ChannelStaticData parameters and as ChannelRuntimeData parameters. These static parameters can be updated by equivalent Runtime parameters. Caching parameters can also be changed temporarily. Cache defaults and IPerson restrictions are loaded first from properties, and overridden by static data if there.
none (normally don't cache), or
all (cache everything).
Static Channel Parameters: These parameters can be configured only as ChannelStaticData parameters. They can no longer (as of uPortal 2.5.1) be changed at runtime. This closes some serious security vulnerabilities wherein the Adversary would manipulate these parameters at runtime to access resources on the local filesystem.
cw_xsl is supplied, cw_ssl
and cw_xslTitle will be ignored.
cw_passThrough is supplied, and not set
to "all" or "application", additional RunTimeData
parameters not starting with "cw_" or "upc_" will be
passed as request parameters to the XML URI. If
cw_passThrough is set to "marked", this will
happen only if there is also a RunTimeData parameter of
cw_inChannelLink. "application" is intended
to keep application-specific links in the channel, while
"all" should keep all links in the channel. This
distinction is handled entirely in the URL Filters.
xmlUri will be passed though Jtidy
info event.
help event.
edit event.
false (normally don't globally cache), or
true (cache everything).
Runtime Channel Parameters:
The following parameters are runtime-only.return resets cw_xml
to its last value before changed by button events. The
value "reset" returns all variables to the static data
values.
This channel can be used for all XML formats with appropriate stylesheets.
All static data parameters as well as additional runtime data parameters
passed to this channel via HttpRequest will in turn be passed on to the
XSLT stylesheet as stylesheet parameters. They can be read in the
stylesheet as follows:
<xsl:param
name="yourParamName">aDefaultValue</xsl:param>
| Nested Class Summary | |
|---|---|
protected class |
CWebProxy.ChannelState
Deprecated. All state variables are stored in this inner class. |
| Field Summary | |
|---|---|
static String |
ALLOW_URI_PREFIXES_PARAM
Deprecated. The name of the optional ChannelStaticData parameter the value of which will be a String containing a whitespace-delimited list of allowable URI prefixes for URIs from which the configured CWebProxy instance will obtain XML and XSLT. |
static String |
BLOCK_URI_PREFIXES_PARAM
Deprecated. The name of the optional ChannelStaticData parameter the value of which will be a String containing a whitespace-delimited list of explicitly blocked URI prefixes for URIs from which the configured CWebProxy instance will not obtain XML and XSLT. |
protected CWebProxy.ChannelState |
chanState
Deprecated. |
static String |
RESTRICT_STATIC_XMLURI_PREFIXES_PARAM
Deprecated. The name of the optional ChannelStaticData parameter the value of which will be the String "true" to convey that the xmlUri should be restricted as received from both ChannelStaticData and CHannelRuntimeData and any other value to convey that it should be restricted only as received from ChannelRuntimeData. |
| 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 | |
|---|---|
CWebProxy()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addPersonAttributeParameters(CWebProxy.ChannelState state,
StringBuffer newXML,
String appendchar)
Deprecated. Add person attribute parameters to the parameters string buffer. |
protected static String |
appendReqParams(String xmlUri,
String reqParameters)
Deprecated. |
void |
downloadData(OutputStream out)
Deprecated. Pass the OutputStream object to the download code if it needs special handling (like outputting a Zip file). |
ChannelCacheKey |
generateKey()
Deprecated. Requests the channel to generate a key uniquely describing its current state, and a description of key usage. |
String |
getContentType()
Deprecated. Returns the MIME type of the content. |
Map |
getHeaders()
Deprecated. Returns a list of header values that can be set in the HttpResponse. |
InputStream |
getInputStream()
Deprecated. Returns the MIME content in the form of an input stream. |
String |
getName()
Deprecated. Returns the name of the MIME file. |
ChannelRuntimeProperties |
getRuntimeProperties()
Deprecated. Acquires ChannelRuntimeProperites from the channel. |
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. Process portal events. |
void |
renderXML(ContentHandler out)
Deprecated. Ask channel to render its content. |
void |
reportDownloadError(Exception e)
Deprecated. Let the channel know that there were problems with the download |
void |
setRuntimeData(ChannelRuntimeData rd)
Deprecated. Passes ChannelRuntimeData to the channel. |
void |
setStaticData(ChannelStaticData sd)
Deprecated. Passes ChannelStaticData to the channel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ALLOW_URI_PREFIXES_PARAM
public static final String BLOCK_URI_PREFIXES_PARAM
public static final String RESTRICT_STATIC_XMLURI_PREFIXES_PARAM
protected CWebProxy.ChannelState chanState
| Constructor Detail |
|---|
public CWebProxy()
| Method Detail |
|---|
public void setStaticData(ChannelStaticData sd)
throws PortalException
setStaticData in interface IChannelsd - channel static data
PortalExceptionChannelStaticData
protected static final String appendReqParams(String xmlUri,
String reqParameters)
public void setRuntimeData(ChannelRuntimeData rd)
setRuntimeData in interface IChannelrd - channel runtime dataChannelRuntimeData
public void addPersonAttributeParameters(CWebProxy.ChannelState state,
StringBuffer newXML,
String appendchar)
state - channel statenewXML - StringBuffer of parameters to add toappendchar - current character to use to append the parameterpublic void receiveEvent(PortalEvent ev)
receiveEvent in interface IChannelev - the eventPortalEventpublic ChannelRuntimeProperties getRuntimeProperties()
getRuntimeProperties in interface IChannelChannelRuntimeProperties
public void renderXML(ContentHandler out)
throws PortalException
renderXML in interface IChannelout - 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 getContentType()
IMimeResponse
getContentType in interface IMimeResponse
public InputStream getInputStream()
throws IOException
IMimeResponse
getInputStream in interface IMimeResponseIOException
public void downloadData(OutputStream out)
throws IOException
IMimeResponse
downloadData in interface IMimeResponseIOExceptionpublic String getName()
IMimeResponse
getName in interface IMimeResponsepublic Map getHeaders()
IMimeResponse
getHeaders in interface IMimeResponsepublic void reportDownloadError(Exception e)
IMimeResponse
reportDownloadError in interface IMimeResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||