|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.catalog.ui.UDIGConnectionFactory
net.refractions.udig.catalog.ui.AbstractUDIGConnectionFactory
public abstract class AbstractUDIGConnectionFactory
Adds some generic checks to attempt to process URLs and Map context objects. Essentially queries the ServiceExtension for the Service in order to determine whether it can handle the context objects.
The context objects this will process are:
Field Summary |
---|
Fields inherited from class net.refractions.udig.catalog.ui.UDIGConnectionFactory |
---|
descriptor, XPID |
Constructor Summary | |
---|---|
AbstractUDIGConnectionFactory()
|
Method Summary | |
---|---|
boolean |
canProcess(java.lang.Object context)
Will use the service extension to try and determine if the context is useable. |
java.util.Map<java.lang.String,java.io.Serializable> |
createConnectionParameters(java.lang.Object context)
Returns the parameters using the Service extension if the context is a URL or String (provided that Service extension claims to be able to process them). |
java.net.URL |
createConnectionURL(java.lang.Object context)
Returns the URL if the context is a URL or can be made a URL from a String(provided that Service extension claims to be able to process them). |
protected abstract java.util.Map<java.lang.String,java.io.Serializable> |
doCreateConnectionParameters(java.lang.Object context)
Called if createConnectionParameters(Object) fails to return a value |
protected abstract java.net.URL |
doCreateConnectionURL(java.lang.Object context)
Called if createConnectionURL(Object) fails to return a value |
protected abstract boolean |
doOtherChecks(java.lang.Object context)
If contexts other than URLs, Maps, and Strings (or if Strings need to be otherwise processed) then subclass must perform those checks here. |
protected abstract ServiceExtension2 |
getServiceExtension()
Returns the Service extension for the extension in question. |
Methods inherited from class net.refractions.udig.catalog.ui.UDIGConnectionFactory |
---|
createConnectionPage, setDescriptor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractUDIGConnectionFactory()
Method Detail |
---|
public final boolean canProcess(java.lang.Object context)
Will try to process URLs, Maps and Strings. String processing is limited to trying to create a URL from the string and then processing it with the ServiceExtension
CatalogPlugin#locateURL(Object)
is used to attempt to create a URL from the context object
doOtherChecks(Object)
will be called if the context is not a URL or a Map or if the String cannot be processed as a URL.
canProcess
in class UDIGConnectionFactory
context
- The object to be "processed" or "adapted" into connection
information.
protected abstract boolean doOtherChecks(java.lang.Object context)
context
- The object to be "processed" or "adapted" into connection
information.
protected abstract ServiceExtension2 getServiceExtension()
public final java.util.Map<java.lang.String,java.io.Serializable> createConnectionParameters(java.lang.Object context)
doCreateConnectionParameters(Object)
will be called.
createConnectionParameters
in class UDIGConnectionFactory
protected abstract java.util.Map<java.lang.String,java.io.Serializable> doCreateConnectionParameters(java.lang.Object context)
createConnectionParameters(Object)
fails to return a value
public final java.net.URL createConnectionURL(java.lang.Object context)
doCreateConnectionURL(Object)
will be called.
createConnectionURL
in class UDIGConnectionFactory
protected abstract java.net.URL doCreateConnectionURL(java.lang.Object context)
createConnectionURL(Object)
fails to return a value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |