gistoolkit.server.mapservice
Class SimpleExtensionService

java.lang.Object
  extended bygistoolkit.server.mapservice.SimpleExtensionService
All Implemented Interfaces:
ExtensionService
Direct Known Subclasses:
AdminExtender, ClientExtender, HTMLClientExtender

public abstract class SimpleExtensionService
extends java.lang.Object
implements ExtensionService

Provides an easy way to write an extension service.


Field Summary
static java.lang.String SIMPLE_EXTENSION_SERVICE_NODE
           
 
Constructor Summary
SimpleExtensionService()
          Creates new SimpleExtensionService
 
Method Summary
abstract  void doGet(Request inRequest, Response inResponse)
          Called when a request is sent to this service.
static FilterInfo[] getFilters(java.lang.String inString)
          Parse any filter information from the string.
static java.lang.String[] getListFromString(java.lang.String inString)
          Returns a list from the given comma separated string.
abstract  java.lang.String getName()
          Called to identify this service.
 Node getNode()
          Called to get the configuration information for this service.
protected  Server getServer()
          Gets the reference to the server should it be needed for anything.
static Envelope parseBoundingBox(java.lang.String inBBOXString)
          Reads the Envelope from the string sent in, good for reading bounding boxes from a url parameter.
static void setFilter(FilterInfo[] inFilters, Layer inLayer)
          set the filter information for the layer.
 void setNode(Node inNode)
          Called to set the configuration information for this service.
 void setServer(Server inServer)
          Sets the servier within the extender.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIMPLE_EXTENSION_SERVICE_NODE

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

SimpleExtensionService

public SimpleExtensionService()
Creates new SimpleExtensionService

Method Detail

setServer

public void setServer(Server inServer)
Sets the servier within the extender. Called bafore the first request is sent to the extender.

Specified by:
setServer in interface ExtensionService

getServer

protected Server getServer()
Gets the reference to the server should it be needed for anything.


getName

public abstract java.lang.String getName()
Called to identify this service.

Specified by:
getName in interface ExtensionService

setNode

public void setNode(Node inNode)
Called to set the configuration information for this service.

Specified by:
setNode in interface ExtensionService

getNode

public Node getNode()
Called to get the configuration information for this service.

Specified by:
getNode in interface ExtensionService

parseBoundingBox

public static Envelope parseBoundingBox(java.lang.String inBBOXString)
                                 throws java.lang.Exception
Reads the Envelope from the string sent in, good for reading bounding boxes from a url parameter. Bounding boxes are of the form \"MinX,MinY,MaxX,MaxY\" as in BBOX=MinX,MinY,MaxX,MaxY.

Throws:
java.lang.Exception

doGet

public abstract void doGet(Request inRequest,
                           Response inResponse)
                    throws java.lang.Exception
Called when a request is sent to this service.

Specified by:
doGet in interface ExtensionService
Throws:
java.lang.Exception

getListFromString

public static java.lang.String[] getListFromString(java.lang.String inString)
Returns a list from the given comma separated string.


getFilters

public static FilterInfo[] getFilters(java.lang.String inString)
Parse any filter information from the string.


setFilter

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