| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResolutionService
Service that allows to resolve a URI to navigational state in the context of WebSphere Portal. In particular this service can be used to address pages and/or portlets to display a view to a URI.
Implementations for the ResolutionService need to register their
services as locationServiceHandler
with a
serviceHandler
ID of
com.ibm.portal.resolver.ResolutionService
. It is undefined
how many instances of the resolution service implementation will be generated
by the framework. Implementations must in particular be prepared that the
same instance is accessed concurrently by multiple threads.
Many implementations of ResolutionService will not implement the complete resolution but will rather dispatch to different resolvers to do parts of the execution. It is intended that these subordinate resolvers be discovered dynamically by identifying them via a URI and by discovering them using the content operations registry. The CORResolutionService helper class can be used for this dynamic discovery process.
Example fragment of a plugin.xml that declares a ResolutionService.
<extension point="com.ibm.content.operations.registry.locationServiceHandler"> <serviceHandler class="MyServiceProvicerClassName" locationTypeId="MyContentLocationId" id="com.ibm.portal.resolver.ResolutionService"/> </extension>
This interface is designed to be implemented by clients. |
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 resolution service extension. |
static java.lang.String | EXTENSION_POINT_ID
ID of the resolution service extension point |
Method Summary | |
---|---|
boolean | resolve(Resolved res,
java.net.URI uri,
java.lang.String verb,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.util.Set<Binding> acceptedBindings,
Context ctx)
Performs the resolution of the URI into navigational state by modifying the content of the resolved bean. |
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
Method Detail |
---|
boolean resolve(Resolved res, java.net.URI uri, java.lang.String verb, java.util.Map<java.lang.String,java.lang.String[]> params, java.util.Set<Binding> acceptedBindings, Context ctx) throws ResolutionException, StateException
null
null
true
if the resolver was able to process the URI,
else false
. A return value of false
does not indicate an error situation. Reasons for not being able
to resolve a URI could e.g. be an unsupported binding. Clients
can in this case try to resolve the URI on their own or dispatch
to a different ResolutionService.
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |