Json/Server/Response/Http.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Json  
Version
$Id: Http.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Json_Server_Response_Http

Package: Zend\Json

Parent(s)
\Zend_Json_Server_Response
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotectednull|\Zend_Json_Server_Error $_error =
inherited

Response error

Inherited from: \Zend_Json_Server_Response::$$_error
Details
Type
null | \Zend_Json_Server_Error
Inherited_from
\Zend_Json_Server_Response::$$_error  
Propertyprotectedmixed $_id =
inherited

Request ID

Inherited from: \Zend_Json_Server_Response::$$_id
Details
Type
mixed
Inherited_from
\Zend_Json_Server_Response::$$_id  
Propertyprotectedmixed $_result =
inherited

Result

Inherited from: \Zend_Json_Server_Response::$$_result
Details
Type
mixed
Inherited_from
\Zend_Json_Server_Response::$$_result  
Propertyprotected\Zend_Json_Server_Smd $_serviceMap =
inherited

Service map

Inherited from: \Zend_Json_Server_Response::$$_serviceMap
Propertyprotectedstring $_version =
inherited

JSON-RPC version

Inherited from: \Zend_Json_Server_Response::$$_version
Details
Type
string
Inherited_from
\Zend_Json_Server_Response::$$_version  

Methods

methodpublic__toString() : string
inherited

Cast to string (JSON)

Inherited from: \Zend_Json_Server_Response::__toString()
Returns
Type Description
string
methodpublicgetArgs() : mixed
inherited

Retrieve args

Inherited from: \Zend_Json_Server_Response::getArgs()
Returns
Type Description
mixed
methodpublicgetError() : null | \Zend_Json_Server_Error
inherited

Get response error

Inherited from: \Zend_Json_Server_Response::getError()
Returns
Type Description
null | \Zend_Json_Server_Error
methodpublicgetId() : mixed
inherited

Get request ID

Inherited from: \Zend_Json_Server_Response::getId()
Returns
Type Description
mixed
methodpublicgetResult() : mixed
inherited

Get result

Inherited from: \Zend_Json_Server_Response::getResult()
Returns
Type Description
mixed
methodpublicgetServiceMap() : \Zend_Json_Server_Smd | null
inherited

Retrieve service map

Inherited from: \Zend_Json_Server_Response::getServiceMap()
Returns
Type Description
\Zend_Json_Server_Smd | null
methodpublicgetVersion() : string
inherited

Retrieve JSON-RPC version

Inherited from: \Zend_Json_Server_Response::getVersion()
Returns
Type Description
string
methodpublicisError() : bool
inherited

Is the response an error?

Inherited from: \Zend_Json_Server_Response::isError()
Returns
Type Description
bool
methodpublicsendHeaders() : void

Send headers

If headers are already sent, do nothing. If null ID, send HTTP 204 header. Otherwise, send content type header based on content type of service map.

methodpublicsetArgs(mixed $args) : \Zend_Json_Server_Response_Http
inherited

Set args

Inherited from: \Zend_Json_Server_Response::setArgs()
Parameters
Name Type Description
$args mixed
Returns
Type Description
\Zend_Json_Server_Response_Http
Details
Fluent
This method is part of a fluent interface and will return the same instance  
methodpublicsetError(\Zend_Json_Server_Error $error) : \Zend_Json_Server_Response
inherited

Set result error

Inherited from: \Zend_Json_Server_Response::setError()
Parameters
Name Type Description
$error \Zend_Json_Server_Error
Returns
Type Description
\Zend_Json_Server_Response
methodpublicsetId(mixed $name) : \Zend_Json_Server_Response
inherited

Set request ID

Inherited from: \Zend_Json_Server_Response::setId()
Parameters
Name Type Description
$name mixed
Returns
Type Description
\Zend_Json_Server_Response
methodpublicsetResult(mixed $value) : \Zend_Json_Server_Response
inherited

Set result

Inherited from: \Zend_Json_Server_Response::setResult()
Parameters
Name Type Description
$value mixed
Returns
Type Description
\Zend_Json_Server_Response
methodpublicsetServiceMap(\Zend_Json_Server_Smd $serviceMap) : \Zend_Json_Server_Response
inherited

Set service map object

Inherited from: \Zend_Json_Server_Response::setServiceMap()
Parameters
Name Type Description
$serviceMap \Zend_Json_Server_Smd
Returns
Type Description
\Zend_Json_Server_Response
methodpublicsetVersion(string $version) : \Zend_Json_Server_Response
inherited

Set JSON-RPC version

Inherited from: \Zend_Json_Server_Response::setVersion()
Parameters
Name Type Description
$version string
Returns
Type Description
\Zend_Json_Server_Response
methodpublictoJson() : string

Emit JSON

Send appropriate HTTP headers. If no Id, then return an empty string.

Returns
Type Description
string
Documentation was generated by phpDocumentor 2.0.0a8.