|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.OGCCapabilities
gov.nasa.worldwind.ogc.wms.WMSCapabilities
public class WMSCapabilities
| Field Summary | |
|---|---|
protected static QName |
ROOT_ELEMENT_NAME_1_1_1
|
protected static QName |
ROOT_ELEMENT_NAME_1_3_0
|
| Fields inherited from class gov.nasa.worldwind.ogc.OGCCapabilities |
|---|
CAPABILITY, capabilityInformation, eventReader, parserContext, SERVICE, serviceInformation, UPDATE_SEQUENCE, updateSequence, version, VERSION |
| Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser |
|---|
CHARACTERS_CONTENT, fields, namespaceURI, parent |
| Constructor Summary | |
|---|---|
WMSCapabilities(CapabilitiesRequest docSource)
|
|
WMSCapabilities(Object docSource)
Parses a WMS capabilities document. |
|
| Method Summary | |
|---|---|
XMLEventParser |
allocate(XMLEventParserContext ctx,
XMLEvent event)
Create a parser for a specified event. |
WMSCapabilityInformation |
getCapabilityInformation()
Returns the document's capability information. |
String |
getDefaultNamespaceURI()
Returns the default namespace URI. |
Set<String> |
getImageFormats()
|
WMSLayerCapabilities |
getLayerByName(String name)
|
Double[] |
getLayerExtremeElevations(String[] layerNames)
|
protected String |
getLayerLastUpdate(WMSLayerCapabilities layerCaps)
Checks the WMS layer capabilities for a LastUpdate entry, either an explicit element by that name or a layer keyword. |
Long |
getLayerLatestLastUpdateTime(String[] layerNames)
|
List<WMSLayerCapabilities> |
getNamedLayers()
Returns all named layers in the capabilities document. |
OGCRequestDescription |
getRequestDescription(String requestName)
|
String |
getRequestURL(String requestName,
String protocol,
String requestMethod)
|
boolean |
isRootElementName(QName candidate)
Determines whether a specified element name is the root element name of the schema. |
boolean |
layerHasCoordinateSystem(String[] layerNames,
String coordSys)
Indicates whether the layers corresponding to a specified list of layer names support a specified coordinate system. |
WMSCapabilities |
parse(Object... args)
Starts document parsing. |
protected String |
parseLastUpdate(String lastUpdateString)
Parse a LastUpdate string. |
static WMSCapabilities |
retrieve(URI uri)
|
String |
toString()
|
| Methods inherited from class gov.nasa.worldwind.ogc.OGCCapabilities |
|---|
createParserContext, createReader, doParseEventAttributes, doParseEventContent, getParserContext, getServiceInformation, getUpdateSequence, getVersion, setCapabilityInformation, setServiceInformation, setUpdateSequence, setVersion |
| Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser |
|---|
doAddCharacters, doAddEventAttribute, doAddEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, getRoot, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setField, setFields, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final QName ROOT_ELEMENT_NAME_1_1_1
protected static final QName ROOT_ELEMENT_NAME_1_3_0
| Constructor Detail |
|---|
public WMSCapabilities(CapabilitiesRequest docSource)
throws URISyntaxException,
MalformedURLException
URISyntaxException
MalformedURLExceptionpublic WMSCapabilities(Object docSource)
docSource - the XML source. May be a filename, file, stream or other type allowed by WWXML.openEventReader(Object).
IllegalArgumentException - if the document source is null.| Method Detail |
|---|
public XMLEventParser allocate(XMLEventParserContext ctx,
XMLEvent event)
OGCCapabilities
allocate in class OGCCapabilitiesctx - the current parser context.event - the event for which the parser is created. Only the event type is used; the new parser can operate
on any event of that type.
public WMSCapabilityInformation getCapabilityInformation()
OGCCapabilities
getCapabilityInformation in class OGCCapabilitiespublic String getDefaultNamespaceURI()
OGCCapabilities
getDefaultNamespaceURI in class OGCCapabilitiespublic Set<String> getImageFormats()
public WMSLayerCapabilities getLayerByName(String name)
public Double[] getLayerExtremeElevations(String[] layerNames)
protected String getLayerLastUpdate(WMSLayerCapabilities layerCaps)
layerCaps - The layer's capabilities taken from the server's capabilities document.
public Long getLayerLatestLastUpdateTime(String[] layerNames)
public List<WMSLayerCapabilities> getNamedLayers()
public OGCRequestDescription getRequestDescription(String requestName)
public String getRequestURL(String requestName,
String protocol,
String requestMethod)
public boolean isRootElementName(QName candidate)
OGCCapabilities
isRootElementName in class OGCCapabilitiescandidate - the name to test.
public boolean layerHasCoordinateSystem(String[] layerNames,
String coordSys)
layerNames - The names of the layers to check.coordSys - The coordinate system to search for, e.g., "EPSG:4326".
IllegalArgumentException - if the layer names array is null or empty or the specified coordinate system is
null or the empty string.
public WMSCapabilities parse(Object... args)
throws XMLStreamException
OGCCapabilities
parse in class OGCCapabilitiesargs - optional arguments to pass to parsers of sub-elements.
this if parsing is successful, otherwise null.
XMLStreamException - if an exception occurs while attempting to read the event stream.protected String parseLastUpdate(String lastUpdateString)
lastUpdateString - The string containing the LastUpdate string in the format "LastUpdate=yyyy-MM-dd'T'HH:mm:ssZ"
public static WMSCapabilities retrieve(URI uri)
throws Exception
Exceptionpublic String toString()
toString in class OGCCapabilities
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||