Ejemplo n.º 1
0
 private function getBody()
 {
     if (array_key_exists('body', $this->state)) {
         return $this->state['body'];
     }
     if ($this->body === NULL) {
         if (!array_key_exists('bodyStream', $this->state)) {
             throw new Splunk_UnsupportedOperationException('Response object does not contain body stream.');
         }
         $this->body = Splunk_Util::stream_get_contents($this->state['bodyStream']);
     }
     return $this->body;
 }