ROProxy Class

From RemObjects Wiki

Jump to:navigation, search
Xcode Platform Header-48.png

This is a RemObjects SDK for Xcode Library topic

Please do not modify the page structure, but feel free to modify/add text.

ClassesProtocolsEnums

Contents

Overview

ROProxy is the abstract base class for Proxy classes defined for your services. Proxy objects are used on the client side as call sites for methods on your services, and encapsulate the logic needed for taking the method calls and remoting them to the server.

You will usually not instantiate instances of this class itself, but use the descendant classes from your own Interface files.


Location

RemObjectsSDK/RemObjectsSDK.h


Class Methods

proxyWithMessage:channel:

creates and returns a new proxy object with the given ROMessage and ROClientChannel object.


+ (id) proxyWithMessage:(ROMessage *)aMessage channel:(ROClientChannel *)aChannel
Parameters:

  • aMessage:
  • aChannel:


proxyWithService:

creates and returns a new proxy object with the given RORemoteService object.


+ (id) proxyWithService:(RORemoteService *)aService
Parameters:

  • aService:



Instance Methods

__clientChannel

for use by RODL-generated code; returns the ROClientChannel reference this proxy will use to communicate with the server.


- (ROClientChannel *) __clientChannel

__getActiveInterfaceName

for use by RODL-generated code; returns the actual service name that will be passed to the server. This may be overriden from the original value in __getInterfaceName if a different service name was configured for the RORemoteService used to initialize the Proxy.


- (NSString *) __getActiveInterfaceName

__getInterfaceName

overriden in concrete proxy implementations, this method returns the hard-coded service name associated with this proxy.


- (NSString *) __getInterfaceName

__message

for use by RODL-generated code; returns the ROMessage reference this proxy will use to communicate with the server.


- (ROMessage *) __message

initWithMessage:channel:

initializes a new proxy object with the given ROMessage and ROClientChannel object.


- (id) initWithMessage:(ROMessage *)aMessage channel:(ROClientChannel *)aChannel
Parameters:

  • aMessage:
  • aChannel:


initWithService:

initializes a new proxy object with the given RORemoteService object.


- (id) initWithService:(RORemoteService *)aService
Parameters:

  • aService:



See Also


Ro-48.png

Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Delphi and Xcode

GlossaryArchitectureArticlesFeaturesLibrarySamples

Navigation
products
hubs
special
Toolbox