com.ibm.portal.spa.service
Interface PortalStaticPageServiceHome
- All Superinterfaces:
- StaticPageServiceHome
public interface PortalStaticPageServiceHome
- extends StaticPageServiceHome
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();
- Since:
- 6.1.0
Field Summary |
static java.lang.String
| JNDI_NAME
JNDI name of this service
|
JNDI_NAME
static final java.lang.String JNDI_NAME
- JNDI name of this service
- See Also:
- Constant Field Values
getPortalStaticPageService
PortalStaticPageService getPortalStaticPageService(HttpServletRequest request,
HttpServletResponse response)
- Creates a new instance of the PortalStaticPageService that is valid for one
request. Make sure to call Disposable.dispose() when the service is no longer
used.
- Parameters:
- request - the servlet request
- response - the servlet response
- Returns:
- the instance of the service, not
null