gistoolkit.server.mapservice
Class OGCParser

java.lang.Object
  extended bygistoolkit.server.mapservice.OGCParser
Direct Known Subclasses:
OGC1_0_0Parser, OGC1_1_1Parser

public abstract class OGCParser
extends java.lang.Object

Super class for the parsers to contain common functionality.


Constructor Summary
OGCParser()
          Creates new OGCParser
 
Method Summary
abstract  void getCapabilitiesRequest(MapRequest inRequest, Response inResponse, Server inServer)
          get the capabilities request.
 void getFeatureInfo(MapRequest inRequest, Response inResponse, Server inServer)
          get the map request.
static FilterInfo[] getFilters(java.lang.String inFilterString)
          Parse the filter info objects out of the filter string.
protected static java.lang.String getFormat(java.lang.String inFormat)
          sets the format.
static java.lang.String[] getListFromString(java.lang.String inString)
          Returns a list from the given comma separated string.
 void getMapRequest(MapRequest inRequest, Response inResponse, Server inServer)
          get the map request.
abstract  MapRequest getMapRequest(Request inRequest)
          Create a map request with the given web input request.
 void getRequest(Request inRequest, Response inResponse, Server inServer)
          Executes the request with the given server.
abstract  java.lang.String getVersion()
           
static void setBoundingBox(MapRequest inRequest, java.lang.String inString)
          Sets the coordinates of the bounding box given the input string.
static void setSRS(MapRequest inRequest, java.lang.String inSRS)
          Sets the Spatial Reference system to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OGCParser

public OGCParser()
Creates new OGCParser

Method Detail

getVersion

public abstract java.lang.String getVersion()

getMapRequest

public abstract MapRequest getMapRequest(Request inRequest)
                                  throws java.lang.Exception
Create a map request with the given web input request.

Throws:
java.lang.Exception

getRequest

public void getRequest(Request inRequest,
                       Response inResponse,
                       Server inServer)
                throws java.lang.Exception
Executes the request with the given server.

Throws:
java.lang.Exception

getMapRequest

public void getMapRequest(MapRequest inRequest,
                          Response inResponse,
                          Server inServer)
                   throws java.lang.Exception
get the map request.

Throws:
java.lang.Exception

getCapabilitiesRequest

public abstract void getCapabilitiesRequest(MapRequest inRequest,
                                            Response inResponse,
                                            Server inServer)
                                     throws java.lang.Exception
get the capabilities request.

Throws:
java.lang.Exception

getFeatureInfo

public void getFeatureInfo(MapRequest inRequest,
                           Response inResponse,
                           Server inServer)
                    throws java.lang.Exception
get the map request.

Throws:
java.lang.Exception

getListFromString

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


setBoundingBox

public static void setBoundingBox(MapRequest inRequest,
                                  java.lang.String inString)
                           throws java.lang.Exception
Sets the coordinates of the bounding box given the input string.

Throws:
java.lang.Exception

setSRS

public static void setSRS(MapRequest inRequest,
                          java.lang.String inSRS)
                   throws java.lang.Exception
Sets the Spatial Reference system to use.

Throws:
java.lang.Exception

getFormat

protected static java.lang.String getFormat(java.lang.String inFormat)
sets the format.


getFilters

public static FilterInfo[] getFilters(java.lang.String inFilterString)
Parse the filter info objects out of the filter string.