Example #1
0
 /**
  * {@inheritdoc}
  */
 public function populateFromResponse(ResponseInterface $response)
 {
     parent::populateFromResponse($response);
     $this->objectCount = $response->getHeaderLine('X-Container-Object-Count');
     $this->bytesUsed = $response->getHeaderLine('X-Container-Bytes-Used');
     $this->metadata = $this->parseMetadata($response);
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function populateFromResponse(ResponseInterface $response)
 {
     parent::populateFromResponse($response);
     $this->hash = $response->getHeaderLine('ETag');
     $this->contentLength = $response->getHeaderLine('Content-Length');
     $this->lastModified = $response->getHeaderLine('Last-Modified');
     $this->contentType = $response->getHeaderLine('Content-Type');
     $this->metadata = $this->parseMetadata($response);
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 public function populateFromResponse(ResponseInterface $response)
 {
     parent::populateFromResponse($response);
     $this->containerCount = $response->getHeader('X-Account-Container-Count');
     $this->objectCount = $response->getHeader('X-Account-Object-Count');
     $this->bytesUsed = $response->getHeader('X-Account-Bytes-Used');
     $this->tempUrl = $response->getHeader('X-Account-Meta-Temp-URL-Key');
     $this->metadata = $this->parseMetadata($response);
 }
Example #4
0
 public function populateFromResponse(ResponseInterface $response)
 {
     parent::populateFromResponse($response);
     $this->metadata = $this->parseMetadata($response);
     return $this;
 }
Example #5
0
 /**
  * {@inheritDoc}
  */
 public function populateFromResponse(ResponseInterface $response)
 {
     parent::populateFromResponse($response);
     $this->id = $response->getHeader('X-Subject-Token');
     return $this;
 }