|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.portal.provider.v1.http.BaseManagedRenderer
BaseManagedRenderer is the JPDK's base implementation of the ManagedRenderer interface. BaseManagedRenderer
maintains information about the page's content type (MIME type) and cache
expiry time. These may be set via calls to the appropriate methods or
declared at page level in provider.xml using the
<contentType> and <pageExpires> tags.
BaseManagedRenderer also maintains a reference to its parent RenderManager object so that page level
attributes can be defaulted at RenderManager level.
Implementations needing to set HTTP headers other than content type and page
expiry should subclass BaseManagedRenderer and override the prepareResponse(PortletRenderRequest) method, taking care to call
super.prepareResponse(pr) as a first step.
| Constructor Summary | |
BaseManagedRenderer()
|
|
| Method Summary | |
java.lang.String |
getCharSet()
Gets the Default IANA character encoding to be used for this renderer's pages. |
java.lang.String |
getContentType()
Gets the default MIME type to be used as the content type for this renderer's pages. |
int |
getPageExpires()
Gets the page expriation (in minutes). |
void |
postInitialize()
Performs the extra steps required to initialize and validate a BaseManagedRenderer object once its properties have been set with the appropriate accessor methods. |
void |
preInitialize(java.lang.Object o)
Performs the steps required to initialize a BaseManagedRenderer object after it has been constructed. |
boolean |
prepareResponse(PortletRenderRequest pr)
Sets default HTTP headers for the response. |
void |
setCharSet(java.lang.String encoding)
Sets the Default IANA character encoding to be used for this renderer's pages. |
void |
setContentType(java.lang.String contentType)
Sets the default MIME type to be used as the content type for this renderer's pages. |
void |
setPageExpires(int expires)
Sets the expiration time (in minutes) of the page cache. |
void |
setPageExpires(java.lang.String expires)
Sets the expiration time (in minutes) of the page cache. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public BaseManagedRenderer()
| Method Detail |
public void preInitialize(java.lang.Object o)
throws NodeHandlerException
o - the object that will become this object's parent
public void postInitialize()
throws NodeHandlerException
public void setContentType(java.lang.String contentType)
contentType - MIME type to be used as the content type for this
renderer's pages.public java.lang.String getContentType()
BaseManagedRenderer, then the value returned by calling
the PortletPageLocator.getContentType() method on the parent
PortletPageLocator is returned.public void setCharSet(java.lang.String encoding)
charSet - IANA character encoding to be used for this renderer's
pagespublic java.lang.String getCharSet()
BaseManagedRenderer, then the value returned by calling
the PortletPageLocator.getCharSet() method on the parent
PortletPageLocator is returned.public void setPageExpires(int expires)
expires - the number of minutes a page should be cached by
the Portal.public void setPageExpires(java.lang.String expires)
expires - String representation of the integer number of minutes a
page should be cached by the Portal.public int getPageExpires()
BaseManagedRenderer, then the
value returned by calling the PortletPageLocator.getPageExpires() method on the parent
PortletPageLocator is returned.
public boolean prepareResponse(PortletRenderRequest pr)
throws PortletException,
PortletNotFoundException
content type and page expiry time, both of which may be
set programatically via calls to setContentType(String) and
setPageExpires(String) or declaritivley in
provider.xml with the <contentType> and
<pageExpires> tags.pr - a PortletRenderRequest
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||