|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.services.wms.capabilities.OGCWMSCapabilitiesFactory
org.deegree_impl.services.wms.capabilities.DeegreeWMSCapabilitiesFactory
Factory class for creating WMS capability classes from WMS capabilities XML documents that comply to the deegree WMS 1.1.1 specification.
Field Summary | |
private java.lang.String |
deegreeRoot
|
private java.net.URL |
defaultOnlineResource
|
private java.util.HashMap |
owsMap
|
Fields inherited from class org.deegree_impl.services.wms.capabilities.OGCWMSCapabilitiesFactory |
capabilities, collectedLayers, ogcNS, version, wfsNS, wmsNS, xlnNS |
Constructor Summary | |
DeegreeWMSCapabilitiesFactory()
|
Method Summary | |
protected LayerBoundingBox |
createBoundingBox(GM_Envelope llBBox,
java.lang.String crs)
creates a LayerBoundingBox with a CRS othe than EPSG:4326 instance from the passed LatLonBoundingBox and the desired CRS |
protected WMSCapabilities |
createCapabilities(org.w3c.dom.Element element)
Creates a WMSCapabilities-instance according to the contents of the DOM-subtree starting at the given 'WMT_MS_Capabilities'-Element. |
protected Capability |
createCapability(org.w3c.dom.Element element)
Creates a Capability-instance according to the contents of the DOM-subtree starting at the given 'Capability'-Element. |
protected DataSource |
createDataSource(org.w3c.dom.Element element,
java.lang.String dfName,
ScaleHint dfScaleHint)
Creates a DataSource-instance according to the contents of the DOM-subtree starting at the given 'DataSource'-Element. |
protected DeegreeParam |
createDeegreeParam(org.w3c.dom.Element element)
Creates a DeegreeParam-instance according to the contents of the DOM-subtree starting at the given 'DeegreeParam'-Element. |
private Style |
createDefaultStyle(java.lang.String layerName,
LegendURL[] lURL)
creates a default style for the submitted layer name. |
private GazetteerParam |
createGazetteerParameter(org.w3c.dom.Element element)
creates an object that describes the access to a gazetteer if one have been defined at the |
private Operation |
createGetCapabilities()
Creates the default 'GetCapabilities'-Operation to be used if it not defined in the capabilities-document. |
private Operation |
createGetFeatureInfo()
Creates the default 'GetFeatureInfo'-Operation to be used if it not defined in the capabilities-document. |
private Operation |
createGetMap()
Creates the default 'GetMap'-Operation to be used if it not defined. |
protected GM_Envelope |
createLatLonBoundingBox(LayerBoundingBox box)
creates a GM_Envelope with lat/lon coordinates from the passed LayerBoundingBox by transforming the corner coordinates to EPSG:4326. |
protected Layer |
createLayer(org.w3c.dom.Element element,
GM_Envelope bbox)
Creates a Layer-instance according to the contents of the DOM-subtree starting at the given 'Layer'-Element. |
protected LegendURL |
createLegendURL(org.w3c.dom.Element element,
java.lang.String styleName)
Creates a LegendURL-instance according to the contents of the DOM-subtree starting at the given 'LegendURL'-Element. |
protected java.net.URL |
createOnlineResource(org.w3c.dom.Element element)
Creates an URL-instance according to the contents of the DOM-subtree starting at the given 'OnlineResource'-Element. |
protected Operation |
createOperation(org.w3c.dom.Element element)
Creates an Operation-instance according to the contents of the DOM-subtree starting at the given Element. |
private Proxy |
createProxy(org.w3c.dom.Element proxyElement)
creates a Proxy instance from the passed Element encapsulating the proxy address to be used with the WMS |
protected Request |
createRequest(org.w3c.dom.Element element)
Creates a Request-instance according to the contents of the DOM-subtree starting at the given 'Request'-Element. |
protected Style |
createStyle(org.w3c.dom.Element element,
java.lang.String layerName)
Creates a Style-instance according to the contents of the DOM-subtree starting at the given 'Style'-Element. |
private java.util.HashMap |
toMap(java.lang.String request,
java.util.HashMap map)
puts a http-GET request to a HashMap |
Methods inherited from class org.deegree_impl.services.wms.capabilities.OGCWMSCapabilitiesFactory |
createAttribution, createAuthorityURL, createBoundingBox, createCapabilities, createCapabilities, createContactAddress, createContactInformation, createContactPersonPrimary, createDataURL, createDCPType, createDimension, createException, createExtent, createFeatureListURL, createIdentifier, createLatLonBoundingBox, createLayer, createLegendURL, createLogoURL, createMetadataURL, createScaleHint, createService, createStyle, createStyleSheetURL, createStyleURL, createUserDefinedSymbolization, createVendorSpecificCapabilities |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String deegreeRoot
private java.net.URL defaultOnlineResource
private java.util.HashMap owsMap
Constructor Detail |
public DeegreeWMSCapabilitiesFactory()
Method Detail |
protected WMSCapabilities createCapabilities(org.w3c.dom.Element element) throws XMLParsingException
createCapabilities
in class OGCWMSCapabilitiesFactory
element
- the 'WMT_MS_Capabilities'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprotected DeegreeParam createDeegreeParam(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'DeegreeParam'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate GazetteerParam createGazetteerParameter(org.w3c.dom.Element element) throws XMLParsingException
XMLParsingException
private Proxy createProxy(org.w3c.dom.Element proxyElement) throws XMLParsingException
XMLParsingException
protected Capability createCapability(org.w3c.dom.Element element) throws XMLParsingException
createCapability
in class OGCWMSCapabilitiesFactory
element
- the 'Capability'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprotected Request createRequest(org.w3c.dom.Element element) throws XMLParsingException
createRequest
in class OGCWMSCapabilitiesFactory
element
- the 'Request'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprotected Operation createOperation(org.w3c.dom.Element element) throws XMLParsingException
createOperation
in class OGCWMSCapabilitiesFactory
element
- the Element that describes an Operation
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprotected java.net.URL createOnlineResource(org.w3c.dom.Element element) throws XMLParsingException
createOnlineResource
in class OGCWMSCapabilitiesFactory
element
- the 'OnlineResource'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprotected Layer createLayer(org.w3c.dom.Element element, GM_Envelope bbox) throws XMLParsingException
element
- the 'Layer'-Elementbbox
- latlon bounding box of the parent layer
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprotected GM_Envelope createLatLonBoundingBox(LayerBoundingBox box) throws XMLParsingException
box
- LayerBoundingBox
XMLParsingException
protected LayerBoundingBox createBoundingBox(GM_Envelope llBBox, java.lang.String crs) throws XMLParsingException
llBBox
- latlon Bounding Boxcrs
- desired target CRS for the returned LayerBoundingBox
XMLParsingException
private Style createDefaultStyle(java.lang.String layerName, LegendURL[] lURL) throws XMLParsingException
layerName
- name of the layer to create a default style forlURL
- LegendURL to be used for style if not null
XMLParsingException
protected Style createStyle(org.w3c.dom.Element element, java.lang.String layerName) throws XMLParsingException
element
- the 'Style'-ElementlayerName
- name of the layer the style belongs to
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprotected DataSource createDataSource(org.w3c.dom.Element element, java.lang.String dfName, ScaleHint dfScaleHint) throws XMLParsingException
This is a deegree-specific parameter!
element
- the 'DataSource'-ElementdfName
- default name to be used if missing (same as name of layer)dfScaleHint
- default value to be used if missing
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate java.util.HashMap toMap(java.lang.String request, java.util.HashMap map)
protected LegendURL createLegendURL(org.w3c.dom.Element element, java.lang.String styleName) throws XMLParsingException
element
- the 'LegendURL'-ElementstyleName
- name of the currently processed style
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate Operation createGetMap()
private Operation createGetFeatureInfo() throws XMLParsingException
XMLParsingException
private Operation createGetCapabilities()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |