|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.services.wms.protocol.WMSProtocolFactory
Factory that builds the different types of WMS-Requests & Responses.
Constructor Summary | |
WMSProtocolFactory()
|
Method Summary | |
static WMSGetCapabilitiesRequest |
createGetCapabilitiesRequest(java.lang.String id,
java.util.HashMap paramMap)
creates an WMS GetCapabilities Request |
static WMSGetCapabilitiesResponse |
createGetCapabilitiesResponse(OGCWebServiceRequest request,
OGCWebServiceException exception,
WMSCapabilities capabilities)
creates an instance of a WMSGetCapabilitiesResponse object |
static WMSGetFeatureInfoRequest |
createGetFeatureInfoRequest(java.lang.String id,
java.util.HashMap model)
creates a WMSFeatureInfoRequest from a HashMap that contains the request parameters as key-value-pairs. |
static WMSGetFeatureInfoRequest |
createGetFeatureInfoRequest(java.lang.String version,
java.lang.String id,
java.lang.String[] queryLayers,
WMSGetMapRequest getMapRequestCopy,
java.lang.String infoFormat,
int featureCount,
java.awt.Point clickPoint,
java.lang.String exceptions,
StyledLayerDescriptor sld,
java.util.HashMap vendorSpecificParameter)
creates a WMSFeatureInfoRequest from the request parameters. |
static WMSGetFeatureInfoResponse |
createGetFeatureInfoResponse(OGCWebServiceRequest request,
OGCWebServiceException exception,
java.lang.String featureInfo)
creates a WFSGetFeatureInfoResponse object |
static WMSGetLegendGraphicRequest |
createGetLegendGraphicRequest(java.lang.String id,
java.util.Map model)
|
static WMSGetLegendGraphicRequest |
createGetLegendGraphicRequest(java.lang.String id,
java.lang.String request)
|
static WMSGetLegendGraphicRequest |
createGetLegendGraphicRequest(java.lang.String id,
java.lang.String version,
java.lang.String layer,
java.lang.String style,
java.lang.String featureType,
java.lang.String rule,
double scale,
java.net.URL sld,
java.lang.String sld_body,
java.lang.String format,
int width,
int height,
java.lang.String exceptions,
java.util.Map vendorSpecificParameter)
|
static WMSGetLegendGraphicResponse |
createGetLegendGraphicResponse(OGCWebServiceRequest request,
org.w3c.dom.Document exception)
|
static WMSGetLegendGraphicResponse |
createGetLegendGraphicResponse(OGCWebServiceRequest request,
java.lang.Object legendGraphic)
|
static WMSGetMapRequest |
createGetMapRequest(java.lang.String id,
org.w3c.dom.Element root)
creates a WMSGetMapRequest from its XML representation as defined in SLD 1.0.0 specification |
static WMSGetMapRequest |
createGetMapRequest(java.lang.String id,
java.util.Map model)
creates a WMSGetMapRequest from a HashMap that contains the request parameters as key-value-pairs. |
static WMSGetMapRequest |
createGetMapRequest(java.lang.String id,
java.lang.String request)
creates a WMSGetMapRequest from a HashMap that contains the request parameters as key-value-pairs. |
static WMSGetMapRequest |
createGetMapRequest(java.lang.String version,
java.lang.String id,
WMSGetMapRequest.Layer[] layers,
double[] elevation,
java.lang.String[] sampleDimension,
java.lang.String format,
int width,
int height,
java.lang.String srs,
GM_Envelope boundingBox,
boolean transparency,
java.awt.Color bGColor,
java.lang.String exceptions,
java.lang.String time,
java.net.URL sldURL,
StyledLayerDescriptor sld,
java.util.HashMap vendorSpecificParameter)
creates a WTSGetViewRequest from a set of parameters and builds up the complete SLD. |
static WMSGetMapResponse |
createGetMapResponse(OGCWebServiceRequest request,
OGCWebServiceException exception,
java.lang.Object response)
creates a WFSGetMapResponse object |
static WMSGetScaleBarRequest |
createGetScaleBarRequest(java.lang.String id,
java.util.HashMap model)
|
static WMSGetScaleBarResponse |
createGetScaleBarResponse(WMSGetScaleBarRequest request,
java.lang.Object response)
|
static WMSGetScaleBarResponse |
createGetScaleBarResponse(WMSGetScaleBarRequest request,
OGCWebServiceException e)
|
static OGCWebServiceRequest |
createRequest(java.lang.String id,
java.util.HashMap paramMap)
creates a request |
private static GM_Envelope |
getBoundingBoxFromGazetteer(java.lang.String location,
java.lang.String locationType,
double radius,
GazetteerParam gazetteer)
returns the bounding box of the submitted location. |
private static java.util.Map |
toMap(java.lang.String request)
puts a http-GET request to a HashMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WMSProtocolFactory()
Method Detail |
public static OGCWebServiceRequest createRequest(java.lang.String id, java.util.HashMap paramMap) throws InconsistentRequestException, XMLParsingException, java.net.MalformedURLException
id
- an unique id of the requestparamMap
- the request parameters
InconsistentRequestException
- if the Capabilities-document and the
including configuration was invalid / inconsistent.
XMLParsingException
java.net.MalformedURLException
public static WMSGetCapabilitiesRequest createGetCapabilitiesRequest(java.lang.String id, java.util.HashMap paramMap) throws InconsistentRequestException
id
- an unique ID of the requestparamMap
- the parameters of the request
InconsistentRequestException
- if the request is inconsistentpublic static WMSGetCapabilitiesResponse createGetCapabilitiesResponse(OGCWebServiceRequest request, OGCWebServiceException exception, WMSCapabilities capabilities)
request
- request that lead to the responseexception
- exception if one occueredcapabilities
- WMS capabilities
public static WMSGetMapRequest createGetMapRequest(java.lang.String id, org.w3c.dom.Element root) throws InconsistentRequestException, XMLParsingException, java.net.MalformedURLException
id
- an unique id of the requestroot
-
InconsistentRequestException
XMLParsingException
java.net.MalformedURLException
public static WMSGetMapRequest createGetMapRequest(java.lang.String id, java.lang.String request) throws InconsistentRequestException, XMLParsingException, java.net.MalformedURLException
id
- an unique id of the requestrequest
-
InconsistentRequestException
XMLParsingException
java.net.MalformedURLException
public static WMSGetMapRequest createGetMapRequest(java.lang.String id, java.util.Map model) throws InconsistentRequestException, XMLParsingException, java.net.MalformedURLException
id
- an unique id of the requestmodel
- HashMap containing the request parameters
InconsistentRequestException
XMLParsingException
java.net.MalformedURLException
private static GM_Envelope getBoundingBoxFromGazetteer(java.lang.String location, java.lang.String locationType, double radius, GazetteerParam gazetteer) throws InconsistentRequestException
location
- location from which to get the boundingboxlocationType
- type of the location. all locationTypes will be find
if not set.radius
- radius to use to create the boundingbox if location represents
a point geometry
InconsistentRequestException
public static WMSGetMapRequest createGetMapRequest(java.lang.String version, java.lang.String id, WMSGetMapRequest.Layer[] layers, double[] elevation, java.lang.String[] sampleDimension, java.lang.String format, int width, int height, java.lang.String srs, GM_Envelope boundingBox, boolean transparency, java.awt.Color bGColor, java.lang.String exceptions, java.lang.String time, java.net.URL sldURL, StyledLayerDescriptor sld, java.util.HashMap vendorSpecificParameter) throws XMLParsingException
version
- Request version.layers
- list of one or more map layers. Optional if SLD parameter is present. Contains
list of one rendering style per requested layer. Optional if SLD parameter is
present.elevation
- Elevation of layer desired.sampleDimension
- Value of other dimensions as appropriate.format
- Output format of map.width
- Width in pixels of map picture.height
- Height in pixels of map picture.srs
- the requested Spatial Reference System.boundingBox
- Bounding box corners (lower left, upper right) in SRS units.transparency
- Background transparency of map.bGColor
- Hexadecimal red-green-blue color value for the background color.exceptions
- The format in which exceptions are to be reported by the WMS.time
- Time value of layer desiredsld
- Styled Layer Descriptorid
- an unique ID of the requestvendorSpecificParameter
- Vendor Specific Parameter
XMLParsingException
public static WMSGetMapResponse createGetMapResponse(OGCWebServiceRequest request, OGCWebServiceException exception, java.lang.Object response)
request
- a copy of the request that leads to this responseexception
- a describtion of an excetion (only if raised)response
- the response to the requestpublic static WMSGetFeatureInfoRequest createGetFeatureInfoRequest(java.lang.String id, java.util.HashMap model) throws InconsistentRequestException
id
- an unique id of the requestmodel
- HashMap containing the request parameters
InconsistentRequestException
public static WMSGetFeatureInfoRequest createGetFeatureInfoRequest(java.lang.String version, java.lang.String id, java.lang.String[] queryLayers, WMSGetMapRequest getMapRequestCopy, java.lang.String infoFormat, int featureCount, java.awt.Point clickPoint, java.lang.String exceptions, StyledLayerDescriptor sld, java.util.HashMap vendorSpecificParameter)
version
- VERSION=version (R): Request version.queryLayers
- QUERY_LAYERS=layer_list (R): Comma-separated list of
one or more layers to be queried.getMapRequestCopy
- <map_request_copy> (R): Partial copy of the
Map request parameters that generated the map for which
information is desired.infoFormat
- INFO_FORMAT=output_format (O): Return format of feature
information (MIME type).featureCount
- FEATURE_COUNT=number (O): Number of features about
which to return information (default=1).clickPoint
- X=pixel_column (R): X coordinate in pixels of feature
(measured from upper left corner=0) Y=pixel_row (R): Y
coordinate in pixels of feature (measured from upper left
corner=0)exceptions
- EXCEPTIONS=exception_format (O): The format in which
exceptions are to be reported by the WMS
(default=application/vnd.ogc.se_xml).sld
- StyledLayerDescriptorvendorSpecificParameter
- Vendor-specific parameters (O): Optional
experimental parameters.
public static WMSGetFeatureInfoResponse createGetFeatureInfoResponse(OGCWebServiceRequest request, OGCWebServiceException exception, java.lang.String featureInfo)
request
- a copy of the request that leads to this responseexception
- a describtion of an excetion (only if raised)featureInfo
- public static WMSGetScaleBarRequest createGetScaleBarRequest(java.lang.String id, java.util.HashMap model) throws InconsistentRequestException
id
- model
-
InconsistentRequestException
public static WMSGetScaleBarResponse createGetScaleBarResponse(WMSGetScaleBarRequest request, OGCWebServiceException e)
request
- e
-
public static WMSGetScaleBarResponse createGetScaleBarResponse(WMSGetScaleBarRequest request, java.lang.Object response)
request
- response
-
public static WMSGetLegendGraphicRequest createGetLegendGraphicRequest(java.lang.String id, java.lang.String request) throws InconsistentRequestException
id
- ID of the requestrequest
- string representation of the request as received from a
client
InconsistentRequestException
public static WMSGetLegendGraphicRequest createGetLegendGraphicRequest(java.lang.String id, java.util.Map model) throws InconsistentRequestException
id
- ID of the requestmodel
- key-value-pair representation of the request
InconsistentRequestException
public static WMSGetLegendGraphicRequest createGetLegendGraphicRequest(java.lang.String id, java.lang.String version, java.lang.String layer, java.lang.String style, java.lang.String featureType, java.lang.String rule, double scale, java.net.URL sld, java.lang.String sld_body, java.lang.String format, int width, int height, java.lang.String exceptions, java.util.Map vendorSpecificParameter)
id
- unique id of the requestversion
- version of the target WMSlayer
- name of the layer the style is assigned tostyle
- name of the style (optional; if not present -> 'default')featureType
- name of the feature type a legend element shall be
created for --> SLDrule
- name of the rule a legend element shall be
created for --> SLDscale
- scale for which a rule must be valid --> SLDsld
- refernce to a SLD documentsld_body
- SLD documentformat
- image format of the returned legend elementwidth
- height
- exceptions
- format of the excpetion if something went wrongvendorSpecificParameter
-
public static WMSGetLegendGraphicResponse createGetLegendGraphicResponse(OGCWebServiceRequest request, java.lang.Object legendGraphic)
request
- legendGraphic
-
public static WMSGetLegendGraphicResponse createGetLegendGraphicResponse(OGCWebServiceRequest request, org.w3c.dom.Document exception)
request
- exception
-
private static java.util.Map toMap(java.lang.String request)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |