gov.nasa.worldwind.ogc.wcs.wcs100.WCS100Capability Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2014 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind.ogc.wcs.wcs100;
import gov.nasa.worldwind.util.xml.AbstractXMLEventParser;
/**
* @author tag
* @version $Id$
*/
public class WCS100Capability extends AbstractXMLEventParser
{
public WCS100Capability(String namespaceURI)
{
super(namespaceURI);
}
public WCS100Request getRequest()
{
return (WCS100Request) this.getField("Request");
}
public WCS100Exception getException()
{
return (WCS100Exception) this.getField("Exception");
}
public String getGetOperationAddress(String opName)
{
WCS100Request request = this.getRequest();
WCS100RequestDescription description = request.getRequest(opName);
for (WCS100DCPType dcpType : description.getDCPTypes())
{
WCS100HTTP http = dcpType.getHTTP();
String address = http.getGetAddress();
if (address != null)
return address;
}
return null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy