| com.sun.portal.providers.containers.jsp.single.JSPSingleContainerProvider com.sun.portal.wireless.providers.containers.jsp.rendering.single.JSPSingleRenderingContainerProvider
JSPSingleRenderingContainerProvider | public class JSPSingleRenderingContainerProvider extends JSPSingleContainerProvider implements RenderingContainerProvider(Code) | | The JSPSingleRenderingContainerProvider class extends from
the JSPSingleContainerProvider and overrides the
getContent, getEdit and getMostSpecificPath
methods of JSPSingleContainerProvider . This is a public class
and can be extended to add more functionality to the provider if needed.
While creating container channels using
JSPSingleRenderingContainerProvider , the channel developer has
to write a contentPage.jsp and editPage.jsp which would
get the content from AML JSPs it has.
All JSPs created for the channel should be valid AML documents.
|
Method Summary | |
public StringBuffer | getContent(HttpServletRequest req, HttpServletResponse res) | public StringBuffer | getEdit(HttpServletRequest req, HttpServletResponse res) | public File | getExistingJSPPath(ProviderContext pc, String name, String file) Gets the template path for the given channel name, the given template
name and the given filepath. | protected File | getMostSpecificJSPPath(ProviderContext pc, String name, String file) Gets the most specific template path for the given channel name,
the given template name and the given filepath. | protected StringBuffer | handleException(HttpServletRequest req, HttpServletResponse res) Exception handling method for the Rendering Container. | public void | init(String name, HttpServletRequest req) | protected StringBuffer | renderContent(HttpServletRequest req, StringBuffer sb) | protected StringBuffer | renderEditContent(HttpServletRequest req, StringBuffer sb) |
getExistingJSPPath | public File getExistingJSPPath(ProviderContext pc, String name, String file) throws ProviderException(Code) | | Gets the template path for the given channel name, the given template
name and the given filepath. If non-null, the key returned by this
method will map to a valid template file. It internally calls
ProviderContext.getTemplateMostSpecificPath to get the template path.
Parameters: pc - - ProviderContext of the calling provider Parameters: name - - Channel name Parameters: file - - Template name Path key to access the template |
getMostSpecificJSPPath | protected File getMostSpecificJSPPath(ProviderContext pc, String name, String file) throws ProviderException(Code) | | Gets the most specific template path for the given channel name,
the given template name and the given filepath. The file returned may
not exist at all. If non-null, the key returned by this method will map
to the most specific template file. The file may or may not exist. It
internally calls ProviderContext.getTemplateMostSpecificPath to get
the template path.
Parameters: pc - - ProviderContext of the calling provider Parameters: name - - Channel name Parameters: file - - Template name Path key to access the template |
handleException | protected StringBuffer handleException(HttpServletRequest req, HttpServletResponse res)(Code) | | Exception handling method for the Rendering Container. This method
reads the error page and passes it through the rendering engine
and returns the resulting stringbuffer to the caller.
StringBuffer holding the channel content that is markupspecific or AML. Parameters: req - An HttpServletRequest that contains information relatedto this request for content. Parameters: res - An HttpServletResponse that allows the provider toinfluence the overall response for desktop page |
|
|