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

More...

Inheritance diagram for Ext.Net.RestProxy.Builder< TRestProxy, TBuilder >:
Ext.Net.AjaxProxy.Builder< TRestProxy, TBuilder >

Public Member Functions

 Builder (TRestProxy component)
 
virtual TBuilder AppendId (bool appendId)
 True to automatically append the ID of a Model instance when performing a request based on that single instance. See RestProxy intro docs for more details. Defaults to true. More...
 
virtual TBuilder Format (string format)
 Optional data format to send to the server when making any request (e.g. 'json'). See the RestProxy intro docs for full details. Defaults to undefined. More...
 
 Builder ()
 
 Builder (RestProxy component)
 
 Builder (RestProxy.Config config)
 
- Public Member Functions inherited from Ext.Net.AjaxProxy.Builder< TRestProxy, TBuilder >
 Builder (TAjaxProxy component)
 
 Builder ()
 
 Builder (AjaxProxy component)
 
 Builder (AjaxProxy.Config config)
 
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...
 

Static Public Member Functions

static implicit operator Builder (RestProxy component)
 
- Static Public Member Functions inherited from Ext.Net.AjaxProxy.Builder< TRestProxy, TBuilder >
static implicit operator Builder (AjaxProxy component)
 

Detailed Description

Type Constraints
TRestProxy :RestProxy 
TBuilder :Builder 
TBuilder :TRestProxy 
TBuilder :TBuilder 

Constructor & Destructor Documentation

◆ Builder() [1/4]

Ext.Net.RestProxy.Builder< TRestProxy, TBuilder >.Builder ( TRestProxy  component)
inline

◆ Builder() [2/4]

Ext.Net.RestProxy.Builder< TRestProxy, TBuilder >.Builder ( )
inline

◆ Builder() [3/4]

Ext.Net.RestProxy.Builder< TRestProxy, TBuilder >.Builder ( RestProxy  component)
inline

◆ Builder() [4/4]

Ext.Net.RestProxy.Builder< TRestProxy, TBuilder >.Builder ( RestProxy.Config  config)
inline

Member Function Documentation

◆ AppendId()

virtual TBuilder Ext.Net.RestProxy.Builder< TRestProxy, TBuilder >.AppendId ( bool  appendId)
inlinevirtual

True to automatically append the ID of a Model instance when performing a request based on that single instance. See RestProxy intro docs for more details. Defaults to true.

◆ Format()

virtual TBuilder Ext.Net.RestProxy.Builder< TRestProxy, TBuilder >.Format ( string  format)
inlinevirtual

Optional data format to send to the server when making any request (e.g. 'json'). See the RestProxy intro docs for full details. Defaults to undefined.

◆ operator Builder()

static implicit Ext.Net.RestProxy.Builder< TRestProxy, TBuilder >.operator Builder ( RestProxy  component)
inlinestatic


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