gistoolkit.server
Class Service

java.lang.Object
  extended bygistoolkit.server.Service

public class Service
extends java.lang.Object

Class to handle all of the service related information.


Constructor Summary
Service()
          Creates new Server
 
Method Summary
 void addLayerDefinition(LayerDefinition inLayerDefinition)
          Add a layer Definition to this service.
 java.awt.image.BufferedImage generateImage(MapRequest inMapRequest)
          Generates an image given the description parameters.
 LayerDefinition getLayerDefinition(java.lang.String inLayerDefinitionName)
          Return the layer definition with the requested name.
 LayerDefinition[] getLayerDefinitions()
          Return the complete list of layer definitions for this service.
 Node getNode()
          Set the configuration node.
 Projection getProjection()
          Get the projection to use with this layer.
 Record[] getRecords(MapRequest inMapRequest)
          Return the records identified by this map request.
 ScaleBar getScaleBar()
          get the scale bar to use with this layer.
 java.lang.String getServiceLink()
          Gets the Link to be used to get more information about this service.
 java.lang.String getServiceName()
          Get the name of the service.
 java.lang.String getServiceTitle()
          Get the Title of the service.
 java.lang.String getSRS()
          Return the Spatial Reference String for this service.
 void removeLayerDefinition(LayerDefinition inLayerDefinition)
          Remove a layer Definition from this service.
static void setFilter(FilterInfo[] inFilters, Layer inLayer)
          set the filter information for the layer.
 void setNode(Node inNode)
          Set the configuration node.
 void setProjection(Projection inProjection)
          Set the projection to use with this layer.
 void setScaleBar(ScaleBar inScaleBar)
          set the scale bar to use with this layer.
 void setServiceLink(java.lang.String inServiceLink)
          Set the Link to be used to get more information about this service.
 void setServiceName(java.lang.String inServiceName)
          Set the name of the service.
 void setServiceTitle(java.lang.String inServiceTitle)
          Set the Title of the service.
 void setSRS(java.lang.String inSRS)
          Set the spatial reference string for this layer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Service

public Service()
Creates new Server

Method Detail

setServiceName

public void setServiceName(java.lang.String inServiceName)
Set the name of the service.


getServiceName

public java.lang.String getServiceName()
Get the name of the service.


setServiceTitle

public void setServiceTitle(java.lang.String inServiceTitle)
Set the Title of the service.


getServiceTitle

public java.lang.String getServiceTitle()
Get the Title of the service.


setServiceLink

public void setServiceLink(java.lang.String inServiceLink)
Set the Link to be used to get more information about this service.


getServiceLink

public java.lang.String getServiceLink()
Gets the Link to be used to get more information about this service.


setSRS

public void setSRS(java.lang.String inSRS)
Set the spatial reference string for this layer.


getSRS

public java.lang.String getSRS()
Return the Spatial Reference String for this service.


setProjection

public void setProjection(Projection inProjection)
                   throws java.lang.Exception
Set the projection to use with this layer.

Throws:
java.lang.Exception

getProjection

public Projection getProjection()
Get the projection to use with this layer.


setScaleBar

public void setScaleBar(ScaleBar inScaleBar)
set the scale bar to use with this layer.


getScaleBar

public ScaleBar getScaleBar()
get the scale bar to use with this layer.


addLayerDefinition

public void addLayerDefinition(LayerDefinition inLayerDefinition)
                        throws java.lang.Exception
Add a layer Definition to this service.

Throws:
java.lang.Exception

removeLayerDefinition

public void removeLayerDefinition(LayerDefinition inLayerDefinition)
Remove a layer Definition from this service.


getLayerDefinitions

public LayerDefinition[] getLayerDefinitions()
Return the complete list of layer definitions for this service.


getLayerDefinition

public LayerDefinition getLayerDefinition(java.lang.String inLayerDefinitionName)
Return the layer definition with the requested name.


getNode

public Node getNode()
             throws java.lang.Exception
Set the configuration node.

Throws:
java.lang.Exception

setNode

public void setNode(Node inNode)
             throws java.lang.Exception
Set the configuration node.

Throws:
java.lang.Exception

generateImage

public java.awt.image.BufferedImage generateImage(MapRequest inMapRequest)
                                           throws java.lang.Exception
Generates an image given the description parameters.

Throws:
java.lang.Exception

setFilter

public static void setFilter(FilterInfo[] inFilters,
                             Layer inLayer)
set the filter information for the layer.


getRecords

public Record[] getRecords(MapRequest inMapRequest)
                    throws java.lang.Exception
Return the records identified by this map request.

Throws:
java.lang.Exception