|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSPSingleContainerProvider
com.sun.portal.wireless.providers.containers.jsp.rendering.single.JSPSingleRenderingContainerProvider
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.
Constructor Summary | |
JSPSingleRenderingContainerProvider()
|
Method Summary | |
java.lang.StringBuffer |
getContent(HttpServletRequest req,
HttpServletResponse res)
Gets the content. |
java.lang.StringBuffer |
getEdit(HttpServletRequest req,
HttpServletResponse res)
|
java.io.File |
getExistingJSPPath(ProviderContext pc,
java.lang.String name,
java.lang.String file)
Gets the template path for the given channel name, the given template name and the given filepath. |
void |
init(java.lang.String name,
HttpServletRequest req)
Initializes this JSPSingleRenderingContainerProvider. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JSPSingleRenderingContainerProvider()
Method Detail |
public void init(java.lang.String name, HttpServletRequest req) throws ProviderException
name
- the namereq
- the HTTP servlet request
ProviderException
- if initialization failspublic java.lang.StringBuffer getContent(HttpServletRequest req, HttpServletResponse res) throws ProviderException
req
- the HTTP servlet requestres
- the HTTP servlet response
ProviderException
- if there was a problem getting the content.public java.lang.StringBuffer getEdit(HttpServletRequest req, HttpServletResponse res) throws ProviderException
ProviderException
public java.io.File getExistingJSPPath(ProviderContext pc, java.lang.String name, java.lang.String file) throws ProviderException
pc
- - ProviderContext of the calling providername
- - Channel namefile
- - Template name
ProviderException
- if there was a problem getting the path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |