gistoolkit.server.mapservice.htmlclientextender
Class HTMLClientExtender

java.lang.Object
  extended bygistoolkit.server.mapservice.SimpleExtensionService
      extended bygistoolkit.server.mapservice.htmlclientextender.HTMLClientExtender
All Implemented Interfaces:
ExtensionService

public class HTMLClientExtender
extends SimpleExtensionService

Extender to display the client applet to the user so they can browse the web service.


Field Summary
 
Fields inherited from class gistoolkit.server.mapservice.SimpleExtensionService
SIMPLE_EXTENSION_SERVICE_NODE
 
Constructor Summary
HTMLClientExtender()
          Creates new ClientExtender
 
Method Summary
 void doGet(Request inRequest, Response inResponse)
          Called when a request is sent to this service.
 java.lang.String getBannerPageImageFileName()
          Get the banner page image file name.
 void getImage(Request inRequest, Response inResponse)
          Retrieve an image from the images folder.
 java.lang.String[] getLayersStyles(Request inRequest, Response inResponse)
          Get the layers from the request.
 java.lang.String getName()
          Called to identify this service.
 Node getNode()
          Called to get the configuration information for this service.
 void setBannerPageImageFileName(java.lang.String inFileName)
          set the banner page image file name.
 void setNode(Node inNode)
          Called to set the configuration information for this service.
 void showErrorPage(Request inRequest, Response inResponse, java.lang.String inError)
          Show an error message.
static void showHeaderPage(Request inRequest, Response inResponse, java.lang.String inTitle)
          Show the heading page
 void showMapPage(Request inRequest, Response inResponse, java.lang.String inServiceName)
          Show the map page.
 void showSelectLayersPage(Request inRequest, Response inResponse, java.lang.String inServiceName)
          Show the selected Layers for this particular map server, and allow the users to turn them on or off.
 void showSelectServicePage(Request inRequest, Response inResponse)
          Allow the user to select a service..
static void showTailerPage(Request inRequest, Response inResponse)
          Show the trailer part of the page.
 
Methods inherited from class gistoolkit.server.mapservice.SimpleExtensionService
getFilters, getListFromString, getServer, parseBoundingBox, setFilter, setServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLClientExtender

public HTMLClientExtender()
Creates new ClientExtender

Method Detail

setBannerPageImageFileName

public void setBannerPageImageFileName(java.lang.String inFileName)
set the banner page image file name.


getBannerPageImageFileName

public java.lang.String getBannerPageImageFileName()
Get the banner page image file name.


setNode

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

Specified by:
setNode in interface ExtensionService
Overrides:
setNode in class SimpleExtensionService

getNode

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

Specified by:
getNode in interface ExtensionService
Overrides:
getNode in class SimpleExtensionService

getName

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

Specified by:
getName in interface ExtensionService
Specified by:
getName in class SimpleExtensionService

doGet

public 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
Specified by:
doGet in class SimpleExtensionService
Throws:
java.lang.Exception

showSelectServicePage

public void showSelectServicePage(Request inRequest,
                                  Response inResponse)
Allow the user to select a service..


getImage

public void getImage(Request inRequest,
                     Response inResponse)
              throws java.lang.Exception
Retrieve an image from the images folder.

Throws:
java.lang.Exception

showErrorPage

public void showErrorPage(Request inRequest,
                          Response inResponse,
                          java.lang.String inError)
Show an error message.


showHeaderPage

public static void showHeaderPage(Request inRequest,
                                  Response inResponse,
                                  java.lang.String inTitle)
Show the heading page


showTailerPage

public static void showTailerPage(Request inRequest,
                                  Response inResponse)
Show the trailer part of the page.


showSelectLayersPage

public void showSelectLayersPage(Request inRequest,
                                 Response inResponse,
                                 java.lang.String inServiceName)
Show the selected Layers for this particular map server, and allow the users to turn them on or off.


getLayersStyles

public java.lang.String[] getLayersStyles(Request inRequest,
                                          Response inResponse)
Get the layers from the request.


showMapPage

public void showMapPage(Request inRequest,
                        Response inResponse,
                        java.lang.String inServiceName)
Show the map page.