Package org.gvsig.catalog.drivers
Class AbstractDiscoveryServiceDriver
java.lang.Object
org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
- All Implemented Interfaces:
IDiscoveryServiceDriver
- Direct Known Subclasses:
AbstractCatalogServiceDriver
public abstract class AbstractDiscoveryServiceDriver
extends Object
implements IDiscoveryServiceDriver
- Author:
- Jorge Piera LLodrĂ¡ (jorge.piera@iver.es)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThere are protocols that can support other attributes to do the search.intorg.gvsig.utils.swing.jcomboServer.ServerDataIt return a message to write in the server connection framebooleanisProtocolSupported(URI uri) It have to prove if the specified protocol is supported.voidsetServerAnswerReady(String serverAnswerReady) It sets an error messagetoString()This message will be showed in the protocols comboMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gvsig.catalog.drivers.IDiscoveryServiceDriver
createQuery, getCapabilities, getServiceName
-
Constructor Details
-
AbstractDiscoveryServiceDriver
public AbstractDiscoveryServiceDriver()
-
-
Method Details
-
getServerAnswerReady
Description copied from interface:IDiscoveryServiceDriverIt return a message to write in the server connection frame- Specified by:
getServerAnswerReadyin interfaceIDiscoveryServiceDriver- Returns:
- It is/isn't the supported protocol
-
setServerAnswerReady
Description copied from interface:IDiscoveryServiceDriverIt sets an error message- Specified by:
setServerAnswerReadyin interfaceIDiscoveryServiceDriver
-
getDefaultPort
public int getDefaultPort()- Specified by:
getDefaultPortin interfaceIDiscoveryServiceDriver- Returns:
- the dafault port for an specific service
-
getDefaultSchema
- Specified by:
getDefaultSchemain interfaceIDiscoveryServiceDriver- Returns:
- the dafault schema for an specific service
-
isProtocolSupported
Description copied from interface:IDiscoveryServiceDriverIt have to prove if the specified protocol is supported.- Specified by:
isProtocolSupportedin interfaceIDiscoveryServiceDriver- Parameters:
uri- Server URI- Returns:
- true if is supported, false if it isn't supported
-
getAditionalSearchPanel
Description copied from interface:IDiscoveryServiceDriverThere are protocols that can support other attributes to do the search. They have to provide its own panel to do the search- Specified by:
getAditionalSearchPanelin interfaceIDiscoveryServiceDriver- Returns:
- JPanel with a list of properties.
-
toString
Description copied from interface:IDiscoveryServiceDriverThis message will be showed in the protocols combo- Specified by:
toStringin interfaceIDiscoveryServiceDriver- Overrides:
toStringin classObject- Returns:
- The message to show
-
getOneServer
public org.gvsig.utils.swing.jcomboServer.ServerData getOneServer()- Specified by:
getOneServerin interfaceIDiscoveryServiceDriver- Returns:
- if the protocol always works with the same server
-