com.iver.cit.gvsig.fmap.drivers
Class RemoteServiceDriver

java.lang.Object
  extended bycom.iver.cit.gvsig.fmap.drivers.RemoteServiceDriver
Direct Known Subclasses:
FMapWCSDriver

public abstract class RemoteServiceDriver
extends java.lang.Object

Author:
jaume

Constructor Summary
RemoteServiceDriver()
           
 
Method Summary
abstract  void close()
          Closes the connection to the remote service.
abstract  void connect()
          Establishes the connection to the remote server.
 java.lang.String getHost()
          Obtains the host name.
 int getPort()
          Returns the port number it is being use for connect.
 java.lang.String getServiceName()
          Name of the remote service that we are accessing at.
 boolean isConnected()
          You're right.
 void setConnected(boolean connected)
          Sets the connected flag.
 void setHost(java.lang.String hostName)
          Sets the host name.
 void setPort(int portName)
          Sets the service connection port.
 void setServiceName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteServiceDriver

public RemoteServiceDriver()
Method Detail

setServiceName

public void setServiceName(java.lang.String name)

getServiceName

public java.lang.String getServiceName()
Name of the remote service that we are accessing at. (WCS, WMS, ...) Nombre del servicio remoto al que se accede (WCS, WMS, ...)

Returns:
String

connect

public abstract void connect()
                      throws java.io.IOException,
                             DriverException
Establishes the connection to the remote server. Establece la conexión con el servidor remoto.

Throws:
java.io.IOException
DriverException

isConnected

public boolean isConnected()
You're right. It tells you if you are connected or not. True si se la conexión está establecida, false si no.

Returns:
boolean

close

public abstract void close()
Closes the connection to the remote service. Most of the cases this is not needed since they are non-session-oriented protocols. Read the specific service notes for more information. Cierra la conexión con el servicio remoto. En la mayor parte de los casos no se necesita ya que suelen ser protocolos no orientados a sesión. Lea las notas específicas del servicio para más información.


getHost

public java.lang.String getHost()
Obtains the host name. Devuelve el nombre del host.


setHost

public void setHost(java.lang.String hostName)
Sets the host name. Establece el nombre del host.


getPort

public int getPort()
Returns the port number it is being use for connect. Devuelve el puerto al que se ha conectado.


setPort

public void setPort(int portName)
Sets the service connection port. Establece el puerto de conexión para el servicio.


setConnected

public void setConnected(boolean connected)
Sets the connected flag. Establece el flag de "conectado".

Parameters:
connected -