eDriven Framework API
HttpConnector Class
NamespaceseDriven.Networking.RpcHttpConnector
eDriven Framework API
A class that handles HTTP requests/responses It can queue requests and send them one-by-one or in any other fashion specified by ConcurencyMode After the responses are returned, it processes them (fires responders) in fashion specified by ProcessingMode For instence, you could make the connector to fire all the responders, but only after all responses are returned
Declaration Syntax
C#Visual BasicVisual C++
public class HttpConnector : EventDispatcher, 
	IUnique, ICloneable
Public Class HttpConnector _
	Inherits EventDispatcher _
	Implements IUnique, ICloneable
public ref class HttpConnector : public EventDispatcher, 
	IUnique, ICloneable
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
HttpConnector()()()()
Constructor

AddEventListener(String, EventHandler, EventPhase, Int32)
Adds the event listener
(Inherited from EventDispatcher.)
AddEventListener(String, EventHandler, EventPhase)
Adds the event listener
(Inherited from EventDispatcher.)
AddEventListener(String, EventHandler)
AddEventListener Overload Assumes that useCapturePhase is false
(Inherited from EventDispatcher.)
AddEventListener(String, EventHandler, Int32)
Adds the event listener
(Inherited from EventDispatcher.)
ALL_PROCESSED
This event fires when number of finished requests equals total number of requests

AutoDisposeResources
Should system automatically dispose WWW resources (but after processing)

CacheBuster
Cancel(AsyncToken)
Cancels the request

CancelAll()()()()
Cansels all requests

Clone()()()()
Creates a new object that is a copy of the current instance.

ConcurencyMode
How to handle multiple calls to the same service. The default concurrency value is multiple.

DebugMode
DispatchEvent(Event, Boolean)
Dispatches an event with the option of late processing (immediate = TRUE/FALSE)
(Inherited from EventDispatcher.)
DispatchEvent(Event)
Dispatches an event immediatelly
(Inherited from EventDispatcher.)
Dispose()()()()
Releases all resources used by the HttpConnector
(Overrides EventDispatcher.Dispose()()()().)
DisposeResources(WWW)
Disposes resources on WWW

EnqueueEvent(Event)
Adds an event to the queue The queue will be processed when ProcessQueue() manually executed
(Inherited from EventDispatcher.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
ExecuteListeners(Event)
Executes event handlers listening for a particular event type
(Inherited from EventDispatcher.)
FaultHandler
Overal fault handler for the service

Finalize()()()()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
HasBubblingEventListener(String)
Returns true if there are any subscribers in bubbling hierarchy
Override in superclass
(Inherited from EventDispatcher.)
HasEventListener(String)
Returns true if EventDispatcher has any registered listeners for a specific type and phase
(Inherited from EventDispatcher.)
Id
The identifier of this HttpConnector

IsDefaultPrevented(String, Boolean)
Exposes the cancelable event to the outside if there are listeners for that event type If default prevented, returns false If not, returns true
(Inherited from EventDispatcher.)
IsDefaultPrevented(String)
No-bubbling version
(Inherited from EventDispatcher.)
IsWorking
A flag indicating that this connector is processing

LogCalls
Should calls be written to log

MappedToAnyPhase(String, EventHandler, EventPhase)
Returns true if handler is mapped to any of the specified phases
(Inherited from EventDispatcher.)
MaxConcurrentRequests
Max number of concurrent requests In FIFO and FILO mode Meaning it doesn't have to be processed one-by-one (the default) but two-by-two, three-by-three etc.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ProcessEvent(Event)
Could be overriden in a subclass (for instance to implement event bubbling)
(Inherited from EventDispatcher.)
ProcessingMode
How to handle multiple responses

ProcessQueue()()()()
If events are added to queue, they are waiting to be fired
in the same order they are added
(Inherited from EventDispatcher.)
RemoveAllListeners(String)
Removes all listeners for the spacified event type (both capture and bubbling phase)
(Inherited from EventDispatcher.)
RemoveAllListeners(String, EventPhase)
Removes all listeners for the spacified event type and phases
(Inherited from EventDispatcher.)
RemoveEventListener(String, EventHandler, EventPhase)
Removes the event listener
(Inherited from EventDispatcher.)
RemoveEventListener(String, EventHandler)
Removes the event listener
(Inherited from EventDispatcher.)
ResetTimeoutOnProgress
Request timeout in seconds

ResponseMode
Response mode Token or WWW (the default is token) If ResponseMode.Token, the argument passed to result handler is AsyncToken, else if ResponseMode.WWW, the argument passed to result handler is current WWW

Responses
You can peek to responses through this collection Available on ALL_PROCESSED event

Send(WebRequest)
Sends a request This method is always called when calling any of Send overrides

Send(WebRequest, array<Responder>[]()[][])
Sends a request

Send(WebRequest, array<ResultHandler>[]()[][])
Sends a request

Send()()()()
Sends a request

Send(array<Responder>[]()[][])
Sends a request

Send(String)
Sends a request

Send(String, array<Responder>[]()[][])
Sends a request

Send(String, array<ResultHandler>[]()[][])
Sends a request

Send(String, array<Byte>[]()[][])
Sends a request

Send(String, array<Byte>[]()[][], array<Responder>[]()[][])
Sends a request

Send(String, array<Byte>[]()[][], Hashtable)
Sends a request

Send(String, array<Byte>[]()[][], Hashtable, array<Responder>[]()[][])
Sends a request

Send(String, WWWForm)
Sends a request

Send(String, WWWForm, array<Responder>[]()[][])
Sends a request

Send(array<Byte>[]()[][])
Sends a request

Send(array<Byte>[]()[][], array<Responder>[]()[][])
Sends a request

Send(array<Byte>[]()[][], Hashtable)
Sends a request

Send(array<Byte>[]()[][], Hashtable, array<Responder>[]()[][])
Sends a request

Send(WWWForm)
Sends a request

Send(WWWForm, array<Responder>[]()[][])
Sends a request

Send(WWWForm, Hashtable, array<Responder>[]()[][])
Sends a request

StopAll()()()()
Stops all requests from processing

Timeout
Request timeout in seconds

TIMEOUT
This event fires when any request is in timeout

ToString()()()() (Overrides Object.ToString()()()().)
Url
The URL of the server-side If defined, one can use Send() method without parameters

Inheritance Hierarchy

Assembly: eDriven.Networking (Module: eDriven.Networking) Version: 2.0.1.0 (2.0.1.0)