public class OGCCommunication extends Object implements OGCConstants
| Modifier and Type | Field and Description |
|---|---|
protected HashMap |
nameSpaces |
protected HashMap |
schemaLocations |
FEATURE_INFO_FORMAT, FORMAT_GIF, FORMAT_INIMAGE, FORMAT_JPEG, FORMAT_PNG, FORMAT_TIFF, METADATA_LAYER, METADATA_XML, NON_REQUIRED_PARAMS_GetCapabilities, NON_REQUIRED_PARAMS_GetFeatureInfo, NON_REQUIRED_PARAMS_GetLegendGraphic, NON_REQUIRED_PARAMS_GetMap, NONOGC_SERVICE_METADATA, NONOGC_SERVICE_PROXY, PARAMS_DescribeLayer, PARAMS_GetFeatureInfo, PARAMS_GetLegendGraphic, PARAMS_GetMap, PROXY_URL, REQUEST, REQUIRED_PARAMS_GetCapabilities, REQUIRED_PARAMS_METADATA, REQUIRED_PARAMS_PROXY, SERVICE, SUPPORTED_EXCEPTIONS, SUPPORTED_REQUESTS, SUPPORTED_VERSIONS, SUPPORTED_WFS_REQUESTS, SUPPORTED_WFS_VERSIONS, UPDATESEQUENCE, VERSION, WFS_CAPABILITIES, WFS_DESCRIBEFEATURETYPE, WFS_FEATURECOLLECTION, WFS_GETCAPABILITIES, WFS_GETFEATURE, WFS_GETFEATUREWITHLOCK, WFS_LOCKFEATURE, WFS_OBJECT_CAPABILITIES, WFS_OBJECT_GEOMETRYTYPE, WFS_OBJECT_SERVICEEXCEPTIONREPORT, WFS_OWS_EXCEPTION, WFS_PARAM_BBOX, WFS_PARAM_EXPIRY, WFS_PARAM_FEATUREID, WFS_PARAM_FEATUREVERSION, WFS_PARAM_FILTER, WFS_PARAM_GMLOBJECTID, WFS_PARAM_HANDLE, WFS_PARAM_INPUTFORMAT, WFS_PARAM_LOCKID, WFS_PARAM_MAXFEATURES, WFS_PARAM_OPERATION, WFS_PARAM_OUTPUTFORMAT, WFS_PARAM_PROPERTYNAME, WFS_PARAM_PROPTRAVXLINKDEPTH, WFS_PARAM_PROPTRAVXLINKEXPIRY, WFS_PARAM_RELEASEACTION, WFS_PARAM_RESULTTYPE, WFS_PARAM_SORTBY, WFS_PARAM_SRSNAME, WFS_PARAM_TRAVERSEXLINKDEPTH, WFS_PARAM_TRAVERSEXLINKEXPIRY, WFS_PARAM_TYPENAME, WFS_REQUEST_DescribeFeatureType, WFS_REQUEST_GetCapabilities, WFS_REQUEST_GetFeature, WFS_REQUEST_GetFeatureWithLock, WFS_REQUEST_LockFeature, WFS_REQUEST_Transaction, WFS_REQUIRED_PARAMS_DescribeFeatureType, WFS_REQUIRED_PARAMS_GetCapabilities, WFS_REQUIRED_PARAMS_GetFeature, WFS_REQUIRED_PARAMS_Transaction, WFS_SERVER_EXCEPTION, WFS_SERVICE_WFS, WFS_TRANSACTION, WFS_TRANSACTION_DELETE, WFS_TRANSACTION_INSERT, WFS_TRANSACTION_NATIVE, WFS_TRANSACTION_UPDATE, WFS_TRANSACTIONRESPONSE, WFS_VERSION_100, WFS_VERSION_110, WFS_VERSION_UNSPECIFIED, WMS_PARAM_BBOX, WMS_PARAM_BGCOLOR, WMS_PARAM_ELEVATION, WMS_PARAM_EXCEPTION_BLANK, WMS_PARAM_EXCEPTION_FORMAT, WMS_PARAM_EXCEPTION_INIMAGE, WMS_PARAM_EXCEPTION_XML, WMS_PARAM_EXCEPTIONS, WMS_PARAM_FEATURECOUNT, WMS_PARAM_FEATURETYPE, WMS_PARAM_FORMAT, WMS_PARAM_GML, WMS_PARAM_HEIGHT, WMS_PARAM_INFO_FORMAT, WMS_PARAM_LAYER, WMS_PARAM_LAYERS, WMS_PARAM_QUERY_LAYERS, WMS_PARAM_RULE, WMS_PARAM_SCALE, WMS_PARAM_SHORT_EXCEPTION_INIMAGE, WMS_PARAM_SLD, WMS_PARAM_SLD_BODY, WMS_PARAM_SRS, WMS_PARAM_STYLE, WMS_PARAM_STYLES, WMS_PARAM_TIME, WMS_PARAM_TRANSPARENT, WMS_PARAM_TRANSPARENT_TRUE, WMS_PARAM_WFS, WMS_PARAM_WIDTH, WMS_PARAM_WMS_GML, WMS_PARAM_WMS_HTML, WMS_PARAM_WMS_XML, WMS_PARAM_X, WMS_PARAM_XML, WMS_PARAM_Y, WMS_REQUEST, WMS_REQUEST_DescribeLayer, WMS_REQUEST_GetCapabilities, WMS_REQUEST_GetFeatureInfo, WMS_REQUEST_GetLegendGraphic, WMS_REQUEST_GetMap, WMS_REQUEST_GetStyles, WMS_REQUEST_PutStyles, WMS_SERVICE, WMS_SERVICE_WMS, WMS_VERSION, WMS_VERSION_110, WMS_VERSION_111| Constructor and Description |
|---|
OGCCommunication() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOpengisNamespaces()
Adds all namespaces needed for OpenGis
|
protected void |
addOpengisSchemaLocations()
Adds all Schemalocations needed for OpenGis
|
void |
addOrReplaceNameSpace(String prefix,
String nsUrl) |
protected void |
addOrReplaceSchemaLocation(String prefix,
String location) |
static String |
attachSp(String sp,
String l) |
static String |
attachSpNs(String sp,
String l,
String ns) |
static String |
buildFullLayerName(LayerSummary m) |
static String |
buildLayerNameWithoutNs(LayerSummary m) |
static String |
buildLayerNameWithoutSp(LayerSummary m) |
protected static String |
cleanPrefixInBody(String body,
String prefix,
String nsUrl,
String ns) |
protected String |
determineFeatureTypeName(String spAbbr,
String layer)
This method determines the featureTypeName based on the given layer and
prefix.
|
void |
findNameSpace(Node node) |
String |
fixNsPrefix(String ft) |
static String |
getLayerName(String ln) |
protected String |
getNameSpace(String param) |
NamespaceContext |
getNamespaceContext() |
String |
getNameSpacePrefix(String namespaceUrl) |
String |
getNameSpacePrefix(String namespaceUrl,
boolean create) |
protected HashMap |
getNameSpaces() |
protected String[] |
getNameSpacesArray() |
protected HashMap |
getSchemaLocations() |
protected String[] |
getSchemaLocationsArray() |
static String |
replaceIds(String originalId,
String sp,
String ns) |
protected void |
setNameSpaces(HashMap nameSpaces) |
protected void |
setSchemaLocations(HashMap schemaLocations) |
LayerSummary |
splitLayerInParts(String fullLayerName) |
LayerSummary |
splitLayerInParts(String fullLayerName,
boolean splitName,
String defaultSp,
String defaultNs) |
static LayerSummary |
splitLayerWithoutNsFix(String fullLayerName) |
static LayerSummary |
splitLayerWithoutNsFix(String fullLayerName,
boolean splitName)
parse full name of layer, use splitName boolean to parse layernames
known to not have a service provider in the name to prevend problems
with underscores in names.
|
static LayerSummary |
splitLayerWithoutNsFix(String fullLayerName,
boolean splitName,
String defaultSp,
String defaultNs) |
protected String |
stripNs(String key) |
static String[] |
toCodeAndName(String completeLayerName)
methode splitst lange layer naam volgens abbr_layer in een service provider
deel (layerCode genoemd) en een echte layer naam (layerName)
|
protected HashMap nameSpaces
protected HashMap schemaLocations
public final void findNameSpace(Node node)
protected void addOrReplaceSchemaLocation(String prefix, String location)
protected final void setNameSpaces(HashMap nameSpaces)
protected HashMap getNameSpaces()
protected HashMap getSchemaLocations()
protected final void setSchemaLocations(HashMap schemaLocations)
schemaLocations - the schemaLocations to setprotected String[] getNameSpacesArray()
protected String[] getSchemaLocationsArray()
protected final void addOpengisNamespaces()
protected final void addOpengisSchemaLocations()
public NamespaceContext getNamespaceContext()
public LayerSummary splitLayerInParts(String fullLayerName) throws Exception
Exceptionpublic static LayerSummary splitLayerWithoutNsFix(String fullLayerName) throws Exception
Exceptionpublic LayerSummary splitLayerInParts(String fullLayerName, boolean splitName, String defaultSp, String defaultNs) throws Exception
Exceptionpublic static LayerSummary splitLayerWithoutNsFix(String fullLayerName, boolean splitName) throws Exception
fullLayerName - splitName - try to split out service providerExceptionpublic static LayerSummary splitLayerWithoutNsFix(String fullLayerName, boolean splitName, String defaultSp, String defaultNs) throws Exception
Exceptionpublic static String[] toCodeAndName(String completeLayerName) throws Exception
completeLayerName - lange layer naamException - fout in format lange layer naampublic static String buildFullLayerName(LayerSummary m)
public static String buildLayerNameWithoutSp(LayerSummary m)
public static String buildLayerNameWithoutNs(LayerSummary m)
protected final String determineFeatureTypeName(String spAbbr, String layer)
prefix - layer - Copyright © 2022 B3Partners B.V.. All rights reserved.