public class GetCapabilititiesRetriever extends Object
Constructor and Description |
---|
GetCapabilititiesRetriever() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 stringpublic static org.geotools.data.DataStore getDataStore(String getCapabilitiesUrl) throws IOException
getCapabilitiesUrl
- the GetCapabilities URLIOException
- 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 monitorIOException
- if reading the capabilities or features failedBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a