src/POData/UriProcessor/UriProcessor.php
/**
     * Process the resource path and query options of client's request uri.
     * 
     * @param IService $service Reference to the data service instance.
     * 
     * @return URIProcessor
     * 
     * @throws ODataException
     */
Process the resource path and query options of client's request uri.

@param IService $service Reference to the data service instance.




Process the resource path and query options of client ' s request uri . @param IService $service Reference to the data service instance .
public static function process(IService $service)
    {
        $absoluteRequestUri = $service->getHost()->getAbsoluteRequestUri();
        $absoluteServiceUri = $service->getHost()->getAbsoluteServiceUri();
        if (!$absoluteServiceUri->isBaseOf($absoluteRequestUri)) {
			throw ODataException::createInternalServerError(
                Messages::uriProcessorRequestUriDoesNotHaveTheRightBaseUri(
                    $absoluteRequestUri->getUrlAsString(), 
                    $absoluteServiceUri->getUrlAsString()
                )
            );
        }
        $uriProcessor = new UriProcessor($service);
		$uriProcessor->request = ResourcePathProcessor::process($service);
	    $uriProcessor->request->setUriProcessor($uriProcessor);
        QueryProcessor::process( $uriProcessor->request, $service );
        return $uriProcessor;
    }
public static function process ( IService $ service ) { $ absoluteRequestUri = $ service -> getHost ( ) -> getAbsoluteRequestUri ( ) ; $ absoluteServiceUri = $ service -> getHost ( ) -> getAbsoluteServiceUri ( ) ; if ( ! $ absoluteServiceUri -> isBaseOf ( $ absoluteRequestUri ) ) { throw ODataException :: createInternalServerError ( Messages :: uriProcessorRequestUriDoesNotHaveTheRightBaseUri ( $ absoluteRequestUri -> getUrlAsString ( ) , $ absoluteServiceUri -> getUrlAsString ( ) ) ) ; } $ uriProcessor = new UriProcessor ( $ service ) ; $ uriProcessor -> request = ResourcePathProcessor :: process ( $ service ) ; $ uriProcessor -> request -> setUriProcessor ( $ uriProcessor ) ; QueryProcessor :: process ( $ uriProcessor -> request , $ service ) ; return $ uriProcessor ; }
Process the resource path and query options of client's request uri.
Process the resource path and query options of client ' s request uri .
//Parse the resource path part of the request Uri. //Parse the query string options of the request Uri.