public class OGCRegistry extends Object
This class allows to keep track of what classes to use to read/write different versions of service requests as well as other (mostly xml) messages and documents. This class obtains the default mappings from the OGCRegistry.xml file.
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_OWS_VERSION |
protected static Map<String,String> |
namespaces |
protected static Map<String,String> |
owsVersions |
protected static Map<String,String> |
readerClasses |
protected static Pattern |
versionNormalizePattern |
protected static Map<String,String> |
writerClasses |
static String |
XLINK |
Constructor and Description |
---|
OGCRegistry() |
Modifier and Type | Method and Description |
---|---|
static void |
addReaderClass(String type,
String subType,
String version,
String className)
Registers a reader class for given content type and version
|
static void |
addWriterClass(String type,
String subType,
String version,
String className)
Registers a writer class for given content type and version
|
static Object |
createReader(String type,
String version)
Instantiates a reader object for the specified content type and version
|
static Object |
createReader(String type,
String subType,
String version)
Instantiates a reader object for the specified content type, subtype and version
|
static Object |
createWriter(String type,
String version)
Instantiates a writer object for the specified content type and version
|
static Object |
createWriter(String type,
String subType,
String version)
Instantiates a writer object for the specified content type, subtype and version
|
static Map<String,String> |
getNamespaces()
Provides direct access to the namespaceBuilders hashtable
|
static String |
getNamespaceURI(String spec)
Computes namespace URI for the specified OGC spec
|
static String |
getNamespaceURI(String spec,
String version)
Computes namespace URI for the specified OGC spec and version
|
static String |
getOWSVersion(String spec,
String version)
Retrieves OWS version for given OGC spec
|
static void |
loadMaps(String xmlFileUrl,
boolean replace)
Loads an xml file containing mappings from types of readers/writers to class
|
static String |
normalizeVersionString(String version) |
public static final String XLINK
protected static final String DEFAULT_OWS_VERSION
protected static final Pattern versionNormalizePattern
public static String getNamespaceURI(String spec, String version)
spec
- version
- public static String getNamespaceURI(String spec)
spec
- public static String getOWSVersion(String spec, String version)
spec
- version
- public static Object createReader(String type, String subType, String version) throws IllegalStateException
type
- subType
- version
- IllegalStateException
public static Object createReader(String type, String version) throws IllegalStateException
type
- version
- IllegalStateException
public static Object createWriter(String type, String subType, String version) throws IllegalStateException
type
- subType
- version
- IllegalStateException
public static Object createWriter(String type, String version) throws IllegalStateException
type
- version
- IllegalStateException
public static void addReaderClass(String type, String subType, String version, String className) throws IllegalStateException
type
- subType
- version
- className
- IllegalStateException
public static void addWriterClass(String type, String subType, String version, String className) throws IllegalStateException
type
- subType
- version
- className
- IllegalStateException
public static void loadMaps(String xmlFileUrl, boolean replace)
xmlFileUrl
- replace
- Copyright © 2016 Sensia Software LLC. All rights reserved.