Webdav: ezcWebdavRequest
[ ]
[ Clients ] [ Plugin architecture ]
[ ]
[ ]
[ ]
[ ]
Class: ezcWebdavRequest
|
Base class for request objects. [
source]
This base class must be extended by all request representation classes.
Descendents
Constants
Member Variables
|
protected array(string=>mixed) |
$headers
= array()
Container for header information. |
|
protected array(string=>mixed) |
$properties
= array()
Properties. |
Method Summary
|
public void |
__construct(
$requestUri )
Creates a new request object. |
|
public mixed |
getHeader(
$headerName )
Returns the contents of a specific header. |
|
public void |
setHeader(
$headerName, $headerValue )
Sets a header to a specified value. |
|
public void |
setHeaders(
$headers )
Sets a header to a specified value. |
|
public void |
validateHeaders(
)
Validates the headers set in this request. |
Methods
__construct
void __construct(
string
$requestUri )
Creates a new request object.
Creates a new request object that refers to the given $requestUri, which is a path understandable by the
ezcWebdavBackend.
Parameters
| Name |
Type |
Description |
$requestUri |
string |
|
Redefined in descendants as
getHeader
mixed getHeader(
string
$headerName )
Returns the contents of a specific header.
Returns the content of the header identified with $headerName with the given name and null if no content for the header is available.
Parameters
| Name |
Type |
Description |
$headerName |
string |
|
setHeader
void setHeader(
string
$headerName, mixed
$headerValue )
Sets a header to a specified value.
Sets the value for $header to $headerValue. All processable headers will be validated centrally in
validateHeaders().
Parameters
| Name |
Type |
Description |
$headerName |
string |
|
$headerValue |
mixed |
|
setHeaders
void setHeaders(
$headers )
Sets a header to a specified value.
Sets the values for the headers given in $headers to the specified values. All processable headers will be validated centrally in
validateHeaders().
Parameters
| Name |
Type |
Description |
$headers |
array |
|
validateHeaders
void validateHeaders(
)
Validates the headers set in this request.
This method is called by
ezcWebdavServer after the request object has been created by an
ezcWebdavTransport. It must validate all headers specific for this request for existance of required headers and validity of all headers used by the specific request implementation. The call of the parent method is *mandatory* to have common WebDAV and HTTP headers validated, too!
Throws
| Class | Description |
ezcWebdavMissingHeaderException |
if a required header is missing. |
ezcWebdavInvalidHeaderException |
if a header is present, but its content does not validate. |
Redefined in descendants as
Last updated: Mon, 09 Feb 2009