Properties Methods Events Config Options Direct Link
Observable
  Proxy

Class Ext.data.Proxy

Package:Ext.data
Defined In:Proxy.js
Class:Proxy
Subclasses:ClientProxy, ServerProxy
Extends:Observable

Proxies are used by Stores to handle the loading and saving of Model data. Usually developers will not need to create or interact with proxies directly.

Types of Proxy

There are two main types of Proxy - Client and Server. The Client proxies save their data locally and include the following subclasses:

The Server proxies save their data by sending requests to some remote server. These proxies include:

Proxies operate on the principle that all operations performed are either Create, Read, Update or Delete. These four operations are mapped to the methods create, read, update and destroy respectively. Each Proxy subclass implements these functions.

The CRUD methods each expect an operation object as the sole argument. The Operation encapsulates information about the action the Store wishes to perform, the model instances that are to be modified, etc. See the Operation documentation for more details. Each CRUD method also accepts a callback function to be called asynchronously on completion.

Proxies also support batching of Operations via a batch object, invoked by the batch method.

Config Options

Config OptionsDefined By
 defaultReaderType : String
The default registered reader type. Defaults to 'json'
Proxy
 defaultWriterType : String
The default registered writer type. Defaults to 'json'
Proxy

Public Properties

This class has no public properties.

Public Methods

MethodDefined By

Public Events

This class has no public events.