protected function read(Url $url)
    {
        /** @var Response $response */
        try {
            $response = $this->getHttpInvoker()->get((string) $url);
        } catch (RequestException $exception) {
            $code = 0;
            $message = null;
            if ($exception->getResponse()) {
                $code = $exception->getResponse()->getStatusCode();
                $message = $exception->getResponse()->getBody();
            }
            throw $this->convertStatusCode(
                $code,
                (string) $message,
                $exception
            );
        }

        return $response;
    }
protected function read(Url $url)
    {
        /** @var Response $response */
        try {
            $response = $this->getHttpInvoker()->get((string) $url);
        } catch (RequestException $exception) {
            $code = 0;
            $message = null;
            if ($exception->getResponse()) {
                $code = $exception->getResponse()->getStatusCode();
                $message = $exception->getResponse()->getBody();
            }
            throw $this->convertStatusCode(
                $code,
                (string) $message,
                $exception
            );
        }

        return $response;
    }
protected function read ( Url $ url ) { /** @var Response $response */ try { $ response = $ this -> getHttpInvoker ( ) -> get ( ( string ) $ url ) ; } catch ( RequestException $ exception ) { $ code = 0 ; $ message = null ; if ( $ exception -> getResponse ( ) ) { $ code = $ exception -> getResponse ( ) -> getStatusCode ( ) ; $ message = $ exception -> getResponse ( ) -> getBody ( ) ; } throw $ this -> convertStatusCode ( $ code , ( string ) $ message , $ exception ) ; } return $ response ; }
Do a get request for the given url

@param Url $url
@return Response
@throws CmisBaseException an more specific exception of this type could be thrown. For more details see
@see AbstractBrowserBindingService::convertStatusCode()
Do a get request for the given url