TestOSHttpRequest.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSimulator Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. using System;
  28. using System.Collections;
  29. using System.Collections.Generic;
  30. using System.Collections.Specialized;
  31. using System.IO;
  32. using System.Net;
  33. using System.Text;
  34. using System.Web;
  35. using OpenSim.Framework.Servers.HttpServer;
  36. namespace OpenSim.Tests.Common
  37. {
  38. public class TestOSHttpRequest : IOSHttpRequest
  39. {
  40. public string[] AcceptTypes
  41. {
  42. get
  43. {
  44. throw new NotImplementedException ();
  45. }
  46. }
  47. public Encoding ContentEncoding
  48. {
  49. get
  50. {
  51. throw new NotImplementedException ();
  52. }
  53. }
  54. public long ContentLength
  55. {
  56. get
  57. {
  58. throw new NotImplementedException ();
  59. }
  60. }
  61. public long ContentLength64
  62. {
  63. get
  64. {
  65. throw new NotImplementedException ();
  66. }
  67. }
  68. public string ContentType
  69. {
  70. get
  71. {
  72. throw new NotImplementedException ();
  73. }
  74. }
  75. public HttpCookieCollection Cookies
  76. {
  77. get
  78. {
  79. throw new NotImplementedException ();
  80. }
  81. }
  82. public bool HasEntityBody
  83. {
  84. get
  85. {
  86. throw new NotImplementedException ();
  87. }
  88. }
  89. public NameValueCollection Headers { get; set; }
  90. public string HttpMethod
  91. {
  92. get
  93. {
  94. throw new NotImplementedException ();
  95. }
  96. }
  97. public Stream InputStream
  98. {
  99. get
  100. {
  101. throw new NotImplementedException ();
  102. }
  103. }
  104. public bool IsSecured
  105. {
  106. get
  107. {
  108. throw new NotImplementedException ();
  109. }
  110. }
  111. public bool KeepAlive
  112. {
  113. get
  114. {
  115. throw new NotImplementedException ();
  116. }
  117. }
  118. public NameValueCollection QueryString
  119. {
  120. get
  121. {
  122. throw new NotImplementedException ();
  123. }
  124. }
  125. public Hashtable Query
  126. {
  127. get
  128. {
  129. throw new NotImplementedException ();
  130. }
  131. }
  132. public string RawUrl
  133. {
  134. get
  135. {
  136. throw new NotImplementedException ();
  137. }
  138. }
  139. public IPEndPoint RemoteIPEndPoint
  140. {
  141. get
  142. {
  143. throw new NotImplementedException ();
  144. }
  145. }
  146. public Uri Url { get; set; }
  147. public string UserAgent
  148. {
  149. get
  150. {
  151. throw new NotImplementedException ();
  152. }
  153. }
  154. public TestOSHttpRequest()
  155. {
  156. Headers = new NameValueCollection();
  157. }
  158. }
  159. }