gistoolkit.server.mapservice.adminextender
Class AdminExtender

java.lang.Object
  extended bygistoolkit.server.mapservice.SimpleExtensionService
      extended bygistoolkit.server.mapservice.adminextender.AdminExtender
All Implemented Interfaces:
ExtensionService

public class AdminExtender
extends SimpleExtensionService

Allows the remote configuration of the server.


Field Summary
static java.lang.String ADMIN_EXTENDER_NODE
           
 
Fields inherited from class gistoolkit.server.mapservice.SimpleExtensionService
SIMPLE_EXTENSION_SERVICE_NODE
 
Constructor Summary
AdminExtender()
          Creates new AdminExtender
 
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.
static java.lang.String getChecked(int inValue, int inConstant)
          Utility method for determining if a choice item should be selected.
 void getImage(Request inRequest, Response inResponse)
          Retrieve an image from the images folder.
 java.lang.String getName()
          Called to identify this service.
 Node getNode()
          Called to get the configuration information for this service.
static java.lang.String getSelected(int inValue, int inConstant)
          Utility method for determining if a choice item should be selected.
 void handleAction(Request inRequest, Response inResponse)
          handle the update options request.
 void saveConfig(Request inRequest, Response inResponse)
          Show an error message to the user.
 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.
static void showErrorPage(Request inRequest, Response inResponse, java.lang.String inErrorString)
          Show an error message to the user.
static void showHeaderPage(Request inRequest, Response inResponse, java.lang.String inTitle)
          Show the heading page
 void showOptionsPage(Request inRequest, Response inResponse)
          Show the options page.
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
 

Field Detail

ADMIN_EXTENDER_NODE

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

AdminExtender

public AdminExtender()
Creates new AdminExtender

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.


getName

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

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

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

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

showOptionsPage

public void showOptionsPage(Request inRequest,
                            Response inResponse)
Show the options page.


handleAction

public void handleAction(Request inRequest,
                         Response inResponse)
handle the update options request.


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.


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 static void showErrorPage(Request inRequest,
                                 Response inResponse,
                                 java.lang.String inErrorString)
Show an error message to the user.


saveConfig

public void saveConfig(Request inRequest,
                       Response inResponse)
Show an error message to the user.


getSelected

public static java.lang.String getSelected(int inValue,
                                           int inConstant)
Utility method for determining if a choice item should be selected.


getChecked

public static java.lang.String getChecked(int inValue,
                                          int inConstant)
Utility method for determining if a choice item should be selected.