* 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. **********************************************************************/
| 717 | * information, mime type, etc. |
| 718 | **********************************************************************/ |
| 719 | void 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() |
no test coverage detected