| com.sun.portal.providers.jsp.JSPProvider com.sun.portal.wireless.providers.rendering.JSPRenderingProvider
All known Subclasses: com.sun.portal.wireless.providers.rendering.wrapping.RenderingWrappingProvider,
JSPRenderingProvider | public class JSPRenderingProvider extends JSPProvider (Code) | | The JSPRenderingProvider class extends from the
JSPProvider and overrides the getContent,
getEdit and getMostSpecificPath
methods of JSPProvider . This is a public class and
can be extended to add more functionality to the provider if needed.
It gets the AML content from JSP templates for the provider and based on a
few checks, it decides whether to pass the AML content back to the
container or call the RenderingEngine
itself and pass back device specific markup to the container.
Rendering Channels created using this
JSPRenderingProvider can be a part of either RenderingContainers or
NativeContainers. While creating channels using
JSPRenderingProvider , the channel developer
has to write a contentPage.jsp and editPage.jsp (if channel is editable)
which would get the content from AML JSPs it has.
All JSPs created for the channel should be valid AML documents.
|
getContent | public StringBuffer getContent(HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code) | | This method overrides JSPProvider.getContent() method. It
gets the JSP content from JSPProvider and pass it to
renderContent() method.
Based on a few check, it will either return device specfic markup or AML.
StringBuffer holding the channel content that is markup specific or AML. exception: ProviderException - If there was an error generating the content. Parameters: request - An HttpServletRequest that contains information related tothis request for content. Parameters: response - An HttpServletResponse that allows the provider to influence overall response for the desktop page. See Also: com.sun.portal.providers.jsp.JSPProvider.getContent |
getEdit | public StringBuffer getEdit(HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code) | | This method overrides JSPProvider.getEdit() method. It gets
the JSP edit page content from JSPProvider and pass it to
renderContent() method.
Based on a few check, it will either return device specfic markup or AML.
StringBuffer holding the channel edit page that is markup specific or AML. exception: ProviderException - If there was an error generating the content. Parameters: request - An HttpServletRequest that contains information related xto this request for content. Parameters: response - An HttpServletResponse that allows the provider to influence overall response for the desktop page. See Also: com.sun.portal.providers.jsp.JSPProvider.getEdit |
renderContent | protected StringBuffer renderContent(HttpServletRequest req, StringBuffer sb) throws ProviderException(Code) | | This method is expected to be called from the Provider's
getContent() methods after it creates its content
StringBuffer. It calls RenderingUtil.renderContent()
to render the content. The return buffer can contain device specific
markup (rendered) or remain as AML document (not rendered).
Parameters: req - An HttpServletRequest that contains information related to thisrequest for content. Parameters: sb - The StringBuffer representing the content obtained from the JSPs. StringBuffer The return content can be rendered or not rendered. See Also: com.sun.portal.wireless.providers.rendering.RenderingUtil.renderContent |
renderEditContent | protected StringBuffer renderEditContent(HttpServletRequest req, StringBuffer sb) throws ProviderException(Code) | | This method is expected to be called from the Provider's getEdit()
methods after it creates its content StringBuffer. It calls
RenderingUtil.renderEditContent() to render the content.
The return buffer can contain device specific markup (rendered) or
remain as AML document (not rendered).
Parameters: req - An HttpServletRequest that contains information related to thisrequest for content. Parameters: sb - The StringBuffer representing the content obtained from the JSPs. StringBuffer The return content can be rendered or not rendered. See Also: com.sun.portal.wireless.providers.rendering.RenderingUtil.renderContent |
Methods inherited from com.sun.portal.providers.jsp.JSPProvider | protected File getCompiledJSPPath(ProviderContext pc, String channel, String file) throws ProviderException(Code)(Java Doc) public StringBuffer getContent(HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code)(Java Doc) protected String getContentPage() throws ProviderException(Code)(Java Doc) public StringBuffer getEdit(HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code)(Java Doc) protected String getEditPage() throws ProviderException(Code)(Java Doc) protected File getExistingJSPPath(ProviderContext pc, String channel, String file) throws ProviderException(Code)(Java Doc) protected File getMostSpecificJSPPath(ProviderContext pc, String channel, String file) throws ProviderException(Code)(Java Doc) protected String getProcessPage() throws ProviderException(Code)(Java Doc) protected StringBuffer includeJspPage(String jsp, Hashtable parameters, HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code)(Java Doc) public void init(String n, HttpServletRequest httpreq) throws ProviderException(Code)(Java Doc) public boolean isPresentable(HttpServletRequest req)(Code)(Java Doc) public URL processEdit(HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code)(Java Doc)
|
|
|