* msOWSExecuteRequests() * * Execute a number of WFS/WMS HTTP requests in parallel, and then * update layerObj information with the result of the requests. **********************************************************************/
| 1687 | * update layerObj information with the result of the requests. |
| 1688 | **********************************************************************/ |
| 1689 | int msOWSExecuteRequests(httpRequestObj *pasReqInfo, int numRequests, |
| 1690 | mapObj *map, int bCheckLocalCache) |
| 1691 | { |
| 1692 | int nStatus, iReq; |
| 1693 | |
| 1694 | /* Execute requests */ |
| 1695 | #if defined(USE_CURL) |
| 1696 | nStatus = msHTTPExecuteRequests(pasReqInfo, numRequests, bCheckLocalCache); |
| 1697 | #else |
| 1698 | msSetError(MS_WMSERR, "msOWSExecuteRequests() called apparently without libcurl configured, msHTTPExecuteRequests() not available.", |
| 1699 | "msOWSExecuteRequests()"); |
| 1700 | return MS_FAILURE; |
| 1701 | #endif |
| 1702 | |
| 1703 | /* Scan list of layers and call the handler for each layer type to */ |
| 1704 | /* pass them the request results. */ |
| 1705 | for(iReq=0; iReq<numRequests; iReq++) |
| 1706 | { |
| 1707 | if (pasReqInfo[iReq].nLayerId >= 0 && |
| 1708 | pasReqInfo[iReq].nLayerId < map->numlayers) |
| 1709 | { |
| 1710 | layerObj *lp; |
| 1711 | |
| 1712 | lp = GET_LAYER(map, pasReqInfo[iReq].nLayerId); |
| 1713 | |
| 1714 | if (lp->connectiontype == MS_WFS) |
| 1715 | msWFSUpdateRequestInfo(lp, &(pasReqInfo[iReq])); |
| 1716 | } |
| 1717 | } |
| 1718 | |
| 1719 | return nStatus; |
| 1720 | } |
| 1721 | |
| 1722 | /********************************************************************** |
| 1723 | * msOWSProcessException() |
no test coverage detected