public abstract class OGCResponse extends OGCCommunication implements OGCConstants
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
alreadyDirectWritten |
protected String |
httpHost |
protected static org.apache.commons.logging.Log |
log |
protected ExceptionReport |
newOwsV100ExceptionReport |
protected ServiceExceptionReport |
newWfsV100ExceptionReport |
protected boolean |
usableResponse |
protected String |
version |
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| Modifier | Constructor and Description |
|---|---|
protected |
OGCResponse()
Creates a new instance of OGCResponse
|
| Modifier and Type | Method and Description |
|---|---|
protected NodeList |
getNodeListFromXPath(Node currentNode,
String xPathFrag) |
String |
getOwsV100ErrorResponseBody(String encoding) |
String |
getRequestName(String responseName,
List<SpLayerSummary> spLayerMapList,
String spInUrl)
find layername in requestlayers that corresponds to response layername
|
abstract String |
getResponseBody(List<SpLayerSummary> layers,
OGCRequest ogcrequest,
String encoding)
In dit deel wordt dus niet de naam van kaartlaag/featuretype aangepast,
dit moet al in de methode rebuildResponse zijn gebeurd
|
String |
getWfsV100ErrorResponseBody(String encoding) |
boolean |
hasOwsV100ErrorResponse() |
boolean |
hasWfsV100ErrorResponse() |
boolean |
isAlreadyDirectWritten() |
static boolean |
isOwsV100ErrorResponse(Element rootElement) |
boolean |
isUsableResponse() |
static boolean |
isWfsV100ErrorResponse(Element rootElement) |
void |
logErrorResponse(String encoding) |
protected String |
marshalObject(Object castorObject) |
protected String |
marshalObject(Object castorObject,
String encoding) |
void |
rebuildOwsV100ErrorResponse(Document doc,
OGCRequest request,
String prefix) |
abstract void |
rebuildResponse(Document doc,
OGCRequest request,
String prefix)
In dit deel wordt ook de naam van de kaartlaag/featuretype aangepast
aan de gebruikte naam in het request.
|
void |
rebuildWfsV100ErrorResponse(Document doc,
OGCRequest request,
String prefix)
Nu wordt alleen laatste fout weggeschreven, nog verbeteren indien
mogelijk dat fouten bij elkaar worden opgeteld.
|
protected String |
serializeNode(Node doc) |
void |
setAlreadyDirectWritten(boolean alreadyDirectWritten) |
void |
setUsableResponse(boolean usable) |
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 httpHost
protected String version
protected ServiceExceptionReport newWfsV100ExceptionReport
protected ExceptionReport newOwsV100ExceptionReport
protected boolean usableResponse
protected boolean alreadyDirectWritten
public static boolean isWfsV100ErrorResponse(Element rootElement)
public static boolean isOwsV100ErrorResponse(Element rootElement)
public abstract void rebuildResponse(Document doc, OGCRequest request, String prefix) throws Exception
doc - request - prefix - Exceptionpublic abstract String getResponseBody(List<SpLayerSummary> layers, OGCRequest ogcrequest, String encoding)
layers - ogcrequest - encoding - public void setUsableResponse(boolean usable)
public boolean isUsableResponse()
public boolean hasWfsV100ErrorResponse()
public boolean hasOwsV100ErrorResponse()
public void logErrorResponse(String encoding)
public void rebuildWfsV100ErrorResponse(Document doc, OGCRequest request, String prefix) throws Exception
doc - request - prefix - Exceptionpublic void rebuildOwsV100ErrorResponse(Document doc, OGCRequest request, String prefix) throws Exception
Exceptionprotected NodeList getNodeListFromXPath(Node currentNode, String xPathFrag) throws Exception
Exceptionpublic String getRequestName(String responseName, List<SpLayerSummary> spLayerMapList, String spInUrl) throws Exception
responseName - name as found in response form underlying servicelayerMapList - Exceptionprotected String serializeNode(Node doc) throws TransformerConfigurationException, TransformerException
public boolean isAlreadyDirectWritten()
public void setAlreadyDirectWritten(boolean alreadyDirectWritten)
alreadyDirectWritten - the alreadyDirectWritten to setCopyright © 2021 B3Partners B.V.. All rights reserved.