ClientChannel

Overview

ROClientChannel is the abstract base class for Client Channels implementations in Remoting SDK for Java.

You will usually not instantiate instances of this class itself, but use the descendant classes, such as HttpClientChannel.

Location


 

constructor

Creates ClientChannel.

 

constructor

 

ClientChannel()

constructor (URI)

Creates ClientChannel with given URI.

 

constructor(targetUri: URI)

 

ClientChannel(URI targetUri)

Parameters:

  • targetUri: Given URI.

asyncDispatch

Dispatches the given message asynchronously and returns an AsyncRequest object. Mainly for internal use.

 

method asyncDispatch(message: Message; proxy: AsyncProxy; start: Boolean; callback: IAsyncRequestCallback): AsyncRequest

 

AsyncRequest asyncDispatch(Message message, AsyncProxy proxy, Boolean start, IAsyncRequestCallback callback)

Parameters:

  • message: Given message.
  • proxy: Given proxy.
  • start: Given start.
  • callback: Given callback.

channelWithURI

Returns ClientChannel object created via URL Schemes

 

class method channelWithURI(uri: URI): ClientChannel

 

static ClientChannel channelWithURI(URI uri)

Parameters:

  • uri: Given URI.

dispatch

Dispatches the given message synchronously. This method relies on the initDispatch: implementation provided by concrete client channel implementations for the actual dispatching. Mainly for internal use.

 

method dispatch(message: Message)

 

void dispatch(Message message)

Parameters:

  • message: Given message.

isCallbackHolder

 

method isCallbackHolder: Boolean

 

Boolean isCallbackHolder()

setChannelCallback

Sets callback.

 

method setChannelCallback(callback: IClientChannelCallback)

 

void setChannelCallback(IClientChannelCallback callback)

Parameters:

  • callback: Given callback.

TargetUrl

TargetUrl

 

property TargetUrl: URI read write;

 

URI TargetUrl { __get; __set; }

triggerOnLoginNeeded  protected

 

method triggerOnLoginNeeded(message: Message; exception: Exception): Boolean

 

Boolean triggerOnLoginNeeded(Message message, Exception exception)

Parameters:

  • message:
  • exception:

 

TargetUrl

TargetUrl

 

property TargetUrl: URI read write;

 

URI TargetUrl { __get; __set; }

 

channelWithURI

Returns ClientChannel object created via URL Schemes

 

class method channelWithURI(uri: URI): ClientChannel

 

static ClientChannel channelWithURI(URI uri)

Parameters:

  • uri: Given URI.

 

constructor

Creates ClientChannel.

 

constructor

 

ClientChannel()

constructor (URI)

Creates ClientChannel with given URI.

 

constructor(targetUri: URI)

 

ClientChannel(URI targetUri)

Parameters:

  • targetUri: Given URI.

asyncDispatch

Dispatches the given message asynchronously and returns an AsyncRequest object. Mainly for internal use.

 

method asyncDispatch(message: Message; proxy: AsyncProxy; start: Boolean; callback: IAsyncRequestCallback): AsyncRequest

 

AsyncRequest asyncDispatch(Message message, AsyncProxy proxy, Boolean start, IAsyncRequestCallback callback)

Parameters:

  • message: Given message.
  • proxy: Given proxy.
  • start: Given start.
  • callback: Given callback.

dispatch

Dispatches the given message synchronously. This method relies on the initDispatch: implementation provided by concrete client channel implementations for the actual dispatching. Mainly for internal use.

 

method dispatch(message: Message)

 

void dispatch(Message message)

Parameters:

  • message: Given message.

isCallbackHolder

 

method isCallbackHolder: Boolean

 

Boolean isCallbackHolder()

setChannelCallback

Sets callback.

 

method setChannelCallback(callback: IClientChannelCallback)

 

void setChannelCallback(IClientChannelCallback callback)

Parameters:

  • callback: Given callback.

triggerOnLoginNeeded  protected

 

method triggerOnLoginNeeded(message: Message; exception: Exception): Boolean

 

Boolean triggerOnLoginNeeded(Message message, Exception exception)

Parameters:

  • message:
  • exception: