private function generateResourceUri($options)
    {
        $resource_uri = "";

        // resource_uri + bucket
        if (isset($options[self::OSS_BUCKET]) && '' !== $options[self::OSS_BUCKET]) {
            if ($this->hostType === self::OSS_HOST_TYPE_IP) {
                $resource_uri = '/' . $options[self::OSS_BUCKET];
            }
        }

        // resource_uri + object
        if (isset($options[self::OSS_OBJECT]) && '/' !== $options[self::OSS_OBJECT]) {
            $resource_uri .= '/' . str_replace(array('%2F', '%25'), array('/', '%'), rawurlencode($options[self::OSS_OBJECT]));
        }

        // resource_uri + sub_resource
        $conjunction = '?';
        if (isset($options[self::OSS_SUB_RESOURCE])) {
            $resource_uri .= $conjunction . $options[self::OSS_SUB_RESOURCE];
        }
        return $resource_uri;
    }
private function generateResourceUri($options)
    {
        $resource_uri = "";

        // resource_uri + bucket
        if (isset($options[self::OSS_BUCKET]) && '' !== $options[self::OSS_BUCKET]) {
            if ($this->hostType === self::OSS_HOST_TYPE_IP) {
                $resource_uri = '/' . $options[self::OSS_BUCKET];
            }
        }

        // resource_uri + object
        if (isset($options[self::OSS_OBJECT]) && '/' !== $options[self::OSS_OBJECT]) {
            $resource_uri .= '/' . str_replace(array('%2F', '%25'), array('/', '%'), rawurlencode($options[self::OSS_OBJECT]));
        }

        // resource_uri + sub_resource
        $conjunction = '?';
        if (isset($options[self::OSS_SUB_RESOURCE])) {
            $resource_uri .= $conjunction . $options[self::OSS_SUB_RESOURCE];
        }
        return $resource_uri;
    }
private function generateResourceUri ( $ options ) { $ resource_uri = "" ; // resource_uri + bucket if ( isset ( $ options [ self :: OSS_BUCKET ] ) && '' !== $ options [ self :: OSS_BUCKET ] ) { if ( $ this -> hostType === self :: OSS_HOST_TYPE_IP ) { $ resource_uri = '/' . $ options [ self :: OSS_BUCKET ] ; } } // resource_uri + object if ( isset ( $ options [ self :: OSS_OBJECT ] ) && '/' !== $ options [ self :: OSS_OBJECT ] ) { $ resource_uri .= '/' . str_replace ( array ( '%2F' , '%25' ) , array ( '/' , '%' ) , rawurlencode ( $ options [ self :: OSS_OBJECT ] ) ) ; } // resource_uri + sub_resource $ conjunction = '?' ; if ( isset ( $ options [ self :: OSS_SUB_RESOURCE ] ) ) { $ resource_uri .= $ conjunction . $ options [ self :: OSS_SUB_RESOURCE ] ; } return $ resource_uri ; }
Gets the resource Uri in the current request

@param $options
@return string return the resource uri.
Gets the resource Uri in the current request