MCPcopy Index your code
hub / github.com/MapServer/MapServer / msWFSUpdateRequestInfo

Function msWFSUpdateRequestInfo

mapwfslayer.c:719–740  ·  view source on GitHub ↗

* msWFSUpdateRequestInfo() * * This function is called after a WFS request has been completed so that * we can copy request result information from the httpRequestObj to the * msWFSLayerInfo struct. Things to copy here are the HTTP status, exceptions * information, mime type, etc. **********************************************************************/

Source from the content-addressed store, hash-verified

717 * information, mime type, etc.
718 **********************************************************************/
719void msWFSUpdateRequestInfo(layerObj *lp, httpRequestObj *pasReqInfo)
720{
721#ifdef USE_WFS_LYR
722 if (lp->wfslayerinfo)
723 {
724 msWFSLayerInfo *psInfo = NULL;
725
726 psInfo =(msWFSLayerInfo*)(lp->wfslayerinfo);
727
728 /* Copy request results infos to msWFSLayerInfo struct */
729 /* For now there is only nStatus, but we should eventually add */
730 /* mime type and WFS exceptions information. */
731 psInfo->nStatus = pasReqInfo->nStatus;
732 }
733#else
734/* ------------------------------------------------------------------
735 * WFS CONNECTION Support not included...
736 * ------------------------------------------------------------------ */
737 msSetError(MS_WFSCONNERR, "WFS CLIENT CONNECTION support is not available.",
738 "msWFSUpdateRequestInfo()");
739#endif /* USE_WFS_LYR */
740}
741
742/**********************************************************************
743 * msWFSLayerOpen()

Callers 1

msOWSExecuteRequestsFunction · 0.85

Calls 1

msSetErrorFunction · 0.85

Tested by

no test coverage detected