gistoolkit.server
Class Server

java.lang.Object
  extended bygistoolkit.server.Server

public class Server
extends java.lang.Object

Holds the collection of services.


Field Summary
static java.lang.String SERVER_TAG
          Constant used for finding configuration information in the Nodes.
static java.lang.String SERVICE_TAG
           
 
Constructor Summary
Server(ServerHolder inHolder)
          Creates new Service
 
Method Summary
 void addService(Service inService)
          Add a service to the list of currently available services.
 java.lang.String getFeatureInfo(MapRequest inMapRequest)
          gets the feature information for for this service.
 java.lang.String getHostName()
          Get the hostname.
 byte[] getMap(MapRequest inMapRequest)
          Get the Image from the service, and return it as the appropriate value.
 java.awt.image.BufferedImage getMapImage(MapRequest inMapRequest)
          Get the Image from the service, and return it as the appropriate value.
 Node getNode()
          Set up the configuration of this server.
 int getPortNumber()
          Get the port number.
 Service getService(java.lang.String inName)
          Return the service of the given name.
 Service[] getServices()
          Return the set of configured services.
 void init(java.lang.String inFileName)
          Read the configuration information.
 void removeService(Service inService)
          Remove the service from the list of currently available services.
 void saveConfig()
          Save the configuration of the server.
 void setHostName(java.lang.String inHostName)
          Set the hostname.
 void setNode(Node inNode)
          Set up the configuration of this server.
 void setPortNumber(int inNumber)
          Set the port number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_TAG

public static final java.lang.String SERVER_TAG
Constant used for finding configuration information in the Nodes.

See Also:
Constant Field Values

SERVICE_TAG

public static final java.lang.String SERVICE_TAG
See Also:
Constant Field Values
Constructor Detail

Server

public Server(ServerHolder inHolder)
Creates new Service

Method Detail

addService

public void addService(Service inService)
Add a service to the list of currently available services.


removeService

public void removeService(Service inService)
Remove the service from the list of currently available services.


getServices

public Service[] getServices()
Return the set of configured services.


getService

public Service getService(java.lang.String inName)
Return the service of the given name.


getHostName

public java.lang.String getHostName()
Get the hostname.


setHostName

public void setHostName(java.lang.String inHostName)
Set the hostname.


getPortNumber

public int getPortNumber()
Get the port number.


setPortNumber

public void setPortNumber(int inNumber)
Set the port number.


saveConfig

public void saveConfig()
                throws java.lang.Exception
Save the configuration of the server.

Throws:
java.lang.Exception

setNode

public void setNode(Node inNode)
             throws java.lang.Exception
Set up the configuration of this server.

Throws:
java.lang.Exception

getNode

public Node getNode()
             throws java.lang.Exception
Set up the configuration of this server.

Throws:
java.lang.Exception

init

public void init(java.lang.String inFileName)
          throws java.lang.Exception
Read the configuration information.

Throws:
java.lang.Exception

getMap

public byte[] getMap(MapRequest inMapRequest)
              throws java.lang.Exception
Get the Image from the service, and return it as the appropriate value.

Throws:
java.lang.Exception

getMapImage

public java.awt.image.BufferedImage getMapImage(MapRequest inMapRequest)
                                         throws java.lang.Exception
Get the Image from the service, and return it as the appropriate value.

Throws:
java.lang.Exception

getFeatureInfo

public java.lang.String getFeatureInfo(MapRequest inMapRequest)
                                throws java.lang.Exception
gets the feature information for for this service.

Throws:
java.lang.Exception