Android App zur Berechnung einer HDR Belichtungsreihe.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

xhr.js 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*******************************************************************************
  2. * Copyright (c) 2009 IBM Corporation and others.
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * http://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors:
  9. * IBM Corporation - initial API and implementation
  10. ******************************************************************************
  11. *
  12. * Based on information from https://developer.mozilla.org/En/XMLHttpRequest
  13. * and http://msdn2.microsoft.com/en-us/library/ms533062.aspx
  14. **/
  15. /**
  16. * function createRequest
  17. * @type XMLHttpRequest
  18. * @memberOf Window
  19. */
  20. Window.prototype.createRequest=new function(){return new XMLHttpRequest();};
  21. /**
  22. * Object XMLHttpRequest
  23. * @super Global
  24. * @type constructor
  25. * @memberOf Global
  26. */
  27. XMLHttpRequest.prototype=new Object();
  28. function XMLHttpRequest(){};
  29. /**
  30. * function onreadystatechange
  31. * @memberOf XMLHttpRequest
  32. */
  33. XMLHttpRequest.prototype.onreadystatechange=function(){};
  34. /**
  35. * property readyState
  36. * @type Number
  37. * @memberOf XMLHttpRequest
  38. */
  39. XMLHttpRequest.prototype.readyState=0;
  40. /**
  41. * property responseText
  42. * @type String
  43. * @memberOf XMLHttpRequest
  44. */
  45. XMLHttpRequest.prototype.responseText="";
  46. /**
  47. * property responseXML
  48. * @type Document
  49. * @memberOf XMLHttpRequest
  50. */
  51. XMLHttpRequest.prototype.responseXML=new Document();
  52. /**
  53. * property status
  54. * @type Number
  55. * @memberOf XMLHttpRequest
  56. */
  57. XMLHttpRequest.prototype.status=0;
  58. /**
  59. * property statusText
  60. * @type String
  61. * @memberOf XMLHttpRequest
  62. */
  63. XMLHttpRequest.prototype.statusText="";
  64. /**
  65. * function abort()
  66. * @memberOf XMLHttpRequest
  67. */
  68. XMLHttpRequest.prototype.abort=function(){};
  69. /**
  70. * function getAllResponseHeaders()
  71. * @type String
  72. * @memberOf XMLHttpRequest
  73. */
  74. XMLHttpRequest.prototype.getAllResponseHeaders=function(){return "";};
  75. /**
  76. * function open(method, url, async, username, password)
  77. * @param {String} method
  78. * @param {String} url
  79. * @param {Boolean} optional async
  80. * @param {String} optional username
  81. * @param {String} optional password
  82. * @memberOf XMLHttpRequest
  83. */
  84. XMLHttpRequest.prototype.open=function(method, url, async, username, password){};
  85. /**
  86. * function send(body)
  87. * @param {Object} body
  88. * @memberOf XMLHttpRequest
  89. */
  90. XMLHttpRequest.prototype.send=function(body){};
  91. /**
  92. * function setRequestHeader(header,value)
  93. * @param {String} header
  94. * @param {String} value
  95. * @memberOf XMLHttpRequest
  96. */
  97. XMLHttpRequest.prototype.setRequestHeader=function(header,value){};
  98. /**
  99. * function getAllResponseHeaders()
  100. * @param {String} header
  101. * @type String
  102. * @memberOf XMLHttpRequest
  103. */
  104. XMLHttpRequest.prototype.getResponseHeader=function(header){return "";};