| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.portal.resolver.helper.CORResolutionService
public class CORResolutionService
Resolution service that implements itself by dispatching to a resolution service provided by the COR.
Field Summary | |
---|---|
protected ResolutionService | defaultService
default lookup service |
protected static int | LOG_LEVEL
Loglevel to use |
protected static Logger | LOGGER
Logging support for the lookup process |
static ResolutionService | SINGLETON
Singleton that can be used to do COR lookups that don't require a fallback |
Fields inherited from interface com.ibm.portal.resolver.ResolutionService |
---|
ATTR_CLASS, DEFAULT_EXTENSION_ID, EXTENSION_POINT_ID |
Constructor Summary | |
---|---|
CORResolutionService()
initialize the resolution service without default resolution service | |
CORResolutionService(ResolutionService aDefaultService)
Initialize the resolution service passing a default service reference that will be used if no COR service can be found |
Method Summary | |
---|---|
protected ResolutionService | lookupService(java.net.URI uri,
java.lang.Class<ResolutionService> cls,
Context ctx)
Uses the COR to find a service that exposes a particular interface. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int LOG_LEVEL
protected static final Logger LOGGER
public static final ResolutionService SINGLETON
protected final ResolutionService defaultService
Constructor Detail |
---|
public CORResolutionService()
public CORResolutionService(ResolutionService aDefaultService)
null
Method Detail |
---|
protected ResolutionService lookupService(java.net.URI uri, java.lang.Class<ResolutionService> cls, Context ctx) throws CoreException, ServiceNotFoundException
public 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 |