80fd82de75b9cf877a3be74fa1deae64b236f74d.svn-base 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. if (!dojo._hasResource["dojo.data.api.Request"]) { // _hasResource checks added
  2. // by build. Do not use
  3. // _hasResource directly in
  4. // your code.
  5. dojo._hasResource["dojo.data.api.Request"] = true;
  6. dojo.provide("dojo.data.api.Request");
  7. dojo.declare("dojo.data.api.Request", null, {
  8. // summary:
  9. // This class defines out the semantics of what a 'Request'
  10. // object looks like
  11. // when returned from a fetch() method. In general, a request
  12. // object is
  13. // nothing more than the original keywordArgs from fetch with an
  14. // abort function
  15. // attached to it to allow users to abort a particular request
  16. // if they so choose.
  17. // No other functions are required on a general Request object
  18. // return. That does not
  19. // inhibit other store implementations from adding extentions to
  20. // it, of course.
  21. //
  22. // This is an abstract API that data provider implementations
  23. // conform to.
  24. // This file defines methods signatures and intentionally leaves
  25. // all the
  26. // methods unimplemented.
  27. //
  28. // For more details on fetch, see dojo.data.api.Read.fetch().
  29. abort : function() {
  30. // summary:
  31. // This function is a hook point for stores to provide as a
  32. // way for
  33. // a fetch to be halted mid-processing.
  34. // description:
  35. // This function is a hook point for stores to provide as a
  36. // way for
  37. // a fetch to be halted mid-processing. For more details on
  38. // the fetch() api,
  39. // please see dojo.data.api.Read.fetch().
  40. throw new Error('Unimplemented API: dojo.data.api.Request.abort');
  41. }
  42. });
  43. }