|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.portal.resolver.helper.CORLookupService
public class CORLookupService
Lookup service that implements itself by dispatching to a lookup service provided by the COR.
Field Summary | |
---|---|
protected LookupService |
defaultService
default lookup service |
static LookupService |
SINGLETON
Singleton that can be used to do COR lookups that don't require a fallback |
Fields inherited from interface com.ibm.portal.resolver.LookupService |
---|
ATTR_CLASS, DEFAULT_EXTENSION_ID, EXTENSION_POINT_ID |
Constructor Summary | |
---|---|
CORLookupService()
initialize the lookup service without default lookup |
|
CORLookupService(LookupService aDefaultService)
Initialize the lookup service passing a default service reference that will be used if no COR service can be found |
Method Summary | |
---|---|
protected LookupService |
lookupService(java.net.URI uri,
java.lang.Class<LookupService> cls,
Context ctx)
Uses the COR to find a service that exposes a particular interface. |
Lookup |
newLookup(java.net.URI uri,
java.lang.String verb,
java.util.Map<java.lang.String,java.lang.String[]> params,
boolean bIsProtected,
boolean bIsSecure,
Context ctx)
Constructs an XML source that produces an ATOM entry that describes the access points for the URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final LookupService defaultService
public static final LookupService SINGLETON
Constructor Detail |
---|
public CORLookupService()
public CORLookupService(LookupService aDefaultService)
aDefaultService
- default lookup service, may be null
Method Detail |
---|
protected LookupService lookupService(java.net.URI uri, java.lang.Class<LookupService> cls, Context ctx) throws org.eclipse.core.runtime.CoreException, ServiceNotFoundException
uri
- cls
- ctx
-
org.eclipse.core.runtime.CoreException
- - some COR stuff failed
ServiceNotFoundException
- - the service could not be locatedpublic Lookup newLookup(java.net.URI uri, java.lang.String verb, java.util.Map<java.lang.String,java.lang.String[]> params, boolean bIsProtected, boolean bIsSecure, Context ctx) throws javax.xml.transform.TransformerException, java.io.IOException
LookupService
null
in
case there is no customized lookup for the URI / params combination. In
this case a client is free to select a default lookup. If this is not the
intended behaviour, the service can either return a dummy lookup object
that returns an empty source or throw an exception.
newLookup
in interface LookupService
uri
- POC URIverb
- lookup verbparams
- parameter mapbIsProtected
- true, if the lookup should refer to the protected contextbIsSecure
- true, if the lookup should refer to the secure contextctx
- COR context
null
to indicate
that the service does not handle the lookup for the specified
input parameters.
javax.xml.transform.TransformerException
- -
if the lookup cannot be created
java.io.IOException
- -
if an IO error occurred when trying to do the lookup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |