Overview  Package  Tree HessianPHP

HessianPHP.Client

Class HessianProxy

HessianPHP.Filters.FilterContainer
|
+--HessianPHP.Client.HessianProxy

class HessianProxy
extends FilterContainer

Represents a remote Hessian service endpoint with things such as url, remote methods, security and several connection options

Author:
Vegeta
Version:
1.0

Field Summary
public var$url
public var$remoteMethods
public var$options
public var$error
public var$parser
public var$writer
public var$http
public var$callingContext
Fields inherited from HessianPHP.Filters.FilterContainer
$filters
Method Summary
public voidHessianProxy
public voidremoteMethod

Registers a remote method name.

public stringresolveMethod

Returns the exact case sesitive name of a registered remote method

public voidsetOption

Sets a connection option that will be passed to the Hessian proxy when called.

public voidgetOption
public voidcall

Performs a remote call taking in account whatever filters have been defined for this proxy

public voidexecuteCall

Performs the actual remote call

public booleannotifyError

Notifies the HessianErrorLog object that handles the error

Methods inherited from HessianPHP.Filters.FilterContainer
addFilter, removeFilter
Field Detail

url

public var $url

remoteMethods

public var $remoteMethods = array()

options

public var $options

error

public var $error = false

parser

public var $parser

writer

public var $writer

http

public var $http

callingContext

public var $callingContext = array()
Method Detail

HessianProxy()

public void HessianProxy(var $url,
                         var $options = false)
Parameters:
$url
$options

remoteMethod()

public void remoteMethod(string name)

Registers a remote method name.

Useful for store description of services and resolve naming conflicts due to case sensitivity

Parameters:
name - Name of the remote method

resolveMethod()

public string resolveMethod(string method)

Returns the exact case sesitive name of a registered remote method

Parameters:
method - case insensitive name of the method
Returns:
case sensitive name of the method

setOption()

public void setOption(string name,
                      string value)

Sets a connection option that will be passed to the Hessian proxy when called.

Format is a pair key/value

Parameters:
name - Key
value - Value

getOption()

public void getOption(var $name)
Parameters:
$name

call()

public void call(string method,
                 array params)

Performs a remote call taking in account whatever filters have been defined for this proxy

Parameters:
method - name of the remote method
params - Array containing the values to send

executeCall()

public void executeCall(string method,
                        array params)

Performs the actual remote call

Parameters:
method - name of the remote method
params - Array containing the values to send

notifyError()

public boolean notifyError(Object error)

Notifies the HessianErrorLog object that handles the error

Parameters:
error - An error object
Returns:
always false, as it denotes an error

Overview  Package  Tree HessianPHP