|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PortletContext interface defines a portlet's view of the portal container within which each portlet is running. The PortletContext also allows a portlet to access resources available to it. Using the context, a portlet can log events, and obtain URL references to resources.
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String aName)
Returns the portlet container attribute with the given name, or null if there is no attribute by that name. |
java.util.Enumeration |
getAttributeNames()
Returns an enumeration of the attribute names available within this portlet context. |
java.lang.String |
getContainerInfo()
Returns the name and version of the portlet container which the portlet is running in. |
int |
getMajorVersion()
Returns the major version of the Portlet API that this portlet container supports. |
int |
getMinorVersion()
Returns the minor version of the Portlet API that this portlet container supports. |
void |
include(java.lang.String aURL,
PortletRequest aRequest,
PortletResponse aResponse)
Allows the portlet to delegate the rendering to another resource as specified by the URL. |
void |
log(java.lang.String aMessage)
Logs the given message in the portal's log file, usually an event log. |
void |
log(java.lang.String aMessage,
java.lang.Throwable aCause)
Logs the given message, cause, and a stack trace in the portal's log. |
Method Detail |
public java.lang.Object getAttribute(java.lang.String aName)
aName
- the attribute namepublic java.util.Enumeration getAttributeNames()
getAttribute(String)
public void include(java.lang.String aURL, PortletRequest aRequest, PortletResponse aResponse) throws PortletException, java.io.IOException
aURL
- the url of the delegate resourceaRequest
- the portlet requestaResponse
- the portlet responsepublic void log(java.lang.String aMessage)
aMessage
- the message to loglog(String,Throwable)
public void log(java.lang.String aMessage, java.lang.Throwable aCause)
aMessage
- the message to logaCause
- the cause for logginglog(String)
public int getMajorVersion()
getMinorVersion()
public int getMinorVersion()
getMajorVersion()
public java.lang.String getContainerInfo()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |