|
|||||||||
| 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
|
+--oracle.portal.provider.v1.http.JavaRenderer
JavaRenderer has responsibility for responding to a PortletRenderRequest by dynamically invoking an arbitrarily named method on
an instance of an arbitrary Java class. The only restrictions are that the
class must have a null constructor, and the named method must take a PortletRenderRequest as the only parameter.
The properties contentType and pageExpires may be
set explicitly on a JavaRenderer, or inherited from defaults set at RenderManager level. However the class and method
names must be set at JavaRenderer level via calls to and setClassName(String). Once these strings have been set, it is
important that the setRenderMethod(String)postInitialize() method is called to complete
initialization. If the provider is a DefaultProvider, these calls may be
initiated as a result of <className> and
<renderMethod> declarations in the provider XML registry.
| Constructor Summary | |
JavaRenderer()
Null constructor. |
|
| Method Summary | |
java.lang.String |
getClassName()
Gets the fully-qualified class name of the object used to render this request. |
java.lang.String |
getRenderMethod()
Gets the name of the method called on an instance of the preset class to render a request. |
void |
postInitialize()
Performs the extra steps required to initialize and validate this JavaRenderer once its properties have been set with the appropriate accessor methods. |
void |
preInitialize(java.lang.Object o)
Performs the steps required to initialize this JavaRenderer after it has been constructed. |
void |
renderBody(PortletRenderRequest pr)
Renders the request using dynamic invokation of the preset method on an instance of the preset class. |
void |
setClassName(java.lang.String className)
Sets the fully-qualified class name of the object used to render this request. |
void |
setRenderMethod(java.lang.String methodName)
Sets the name of the method to be called on an instance of the preset class to render a request. |
| Methods inherited from class oracle.portal.provider.v1.http.BaseManagedRenderer |
getCharSet,
getContentType,
getPageExpires,
prepareResponse,
setCharSet,
setContentType,
setPageExpires,
setPageExpires |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public JavaRenderer()
| Method Detail |
public void renderBody(PortletRenderRequest pr)
throws PortletException
PortletRenderRequest as its only parameter.pr - a PortletRenderRequestpublic void setClassName(java.lang.String className)
className - fully-qualified class name.public java.lang.String getClassName()
public void setRenderMethod(java.lang.String methodName)
methodName - a method name.public java.lang.String getRenderMethod()
public void preInitialize(java.lang.Object o)
throws NodeHandlerException
o - the object that will become this object's parent
public void postInitialize()
throws NodeHandlerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||