net.refractions.udig.catalog.cgdi
Class CGDICatalog

java.lang.Object
  extended by ICatalog
      extended by net.refractions.udig.catalog.cgdi.CGDICatalog

public class CGDICatalog
extends ICatalog

Author:
dzwiers This catalog is built to connect to a single server instance. To the best of my knowledge, the server is not based on a specification. The server can be found at 'http://geodiscover.cgdi.ca/ceonetWeb/biz' and a web interface at 'http://geodiscover.cgdi.ca/ceonetWeb/doc?dispatchServlet=/biz&servletName=biz Servlet&service=searchForService'.

Field Summary
static int ALL_SERVICES
          ALL_SERVICES field
static int UNDEFINED
          UNDEFINED field
static int WEB_COVERAGE_SERVICES
          WEB_COVERAGE_SERVICES field
static int WEB_FEATURE_SERVICES
          WEB_FEATURE_SERVICES field
static int WEB_MAP_SERVICES
          WEB_MAP_SERVICES field
static int WEB_REGISTRY_SERVICES
          WEB_REGISTRY_SERVICES field
 
Constructor Summary
CGDICatalog()
          Construct CGDICatalog.
CGDICatalog(java.net.URL url)
          Construct CGDICatalog.
 
Method Summary
 void add(IService entry)
           
 void addCatalogListener(IResolveChangeListener listener)
           
 void addListener(IResolveChangeListener listener)
          TODO summary sentence for addListener ...
<T> boolean
canResolve(java.lang.Class<T> adaptee)
           
 IGeoResource createTemporaryResource(java.lang.Object descriptor)
           
 void dispose(IProgressMonitor monitor)
           
 java.util.List<IResolve> find(java.net.URL id, IProgressMonitor monitor)
          Returns the empty list ...
 java.util.List<IService> findService(java.net.URL query)
           
<T extends IResolve>
T
getById(java.lang.Class<T> type, java.net.URL id, IProgressMonitor monitor)
           
 java.net.URL getIdentifier()
           
 java.lang.Throwable getMessage()
           
 int getServiceTypes()
           
 Status getStatus()
           
 java.lang.String[] getTemporaryDescriptorClasses()
           
 java.util.List<IResolve> members(IProgressMonitor monitor)
          Calls search ...
 void remove(IService entry)
           
 void removeCatalogListener(IResolveChangeListener listener)
           
 void removeListener(IResolveChangeListener listener)
          TODO summary sentence for removeListener ...
 void replace(java.net.URL id, IService entry)
           
<T> T
resolve(java.lang.Class<T> adaptee, IProgressMonitor monitor)
           
 java.util.List<IResolve> search(java.lang.String pattern, Envelope bbox, IProgressMonitor monitor)
           
 void setServiceTypes(int serviceTypes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
UNDEFINED field

See Also:
Constant Field Values

WEB_FEATURE_SERVICES

public static final int WEB_FEATURE_SERVICES
WEB_FEATURE_SERVICES field

See Also:
Constant Field Values

WEB_MAP_SERVICES

public static final int WEB_MAP_SERVICES
WEB_MAP_SERVICES field

See Also:
Constant Field Values

WEB_COVERAGE_SERVICES

public static final int WEB_COVERAGE_SERVICES
WEB_COVERAGE_SERVICES field

See Also:
Constant Field Values

WEB_REGISTRY_SERVICES

public static final int WEB_REGISTRY_SERVICES
WEB_REGISTRY_SERVICES field

See Also:
Constant Field Values

ALL_SERVICES

public static final int ALL_SERVICES
ALL_SERVICES field

See Also:
Constant Field Values
Constructor Detail

CGDICatalog

public CGDICatalog()
Construct CGDICatalog.


CGDICatalog

public CGDICatalog(java.net.URL url)
Construct CGDICatalog.

Parameters:
url -
Method Detail

addCatalogListener

public void addCatalogListener(IResolveChangeListener listener)
Parameters:
listener -

removeCatalogListener

public void removeCatalogListener(IResolveChangeListener listener)
Parameters:
listener -

addListener

public void addListener(IResolveChangeListener listener)
TODO summary sentence for addListener ...

Parameters:
listener -

removeListener

public void removeListener(IResolveChangeListener listener)
TODO summary sentence for removeListener ...

Parameters:
listener -

add

public void add(IService entry)
         throws java.lang.UnsupportedOperationException
Throws:
java.lang.UnsupportedOperationException
See Also:
net.refractions.udig.catalog.ICatalog#add(net.refractions.udig.catalog.IService)

remove

public void remove(IService entry)
            throws java.lang.UnsupportedOperationException
Throws:
java.lang.UnsupportedOperationException
See Also:
net.refractions.udig.catalog.ICatalog#remove(net.refractions.udig.catalog.IService)

replace

public void replace(java.net.URL id,
                    IService entry)
             throws java.lang.UnsupportedOperationException
Throws:
java.lang.UnsupportedOperationException
See Also:
net.refractions.udig.catalog.ICatalog#replace(java.net.URL, net.refractions.udig.catalog.IService)

members

public java.util.List<IResolve> members(IProgressMonitor monitor)
                                 throws java.io.IOException
Calls search ... this server only returns services directly

Throws:
java.io.IOException

find

public java.util.List<IResolve> find(java.net.URL id,
                                     IProgressMonitor monitor)
Returns the empty list ... not georesources here


search

public java.util.List<IResolve> search(java.lang.String pattern,
                                       Envelope bbox,
                                       IProgressMonitor monitor)
                                throws java.io.IOException
Throws:
java.io.IOException

getIdentifier

public java.net.URL getIdentifier()
Returns:
x
See Also:
net.refractions.udig.catalog.ICatalogInfo#getSource()

getServiceTypes

public int getServiceTypes()
Returns:
Returns the serviceTypes.

setServiceTypes

public void setServiceTypes(int serviceTypes)
Parameters:
serviceTypes - The serviceTypes to set.

resolve

public <T> T resolve(java.lang.Class<T> adaptee,
                     IProgressMonitor monitor)
          throws java.io.IOException
Throws:
java.io.IOException

canResolve

public <T> boolean canResolve(java.lang.Class<T> adaptee)

getStatus

public Status getStatus()

getMessage

public java.lang.Throwable getMessage()

findService

public java.util.List<IService> findService(java.net.URL query)

getById

public <T extends IResolve> T getById(java.lang.Class<T> type,
                                      java.net.URL id,
                                      IProgressMonitor monitor)

createTemporaryResource

public IGeoResource createTemporaryResource(java.lang.Object descriptor)
                                     throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getTemporaryDescriptorClasses

public java.lang.String[] getTemporaryDescriptorClasses()

dispose

public void dispose(IProgressMonitor monitor)