2010-11-15 08:39:52 +01:00
|
|
|
/*
|
2011-11-08 17:40:44 +01:00
|
|
|
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
|
2010-11-15 08:39:52 +01:00
|
|
|
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
|
|
|
see: http://dojotoolkit.org/license for details
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-03-04 17:02:28 +01:00
|
|
|
if(!dojo._hasResource["dojo.data.api.Request"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
|
|
|
|
dojo._hasResource["dojo.data.api.Request"] = true;
|
2010-11-15 08:39:52 +01:00
|
|
|
dojo.provide("dojo.data.api.Request");
|
2011-03-04 17:02:28 +01:00
|
|
|
|
2011-11-08 17:40:44 +01:00
|
|
|
|
2011-03-04 17:02:28 +01:00
|
|
|
dojo.declare("dojo.data.api.Request", null, {
|
|
|
|
// summary:
|
|
|
|
// This class defines out the semantics of what a 'Request' object looks like
|
|
|
|
// when returned from a fetch() method. In general, a request object is
|
2011-11-08 17:40:44 +01:00
|
|
|
// nothing more than the original keywordArgs from fetch with an abort function
|
|
|
|
// attached to it to allow users to abort a particular request if they so choose.
|
2011-03-04 17:02:28 +01:00
|
|
|
// No other functions are required on a general Request object return. That does not
|
|
|
|
// inhibit other store implementations from adding extentions to it, of course.
|
|
|
|
//
|
2011-11-08 17:40:44 +01:00
|
|
|
// This is an abstract API that data provider implementations conform to.
|
2011-03-04 17:02:28 +01:00
|
|
|
// This file defines methods signatures and intentionally leaves all the
|
|
|
|
// methods unimplemented.
|
|
|
|
//
|
|
|
|
// For more details on fetch, see dojo.data.api.Read.fetch().
|
|
|
|
|
|
|
|
abort: function(){
|
|
|
|
// summary:
|
2011-11-08 17:40:44 +01:00
|
|
|
// This function is a hook point for stores to provide as a way for
|
2011-03-04 17:02:28 +01:00
|
|
|
// a fetch to be halted mid-processing.
|
|
|
|
// description:
|
2011-11-08 17:40:44 +01:00
|
|
|
// This function is a hook point for stores to provide as a way for
|
2011-03-04 17:02:28 +01:00
|
|
|
// a fetch to be halted mid-processing. For more details on the fetch() api,
|
|
|
|
// please see dojo.data.api.Read.fetch().
|
|
|
|
throw new Error('Unimplemented API: dojo.data.api.Request.abort');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|