Ext.NET  5.3.0
.NET Component Framework for Enterprise Level Apps
Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder > Class Template Reference

More...

Inheritance diagram for Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >:
Ext.Net.ServerProxy.Builder< TAjaxProxy, TBuilder >

Public Member Functions

 Builder (TAjaxProxy component)
 
virtual TBuilder Headers (Action< ParameterCollection > action)
 Any headers to add to the Ajax request. Defaults to undefined. More...
 
virtual TBuilder Json (bool json)
 Send params as JSON object More...
 
virtual TBuilder Xml (bool xml)
 Send params as XML object More...
 
virtual TBuilder ActionMethods (Action< CRUDMethods > action)
 Mapping of action name to HTTP request method. In the basic AjaxProxy these are set to 'GET' for 'read' actions and 'POST' for 'create', 'update' and 'destroy' actions. The Ext.data.proxy.Rest maps these to the correct RESTful methods. More...
 
virtual TBuilder GetMethod (Action< JFunction > action)
 Returns the HTTP method name for a given request. By default this returns based on a lookup on actionMethods. More...
 
virtual TBuilder Password (string password)
 Most oData feeds require basic HTTP authentication. This configuration allows you to specify the password. More...
 
virtual TBuilder UseDefaultXhrHeader (bool useDefaultXhrHeader)
 Set this to false to not send the default Xhr header (X-Requested-With) with every request. This should be set to false when making CORS (cross-domain) requests. Defaults to true. More...
 
virtual TBuilder Username (string username)
 Most oData feeds require basic HTTP authentication. This configuration allows you to specify the username.. More...
 
virtual TBuilder WithCredentials (bool withCredentials)
 This configuration is sometimes necessary when using cross-origin resource sharing. Defaults to false. More...
 
 Builder ()
 
 Builder (AjaxProxy component)
 
 Builder (AjaxProxy.Config config)
 

Static Public Member Functions

static implicit operator Builder (AjaxProxy component)
 

Detailed Description

Type Constraints
TAjaxProxy :AjaxProxy 
TBuilder :Builder 
TBuilder :TAjaxProxy 
TBuilder :TBuilder 

Constructor & Destructor Documentation

◆ Builder() [1/4]

Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.Builder ( TAjaxProxy  component)
inline

◆ Builder() [2/4]

Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.Builder ( )
inline

◆ Builder() [3/4]

Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.Builder ( AjaxProxy  component)
inline

◆ Builder() [4/4]

Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.Builder ( AjaxProxy.Config  config)
inline

Member Function Documentation

◆ ActionMethods()

virtual TBuilder Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.ActionMethods ( Action< CRUDMethods action)
inlinevirtual

Mapping of action name to HTTP request method. In the basic AjaxProxy these are set to 'GET' for 'read' actions and 'POST' for 'create', 'update' and 'destroy' actions. The Ext.data.proxy.Rest maps these to the correct RESTful methods.

Parameters
actionThe action delegate
Returns
An instance of TBuilder

◆ GetMethod()

virtual TBuilder Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.GetMethod ( Action< JFunction action)
inlinevirtual

Returns the HTTP method name for a given request. By default this returns based on a lookup on actionMethods.

Parameters
actionThe action delegate
Returns
An instance of TBuilder

◆ Headers()

virtual TBuilder Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.Headers ( Action< ParameterCollection action)
inlinevirtual

Any headers to add to the Ajax request. Defaults to undefined.

Parameters
actionThe action delegate
Returns
An instance of TBuilder

◆ Json()

virtual TBuilder Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.Json ( bool  json)
inlinevirtual

Send params as JSON object

◆ operator Builder()

static implicit Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.operator Builder ( AjaxProxy  component)
inlinestatic

◆ Password()

virtual TBuilder Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.Password ( string  password)
inlinevirtual

Most oData feeds require basic HTTP authentication. This configuration allows you to specify the password.

◆ UseDefaultXhrHeader()

virtual TBuilder Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.UseDefaultXhrHeader ( bool  useDefaultXhrHeader)
inlinevirtual

Set this to false to not send the default Xhr header (X-Requested-With) with every request. This should be set to false when making CORS (cross-domain) requests. Defaults to true.

◆ Username()

virtual TBuilder Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.Username ( string  username)
inlinevirtual

Most oData feeds require basic HTTP authentication. This configuration allows you to specify the username..

◆ WithCredentials()

virtual TBuilder Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.WithCredentials ( bool  withCredentials)
inlinevirtual

This configuration is sometimes necessary when using cross-origin resource sharing. Defaults to false.

◆ Xml()

virtual TBuilder Ext.Net.AjaxProxy.Builder< TAjaxProxy, TBuilder >.Xml ( bool  xml)
inlinevirtual

Send params as XML object


The documentation for this class was generated from the following file: