Portlet Factory, Version 6.1.2
Creating profile selection handlers
Profile selection handlers are defined by the following.
- Handler definition file
- This XML file lists the Java classes used to implement the profile selection handler and any properties of the profile selection handler.
- (optional) SegmentList implementation
- This Java class determines and returns a list of segments to be used by the profile manager when customizing profile entries.
- BaseSelectionHandler extension
- This Java class associates the request with one or more segments and returns a profile according to the least-privileged segment.
Parent topic: About setting the profile selection handler
- Replacing the default profile selection handler
You can declare one of your own profile selection handlers as the default handler for the IBM® WebSphere Portlet Factory servlet to use if a profile set does not specify a profile selection handler to use.
- Sample profile selection handler
The following code is an example of a simple profile selection handler that associates a request with a profile according to the day of the week:
- Extending the SelectionHandlerBase class
The SelectionHandlerBase base class includes the following methods that facilitate the development of profile selection handlers:
- Implementing the SegmentList interface
You can create your own SegmentList implementation so that you can associate profiles with segments of your own type in the profile manager.
Library | Support |