| com.sun.portal.wireless.providers.rendering.JSPRenderingProvider com.sun.portal.wireless.providers.rendering.wrapping.RenderingWrappingProvider
RenderingWrappingProvider | public class RenderingWrappingProvider extends JSPRenderingProvider (Code) | | The RenderingWrappingProvider class is used to wrap a native
channel or a container which has AML templates written for it. This can
be added to the RenderingContainer. The responsibility of this provider is
to always return AML when the parent container is Rendering and return
native markup when the parent container is Native.
|
renderContent | public StringBuffer renderContent(HttpServletRequest request, StringBuffer sb) throws ProviderException(Code) | | This method is called from the RenderingWrappingProvider's getContent
after it creates its content StringBuffer.
The logic of whether to do the conversion of AML document into device
specific markup or to wrap native markup to make it an AML document
is implemented in this method.
The logic of processing the content is driven by the following table.
|
Parent Container |
Rendering
Container
|
Native
Container
|
Null - top level
|
Client FilePath |
Native filepath e.g. 'wml'
|
Wrap with
'<AmlContainer>'
|
NOOP
|
NOOP
|
Starts with 'aml'
|
NOOP
|
NOOP
|
Render
|
Parameters: request - The Http Servlet Request object that gets passed to the getContent call of the Provider/Container. Parameters: sb - The StringBuffer returned by the getContent call StringBuffer The return content driven by the above mentioned logic. throws: ProviderException - |
renderEditContent | protected StringBuffer renderEditContent(HttpServletRequest req, StringBuffer sb) throws ProviderException(Code) | | Renders the edit content for the wrapped channel.
Parameters: req - The Http Servlet Request object that gets passed tothe getContent call of the Provider/Container. Parameters: sb - The StringBuffer returned by the getContent call StringBuffer The return content driven by the above mentioned logic. throws: ProviderException - |
|
|