net.refractions.udig.catalog.ui
Class FileConnectionFactory

java.lang.Object
  extended by net.refractions.udig.catalog.ui.UDIGConnectionFactory
      extended by net.refractions.udig.catalog.ui.FileConnectionFactory

public class FileConnectionFactory
extends UDIGConnectionFactory


Field Summary
 
Fields inherited from class net.refractions.udig.catalog.ui.UDIGConnectionFactory
descriptor, XPID
 
Constructor Summary
FileConnectionFactory()
           
 
Method Summary
 boolean canProcess(java.lang.Object context)
          Determines if the connection factory is capable of providing some connection information based on the context object.
static java.net.URL checkedURL(java.net.URL url)
          Check that any trailing #layer is removed from the url
 java.util.Map<java.lang.String,java.io.Serializable> createConnectionParameters(java.lang.Object context)
          Get the connection parameters based on the provided context.
 java.net.URL createConnectionURL(java.lang.Object context)
          Get a connection url based on the provided context.
 
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

FileConnectionFactory

public FileConnectionFactory()
Method Detail

canProcess

public boolean canProcess(java.lang.Object context)
Description copied from class: UDIGConnectionFactory
Determines if the connection factory is capable of providing some connection information based on the context object.

Specified by:
canProcess in class UDIGConnectionFactory
Returns:
True if the info can be returned based on the context, otherwise false.

createConnectionParameters

public java.util.Map<java.lang.String,java.io.Serializable> createConnectionParameters(java.lang.Object context)
Description copied from class: UDIGConnectionFactory
Get the connection parameters based on the provided context.

Context is often data from a workbench selection, but does not have to be.

Specified by:
createConnectionParameters in class UDIGConnectionFactory
Returns:
Map of connection parameters, or null if no such parameters could be created.

createConnectionURL

public java.net.URL createConnectionURL(java.lang.Object context)
Description copied from class: UDIGConnectionFactory
Get a connection url based on the provided context.

Context is often data from a workbench selection, but does not have to be.

Specified by:
createConnectionURL in class UDIGConnectionFactory
Returns:
An url, or null if no such url can be created.

checkedURL

public static java.net.URL checkedURL(java.net.URL url)
Check that any trailing #layer is removed from the url