|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortalFriendlySelectionServiceHome
Home interface that can be looked up in JNDI and that provides access to the
friendly selection services from the context of a portal request.
Example:
PortalFriendlySelectionServiceHome psh; javax.naming.Context ctx = new javax.naming.InitialContext(); try { psh = (PortalFriendlySelectionServiceHome) ctx.lookup("portal:service/resolver/FriendlySelectionService"); } catch(javax.naming.NameNotFoundException ex) { ... error handling ... } ... // request the service via the home interface PortalFriendlySelectionService service = psh.PortalFriendlySelectionService(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 |
ATTR_CLASS
name of the class attribute used for instantiation |
static java.lang.String |
DEFAULT_EXTENSION_ID
ID of the default implementation of the PortalFriendlySelectionServiceHome |
static java.lang.String |
EXTENSION_POINT_ID
ID of the PortalFriendlySelectionServiceHome extension point |
static java.lang.String |
JNDI_NAME
JNDI name of this service |
Method Summary | |
---|---|
javax.servlet.http.HttpServletRequest |
createHttpServletRequestWrapper(javax.servlet.http.HttpServletRequest aReq)
Creates a wrapper around the HttpServletRequest that strips the
friendly path prefix from the request and stores it as a request
attribute |
PortalFriendlySelectionService |
getPortalFriendlySelectionService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Retrieves an instance of the friendly selection service. |
Methods inherited from interface com.ibm.portal.resolver.friendly.service.FriendlySelectionServiceHome |
---|
compact |
Field Detail |
---|
static final java.lang.String ATTR_CLASS
static final java.lang.String DEFAULT_EXTENSION_ID
static final java.lang.String EXTENSION_POINT_ID
static final java.lang.String JNDI_NAME
Method Detail |
---|
javax.servlet.http.HttpServletRequest createHttpServletRequestWrapper(javax.servlet.http.HttpServletRequest aReq) throws java.io.IOException
HttpServletRequest
that strips the
friendly path prefix from the request and stores it as a request
attribute
aReq
- the request
java.io.IOException
PortalFriendlySelectionService getPortalFriendlySelectionService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ModelException, StateException
request
- current portal requestresponse
- current portal response
ModelException
- -
if the navigation model could not be accessed
StateException
- -
if the state could not be accessed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |