public class OGCRequest extends OGCCommunication implements OGCConstants
| Modifier and Type | Field and Description |
|---|---|
protected String |
abbr |
protected WFS_Capabilities |
capabilities |
protected String |
finalVersion |
protected HashMap |
getFeatureFilterMap |
protected HashMap |
getFeaturePropertyNameListMap |
protected String |
httpHost |
protected String |
httpMethod |
protected ArrayList |
layers |
protected static org.apache.commons.logging.Log |
log |
static List |
NAMESPACES_NOT_IN_URL |
protected HashMap |
parameters |
protected String |
password |
static HashMap |
scaleCalibrations |
protected String |
serviceProviderName |
protected HashMap |
transactionList |
protected String |
username |
nameSpaces, schemaLocationsFEATURE_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 |
|---|
OGCRequest() |
OGCRequest(Element rootElement,
String url)
Constructor
For HTTP POST
|
OGCRequest(String url)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addElementToTransactionList(Object element,
String spAbbr) |
void |
addGetFeatureFilterMap(String key,
Object value) |
void |
addGetFeaturePropertyNameListMap(String key,
Object value) |
String |
addOrReplaceParameter(String param,
String v)
Adds or replaces a param with a value
|
int |
addOrReplaceParameters(String params)
Adds or replaces a string with params
|
double |
calcScale() |
double |
calcScale(double scaleCalibration)
Deze methode berekent de schaal waarbij de diagonaal van de viewport in
pixels wordt omgerekend naar kaarteenheden.
|
void |
checkRequestURL() |
protected void |
checkRequestURL(List requiredParams,
String request) |
Object |
clone() |
boolean |
containsParameter(String param) |
static String |
findPersonalCode(String httpHost) |
static String |
findServiceProviderName(String httpHost) |
static String[] |
findServiceProviderNameAndPersonalCode(String httpHost)
uitzoeken of de serviceprovider in de url zit, geldige patronen zijn:
http://server/services/sp/pcode
http://server/services/sp/pcode/
http://server/services/pcode
http://server/services/pcode/
ongeldig zijn:
http://server/services/sp/
http://server/services/sp
sp wordt als code geinterpreteerd.
|
String |
fixHttpHost(String httpHost) |
String |
getAbbr() |
WFS_Capabilities |
getCapabilities() |
String |
getFinalVersion() |
String |
getGetFeatureFilter(String key) |
HashMap |
getGetFeatureFilterMap() |
String |
getGetFeaturePropertyNameList(String key) |
HashMap |
getGetFeaturePropertyNameListMap() |
String |
getHttpHost() |
String |
getHttpMethod() |
ArrayList |
getLayers() |
HashMap |
getNonOGCParameters() |
String |
getParameter(String param)
Return the value of the given param
|
protected HashMap |
getParameters() |
String[] |
getParametersArray() |
String |
getPassword() |
String |
getPersonalCode() |
String |
getServiceProviderName() |
List |
getTransactionElementList(String spAbbr) |
HashMap |
getTransactionMap() |
String[] |
getTransactionSpList() |
String |
getUrl()
Gets the full url with the params
|
String |
getUrl(String host) |
String |
getUrlWithNonOGCparams() |
String |
getUsername() |
String |
getXMLBody() |
void |
removeAllWFSParameters()
Removes all WFS parameters (version 1.0.0???)
|
void |
removeAllWMSParameters()
Removes all WMS parameters (version 1.1.1)
|
static String |
removeNamespace(String tagName) |
String |
removeParameter(String param)
Removes a parameter
|
void |
setAbbr(String abbr) |
void |
setCapabilities(WFS_Capabilities capabilities) |
void |
setDescribeFeatureTypeV100(DescribeFeatureType describeFeatureType) |
void |
setDescribeFeatureTypeV110(DescribeFeatureType describeFeatureType) |
void |
setFinalVersion(String clientVersion) |
void |
setGetCapabilitiesV100(GetCapabilities getCapabilities)
Serie of methods to fill the HashMap parameters
|
void |
setGetCapabilitiesV110(GetCapabilities getCapabilities) |
void |
setGetFeatureFilterMap(HashMap getFeatureFilterMap) |
void |
setGetFeaturePropertyNameListMap(HashMap getFeaturePropertyNameListMap) |
void |
setGetFeatureV100(GetFeature getFeature) |
void |
setGetFeatureV110(GetFeature getFeature) |
void |
setHttpHost(String host) |
void |
setHttpMethod(String method) |
void |
setLayers(ArrayList layers) |
protected void |
setParameters(HashMap parameters) |
void |
setPassword(String password) |
void |
setPersonalCode(String personalCode) |
void |
setServiceProviderName(String sp) |
void |
setTransactionElementList(List elements,
String spAbbr) |
void |
setTransactionMap(HashMap transactionList) |
void |
setTransactionV100(Transaction transaction) |
void |
setTransactionV110(Transaction transaction) |
void |
setUrl(String url)
Main methode to fill the OGUrl object
|
void |
setUsername(String username) |
String |
toString() |
addOpengisNamespaces, addOpengisSchemaLocations, addOrReplaceNameSpace, addOrReplaceSchemaLocation, attachSp, attachSpNs, buildFullLayerName, buildLayerNameWithoutNs, buildLayerNameWithoutSp, cleanPrefixInBody, determineFeatureTypeName, findNameSpace, fixNsPrefix, getLayerName, getNameSpace, getNamespaceContext, getNameSpacePrefix, getNameSpacePrefix, getNameSpaces, getNameSpacesArray, getSchemaLocations, getSchemaLocationsArray, replaceIds, setNameSpaces, setSchemaLocations, splitLayerInParts, splitLayerInParts, splitLayerWithoutNsFix, splitLayerWithoutNsFix, splitLayerWithoutNsFix, stripNs, toCodeAndNameprotected static final org.apache.commons.logging.Log log
protected String httpMethod
protected String httpHost
protected WFS_Capabilities capabilities
protected HashMap parameters
protected HashMap transactionList
protected HashMap getFeatureFilterMap
protected HashMap getFeaturePropertyNameListMap
protected String abbr
protected ArrayList layers
protected String username
protected String password
protected String finalVersion
protected String serviceProviderName
public static final List NAMESPACES_NOT_IN_URL
public static final HashMap scaleCalibrations
public OGCRequest()
public OGCRequest(String url)
url - The url that fills the OGCUrl object
For HTTP GETpublic final void setGetCapabilitiesV100(GetCapabilities getCapabilities)
public final void setGetCapabilitiesV110(GetCapabilities getCapabilities)
public final void setDescribeFeatureTypeV100(DescribeFeatureType describeFeatureType)
public final void setDescribeFeatureTypeV110(DescribeFeatureType describeFeatureType)
public final void setGetFeatureV100(GetFeature getFeature) throws Exception
Exceptionpublic final void setGetFeatureV110(GetFeature getFeature) throws Exception
Exceptionpublic final void setTransactionV100(Transaction transaction) throws Exception
Exceptionpublic final void setTransactionV110(Transaction transaction) throws Exception
Exceptionpublic HashMap getTransactionMap()
public void setTransactionMap(HashMap transactionList)
public String[] getTransactionSpList()
public void setAbbr(String abbr)
public String getAbbr()
public ArrayList getLayers()
public HashMap getGetFeatureFilterMap()
public void setGetFeatureFilterMap(HashMap getFeatureFilterMap)
public HashMap getGetFeaturePropertyNameListMap()
public void setGetFeaturePropertyNameListMap(HashMap getFeaturePropertyNameListMap)
public void addGetFeaturePropertyNameListMap(String key, Object value)
public final void setUrl(String url)
url - The url that fills the OGCUrl objectpublic String getUrl()
public String getUrlWithNonOGCparams()
public String removeParameter(String param)
param - The definition of the param that needs to be removed.public final String getParameter(String param)
param - the param definitionpublic final boolean containsParameter(String param)
public HashMap getNonOGCParameters()
public String addOrReplaceParameter(String param, String v)
param - The definition of the param that needs to be added or replaced.value - The value that needs to be addedpublic int addOrReplaceParameters(String params)
params - A String with parameters seperated by a '&'public void removeAllWMSParameters()
public void removeAllWFSParameters()
public String[] getParametersArray()
public String getHttpHost()
public void setHttpHost(String host)
public static String[] findServiceProviderNameAndPersonalCode(String httpHost)
public void setServiceProviderName(String sp)
public String getServiceProviderName()
public String getPersonalCode()
public void setPersonalCode(String personalCode)
personalCode - the personalCode to setpublic void setHttpMethod(String method)
method - - the HTTP method of the request (GET/POST/etc)public String getHttpMethod()
protected HashMap getParameters()
protected void setParameters(HashMap parameters)
protected void checkRequestURL(List requiredParams, String request) throws Exception
Exceptionpublic WFS_Capabilities getCapabilities()
public void setCapabilities(WFS_Capabilities capabilities)
public final void setFinalVersion(String clientVersion)
public double calcScale()
public double calcScale(double scaleCalibration)
scaleCalibration - omrekenfactor van pixels naar kaarteenheden.public String getFinalVersion()
public String getUsername()
public void setUsername(String username)
username - the username to setpublic String getPassword()
public void setPassword(String password)
password - the password to setpublic void setLayers(ArrayList layers)
layers - the layers to setCopyright © 2016. All rights reserved.