1
0

TestOSHttpRequest.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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 bool HasEntityBody
  76. {
  77. get
  78. {
  79. throw new NotImplementedException ();
  80. }
  81. }
  82. public NameValueCollection Headers { get; set; }
  83. public string HttpMethod
  84. {
  85. get
  86. {
  87. throw new NotImplementedException ();
  88. }
  89. }
  90. public Stream InputStream { get; set;}
  91. public bool IsSecured
  92. {
  93. get
  94. {
  95. throw new NotImplementedException ();
  96. }
  97. }
  98. public bool KeepAlive
  99. {
  100. get
  101. {
  102. throw new NotImplementedException ();
  103. }
  104. }
  105. public NameValueCollection QueryString
  106. {
  107. get
  108. {
  109. throw new NotImplementedException ();
  110. }
  111. }
  112. public Hashtable Query
  113. {
  114. get
  115. {
  116. throw new NotImplementedException();
  117. }
  118. }
  119. public Dictionary<string, string> QueryAsDictionary
  120. {
  121. get
  122. {
  123. throw new NotImplementedException();
  124. }
  125. }
  126. public HashSet<string> QueryFlags
  127. {
  128. get
  129. {
  130. throw new NotImplementedException();
  131. }
  132. }
  133. public string RawUrl
  134. {
  135. get
  136. {
  137. throw new NotImplementedException ();
  138. }
  139. }
  140. public IPEndPoint RemoteIPEndPoint
  141. {
  142. get
  143. {
  144. throw new NotImplementedException();
  145. }
  146. }
  147. public IPEndPoint LocalIPEndPoint
  148. {
  149. get
  150. {
  151. throw new NotImplementedException();
  152. }
  153. }
  154. public Uri Url { get; set; }
  155. public string UriPath { get;}
  156. public double ArrivalTS { get; }
  157. public string UserAgent
  158. {
  159. get
  160. {
  161. throw new NotImplementedException ();
  162. }
  163. }
  164. public TestOSHttpRequest()
  165. {
  166. Headers = new NameValueCollection();
  167. }
  168. }
  169. }