|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.io.gml.ui.wfs.wizard.capabilities.GetCapabilititiesRetriever
public class GetCapabilititiesRetriever
This utility class is used to build and handle WFS GetCapabilities Requests and Responses.
Constructor Summary | |
---|---|
GetCapabilititiesRetriever()
|
Method Summary | |
---|---|
static URL |
buildURL(String host,
int selectionIndex)
Builds the URL to use for Getting Capabilities of a WFS. |
static int |
countOccurences(String original,
String value)
counts the number of occurences of a string declared in another string. |
static org.geotools.data.DataStore |
getDataStore(String getCapabilitiesUrl)
Get the data store for the given capabilities URL |
static List<org.opengis.feature.type.FeatureType> |
readFeatureTypes(String getCapabilitiesUrl,
org.eclipse.core.runtime.IProgressMonitor monitor)
Get the feature type from a capabilities document |
static boolean |
validate(String uri)
Load and validate the schema provided at the given URI string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GetCapabilititiesRetriever()
Method Detail |
---|
public static URL buildURL(String host, int selectionIndex) throws Exception
host
- the hostname of the WFS.selectionIndex
- 0 for HTTP GET, 1 and 2 for XML POST.
Exception
- if any parsing of the URL components fails.public static boolean validate(String uri)
uri
- the URI as a string where the schema can be found.
public static int countOccurences(String original, String value)
original
- the full stringvalue
- the search string
public static org.geotools.data.DataStore getDataStore(String getCapabilitiesUrl) throws IOException
getCapabilitiesUrl
- the GetCapabilities URL
IOException
- if reading the capabilities failedpublic static List<org.opengis.feature.type.FeatureType> readFeatureTypes(String getCapabilitiesUrl, org.eclipse.core.runtime.IProgressMonitor monitor) throws IOException
getCapabilitiesUrl
- the GetCapabilities URLmonitor
- the progress monitor
IOException
- if reading the capabilities or features failed
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |