|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.channels.BaseMultithreadedChannel
org.jasig.portal.channels.CPersonAttributes
This channel demonstrates the method of obtaining and displaying standard uPortal person attributes. Implements MultithreadedIMimeResponse in order to support the inline display of jpegPhotos Note: for proper operation, one should use an idempotent baseActionURL.
Constructor Summary | |
CPersonAttributes()
|
Method Summary | |
void |
downloadData(java.io.OutputStream out,
java.lang.String uid)
Pass the OutputStream object to the download code if it needs special handling (like outputting a Zip file). |
java.lang.String |
getContentType(java.lang.String uid)
Returns the MIME type of the content. |
java.util.Map |
getHeaders(java.lang.String uid)
Returns a list of header values that can be set in the HttpResponse. |
java.io.InputStream |
getInputStream(java.lang.String uid)
Returns the MIME content in the form of an input stream. |
java.lang.String |
getName(java.lang.String uid)
Returns the name of the MIME file. |
void |
renderXML(org.xml.sax.ContentHandler out,
java.lang.String uid)
Render nothing. |
void |
reportDownloadError(java.lang.Exception e)
Let the channel know that there were problems with the download |
Methods inherited from class org.jasig.portal.channels.BaseMultithreadedChannel |
getRuntimeProperties, receiveEvent, setRuntimeData, setStaticData |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CPersonAttributes()
Method Detail |
public void renderXML(org.xml.sax.ContentHandler out, java.lang.String uid) throws PortalException
BaseMultithreadedChannel
renderXML
in interface IMultithreadedChannel
renderXML
in class BaseMultithreadedChannel
out
- the content handler to which the channel sends SAX eventsuid
- a unique ID used to identify the state of the channel
PortalException
public java.lang.String getContentType(java.lang.String uid)
getContentType
in interface IMultithreadedMimeResponse
public java.io.InputStream getInputStream(java.lang.String uid) throws java.io.IOException
getInputStream
in interface IMultithreadedMimeResponse
java.io.IOException
public void downloadData(java.io.OutputStream out, java.lang.String uid) throws java.io.IOException
downloadData
in interface IMultithreadedMimeResponse
java.io.IOException
public java.lang.String getName(java.lang.String uid)
getName
in interface IMultithreadedMimeResponse
public java.util.Map getHeaders(java.lang.String uid)
getHeaders
in interface IMultithreadedMimeResponse
public void reportDownloadError(java.lang.Exception e)
reportDownloadError
in interface IMultithreadedMimeResponse
e
-
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |