Path

ez components / documentation / api reference / 2007.2alpha1 / webdav


eZ Components 2007.2alpha1

Webdav: ezcWebdavRequest

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcWebdavRequest

Base class for request objects. [source]
This base class must be extended by all request representation classes.

Descendents

Child Class Description
ezcWebdavPutRequest Struct-like class representing all relevant information about a webdav PUT request.
ezcWebdavMakeCollectionRequest Struct-like class representing all relevant information about a webdav MKCOL request.
ezcWebdavOptionsRequest Struct-like class representing all relevant information about a webdav OPTIONS request.
ezcWebdavUnlockRequest Request class generated by a LOCK request.
ezcWebdavGetRequest Struct-like class representing all relevant information about a webdav GET request.
ezcWebdavCopyRequest Request class generated by a COPY request.
ezcWebdavMoveRequest Request class generated by a COPY request.
ezcWebdavLockRequest Request class generated by a LOCK request.
ezcWebdavPropFindRequest Request class generated by a PROPFIND request.
ezcWebdavDeleteRequest Struct-like class representing all relevant information about a webdav DELETE request.
ezcWebdavHeadRequest Struct-like class representing all relevant information about a webdav HEAD request.
ezcWebdavPropPatchRequest Request class generated by a PROPPATCH request.

Constants

DEPTH_INFINITY = -1
DEPTH_ONE = 1
DEPTH_ZERO = 0 Constants for the 'Depth' header and property fields.

Member Variables

protected array(string=>mixed) $headers = array()
Container for header information.
protected array(string=>mixed) $properties = array()
Container to hold the properties

Method Summary

public void __construct( $requestUri )
Construct request class with requested URI
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 )
Construct request class with requested URI

Parameters

Name Type Description
$requestUri string  

Redefined in descendants as

Method Description
ezcWebdavPutRequest::__construct() Creates a new PUT request object.
ezcWebdavMakeCollectionRequest::__construct() Creates a new MKCOL request object.
ezcWebdavCopyRequest::__construct() Creates a new COPY request object.
ezcWebdavMoveRequest::__construct() Creates a new COPY request object.
ezcWebdavLockRequest::__construct() Creates a new LOCK request object.
ezcWebdavPropFindRequest::__construct() Creates a new PROPFIND request object.
ezcWebdavPropPatchRequest::__construct() Creates a new PROPPATCH request object.

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().
For validation of header content, the method validateHeaders() can be overwritten.

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().
For validation of header content, the method validateHeaders() can be overwritten.

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

ClassDescription
ezcWebdavMissingHeaderException if a required header is missing.
ezcWebdavInvalidHeaderException if a header is present, but its content does not validate.

Redefined in descendants as

Method Description
ezcWebdavPutRequest::validateHeaders() Validates the headers set in this request.
ezcWebdavUnlockRequest::validateHeaders() Validates the headers set in this request.
ezcWebdavCopyRequest::validateHeaders() Validates the headers set in this request.
ezcWebdavMoveRequest::validateHeaders() Validates the headers set in this request.
ezcWebdavLockRequest::validateHeaders() Validates the headers set in this request.
ezcWebdavPropFindRequest::validateHeaders() Validates the headers set in this request.

Last updated: Mon, 12 Nov 2007