|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletDialogServiceHome
DialogServiceHome for portlet scope, i. e. with portlet request / response.
PortletServiceHome psh; Context ctx = new InitialContext(); boolean serviceAvailable = false; try { psh = (PortletServiceHome) ctx.lookup(PortletDialogServiceHome.JNDI_NAME); serviceAvailable = true; } catch(javax.naming.NameNotFoundException ex) { ... error handling ... } ... if (serviceAvailable) { PortletDialogServiceHome provider = (PortletDialogServiceHome) psh.getPortletService(PortletDialogServiceHome.class); DialogService dService = provider.getDialogService(aRequest, aResponse); ... }
Note: The lookup for this provider should be executed within the init
method of a portlet and
only the lookup for the DialogService
itself should be performed on a per-request basis.
Field Summary | |
---|---|
static java.lang.String |
JNDI_NAME
The JNDI name used to bind the PortletDialogServiceHome singleton. |
Method Summary | |
---|---|
DialogService |
getDialogService(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Provides a dialog service valid in the scope of the given portlet request. |
Field Detail |
---|
static final java.lang.String JNDI_NAME
PortletDialogServiceHome
singleton.
Method Detail |
---|
DialogService getDialogService(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws DialogServiceException
request
- The PortletRequest
of the current request.response
- The PortletResponse
of the current request.
DialogService
handle to work with.
DialogServiceException
- in case an error occurred during service retrieval
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |