|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortalStaticPageServiceHome
Home interface that can be looked up in JNDI and that provides access to the
static page services from the context of a portal request.
Example:
PortalStaticPageServiceHome psh; javax.naming.Context ctx = new javax.naming.InitialContext(); try { psh = (PortalStaticPageServiceHome) ctx.lookup(PortalStaticPageServiceHome.JNDI_NAME); } catch(javax.naming.NameNotFoundException ex) { ... error handling ... } ... // request the service via the home interface PortalStaticPageService service = psh.getPortalStaticPageService(request, response); ... service.dispose();NOTE: This API may only be used in the scope of an HTTP request in WebSphere Portal, i.e. within a theme. The API can not be invoked directly by a custom servlet.
Field Summary | |
---|---|
static java.lang.String |
JNDI_NAME
JNDI name of this service |
Method Summary | |
---|---|
LocalizationURIParserFactory |
getLocalizationURIParserFactory(java.lang.Boolean bCached)
Returns a parser factory to parse localized templates |
PortalStaticPageService |
getPortalStaticPageService(HttpServletRequest request,
HttpServletResponse response)
Creates a new instance of the PortalStaticPageService that is
valid for one request. |
SkinURIParserFactory |
getSkinURIParserFactory(java.lang.Boolean bCached)
Returns a parser factory to parse skin templates |
ThemeURIParserFactory |
getThemeURIParserFactory(java.lang.Boolean bCached)
Returns a parser factory to parse theme templates |
Methods inherited from interface com.ibm.portal.spa.service.StaticPageServiceHome |
---|
createStaticPageContentHandler, createStaticPageContentHandler, createStaticPageContentHandler, createStaticPageZipParser, getFilenameParserFactory, getFileTypeMap, getStaticPageParserFactory |
Field Detail |
---|
static final java.lang.String JNDI_NAME
Method Detail |
---|
LocalizationURIParserFactory getLocalizationURIParserFactory(java.lang.Boolean bCached)
bCached
- flag to indicate if the caching version of the parser should
be used
PortalStaticPageService getPortalStaticPageService(HttpServletRequest request, HttpServletResponse response)
PortalStaticPageService
that is
valid for one request. Make sure to call Disposable.dispose()
when the service is no longer used.
request
- the servlet requestresponse
- the servlet response
null
SkinURIParserFactory getSkinURIParserFactory(java.lang.Boolean bCached)
bCached
- flag to indicate if the caching version of the parser should
be used
ThemeURIParserFactory getThemeURIParserFactory(java.lang.Boolean bCached)
bCached
- flag to indicate if the caching version of the parser should
be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |