com.ibm.portal.resourceaggregator.combiner
Interface PortletResourceCombinerServiceHome

All Superinterfaces:
PortletService, ResourceCombinerServiceHome

public interface PortletResourceCombinerServiceHome
extends ResourceCombinerServiceHome, PortletService

Home interface for the portlet service for ResourceCombinerService

A lookup for the ResourceCombinerService can be performed as follows:

 PortletServiceHome psh;
 javax.naming.Context ctx = new javax.naming.InitialContext();
 boolean serviceAvailable = false;
 
 try {
     psh = (PortletServiceHome) ctx.lookup(PortletResourceCombinerServiceHome.JNDI_NAME);
     serviceAvailable = true;
 } catch(javax.naming.NameNotFoundException ex) {
     ... error handling ...
 }
 
 if (serviceAvailable) {
     PortletResourceCombinerServiceHome home = (PortletResourceCombinerServiceHome) psh.getPortletService(PortletResourceCombinerServiceHome.class);
     ResourceCombinerService resourceCombinerService = home.getResourceCombinerService(request, response);
     ...
 }
 

Since:
8.5.0.3

Field Summary
static java.lang.String JNDI_NAME
          The JNDI name used to bind the ResourceCombinerServiceHome singleton.
 
Method Summary
 ResourceCombinerService getResourceCombinerService(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response)
          Returns the resource combiner service.
 
Methods inherited from interface com.ibm.portal.resourceaggregator.combiner.ResourceCombinerServiceHome
createResourceList, createResourceVariations
 

Field Detail

JNDI_NAME

static final java.lang.String JNDI_NAME
The JNDI name used to bind the ResourceCombinerServiceHome singleton.

Method Detail

getResourceCombinerService

ResourceCombinerService getResourceCombinerService(javax.portlet.PortletRequest request,
                                                   javax.portlet.PortletResponse response)
                                                   throws java.lang.Exception
Returns the resource combiner service.

Parameters:
request - the portlet request object, must not be null
response - the portlet response object, must not be null
Returns:
an instance of ResourceCombinerService, never null
Throws:
java.lang.Exception