dmBridge PHP API
DMHTTPMessage.php
00001 <?php
00002 #
00003 # dmBridge: a data access framework for CONTENTdm(R)
00004 #
00005 # Copyright © 2009, 2010, 2011 Board of Regents of the Nevada System of Higher
00006 # Education, on behalf of the University of Nevada, Las Vegas
00007 #
00008 
00015 abstract class DMHTTPMessage {
00016 
00018    protected $headers = array();
00020    protected $http_version = "1.1";
00022    protected $representation;
00023 
00024 
00029    public function addHeader($key, $value) {
00030       $this->headers[] = array(
00031          'key' => (string) $key,
00032          'value' => (string) $value
00033       );
00034    }
00035 
00039    public function getHeaders() {
00040       return $this->headers;
00041    }
00042 
00046    public function unsetHeaders() {
00047       $this->headers = array();
00048    }
00049 
00053    public function getHTTPVersion() {
00054       return $this->http_version;
00055    }
00056 
00060    public function setHTTPVersion($version) {
00061       $this->http_version = $version;
00062    }
00063 
00067    public function getRepresentation() {
00068       return $this->representation;
00069    }
00070 
00074    public function setRepresentation(DMHTTPRepresentation $rep) {
00075       $this->representation = $rep;
00076    }
00077 
00078 }
 All Data Structures Functions Variables