Class Horde_Rpc_ActiveSync
Copyright 2009-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
-
Horde_Rpc
-
Horde_Rpc_ActiveSync
Methods summary
public
Horde_Rpc
|
#
__construct( Horde_Controller_Request_Http $request, array $params = array() )
Constructor.
Parameters in addition to Horde_Rpc's:
(required) 'backend' = Horde_ActiveSync_Driver
(required) 'server' = Horde_ActiveSync
(optional) 'provisioning' = Require device provisioning?
Constructor.
Parameters in addition to Horde_Rpc's: (required) 'backend' = Horde_ActiveSync_Driver (required) 'server' = Horde_ActiveSync (optional) 'provisioning' = Require device provisioning?
Parameters
- $request
- request object.
- $params
- <p>$config A hash containing any additional configuration or
connection parameters this class might need.</p>
Returns
Overrides
|
public
string
|
#
getResponseContentType( )
Returns the Content-Type of the response.
Returns the Content-Type of the response.
Returns
string The MIME Content-Type of the RPC response.
Overrides
|
public
mixed
|
#
getInput( )
Horde_ActiveSync will read the input stream directly, do not access
it here.
Horde_ActiveSync will read the input stream directly, do not access
it here.
Returns
mixed The input - a string (default), a filehandle, etc.
See
framework/Rpc/lib/Horde/Horde_Rpc#getInput()
Overrides
|
public
|
#
getResponse( string $request )
Sends an RPC request to the server and returns the result.
Sends an RPC request to the server and returns the result.
Parameters
- $request
- PHP input stream (ignored).
Overrides
|
public
|
#
sendOutput( string $output )
Parameters
- $output
- <p>The output to send back to the client. Can be
overridden in classes if needed.</p>
See
framework/Rpc/lib/Horde/Horde_Rpc#sendOutput($output)
Overrides
|
public
boolean
|
#
authorize( )
Check authentication. Different backends may handle
authentication in different ways. The base class implementation
checks for HTTP Authentication against the Horde auth setup.
Check authentication. Different backends may handle
authentication in different ways. The base class implementation
checks for HTTP Authentication against the Horde auth setup.
Returns
boolean Returns true if authentication is successful.
Should send appropriate "not authorized" headers
or other response codes/body if auth fails,
and take care of exiting.
Overrides
|