diff options
author | Jeff Ames | 2008-08-18 00:39:10 +0000 |
---|---|---|
committer | Jeff Ames | 2008-08-18 00:39:10 +0000 |
commit | 6ef9d4da901a346c232458317cca6268da888e2e (patch) | |
tree | dd1d935b10f34f261839da9f9879c02322e8ede7 /OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs | |
parent | Update svn properties, minor formatting cleanup. (diff) | |
download | opensim-SC-6ef9d4da901a346c232458317cca6268da888e2e.zip opensim-SC-6ef9d4da901a346c232458317cca6268da888e2e.tar.gz opensim-SC-6ef9d4da901a346c232458317cca6268da888e2e.tar.bz2 opensim-SC-6ef9d4da901a346c232458317cca6268da888e2e.tar.xz |
Formatting cleanup.
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs index 439bbb4..2bb91a4 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs | |||
@@ -23,7 +23,7 @@ | |||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 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 | 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. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | using System; | 29 | using System; |
@@ -42,7 +42,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
42 | public class Rest | 42 | public class Rest |
43 | { | 43 | { |
44 | 44 | ||
45 | internal static readonly log4net.ILog Log = | 45 | internal static readonly log4net.ILog Log = |
46 | log4net.LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 46 | log4net.LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
47 | 47 | ||
48 | internal static bool DEBUG = Log.IsDebugEnabled; | 48 | internal static bool DEBUG = Log.IsDebugEnabled; |
@@ -106,7 +106,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
106 | /// supported by all servers. See Respond | 106 | /// supported by all servers. See Respond |
107 | /// to see how these are handled. | 107 | /// to see how these are handled. |
108 | /// </summary> | 108 | /// </summary> |
109 | 109 | ||
110 | // REST AGENT 1.0 interpretations | 110 | // REST AGENT 1.0 interpretations |
111 | public const string GET = "get"; // information retrieval - server state unchanged | 111 | public const string GET = "get"; // information retrieval - server state unchanged |
112 | public const string HEAD = "head"; // same as get except only the headers are returned. | 112 | public const string HEAD = "head"; // same as get except only the headers are returned. |
@@ -138,7 +138,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
138 | public static readonly char C_PERIOD = '.'; | 138 | public static readonly char C_PERIOD = '.'; |
139 | public static readonly char C_COMMA = ','; | 139 | public static readonly char C_COMMA = ','; |
140 | public static readonly char C_DQUOTE = '"'; | 140 | public static readonly char C_DQUOTE = '"'; |
141 | 141 | ||
142 | public static readonly string CS_SPACE = " "; | 142 | public static readonly string CS_SPACE = " "; |
143 | public static readonly string CS_SLASH = "/"; | 143 | public static readonly string CS_SLASH = "/"; |
144 | public static readonly string CS_PATHSEP = "/"; | 144 | public static readonly string CS_PATHSEP = "/"; |
@@ -147,7 +147,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
147 | public static readonly string CS_PERIOD = "."; | 147 | public static readonly string CS_PERIOD = "."; |
148 | public static readonly string CS_COMMA = ","; | 148 | public static readonly string CS_COMMA = ","; |
149 | public static readonly string CS_DQUOTE = "\""; | 149 | public static readonly string CS_DQUOTE = "\""; |
150 | 150 | ||
151 | public static readonly char[] CA_SPACE = { C_SPACE }; | 151 | public static readonly char[] CA_SPACE = { C_SPACE }; |
152 | public static readonly char[] CA_SLASH = { C_SLASH }; | 152 | public static readonly char[] CA_SLASH = { C_SLASH }; |
153 | public static readonly char[] CA_PATHSEP = { C_PATHSEP }; | 153 | public static readonly char[] CA_PATHSEP = { C_PATHSEP }; |
@@ -311,7 +311,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
311 | public const string AS_DIGEST = "Digest"; | 311 | public const string AS_DIGEST = "Digest"; |
312 | 312 | ||
313 | /// Supported Digest algorithms | 313 | /// Supported Digest algorithms |
314 | 314 | ||
315 | public const string Digest_MD5 = "MD5"; // assumedd efault if omitted | 315 | public const string Digest_MD5 = "MD5"; // assumedd efault if omitted |
316 | public const string Digest_MD5Sess = "MD5-sess"; | 316 | public const string Digest_MD5Sess = "MD5-sess"; |
317 | 317 | ||
@@ -359,7 +359,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
359 | int val = 0; | 359 | int val = 0; |
360 | int sum = 0; | 360 | int sum = 0; |
361 | string tmp = null; | 361 | string tmp = null; |
362 | 362 | ||
363 | if (hex != null) | 363 | if (hex != null) |
364 | { | 364 | { |
365 | tmp = hex.ToLower(); | 365 | tmp = hex.ToLower(); |
@@ -446,20 +446,20 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
446 | { | 446 | { |
447 | if (i % 4 == 0) Console.Write(" "); | 447 | if (i % 4 == 0) Console.Write(" "); |
448 | // if (i%16 == 0) Console.Write(" "); | 448 | // if (i%16 == 0) Console.Write(" "); |
449 | Console.Write(" "); | 449 | Console.Write(" "); |
450 | buffer[i % Rest.DumpLineSize] = ' '; | 450 | buffer[i % Rest.DumpLineSize] = ' '; |
451 | } | 451 | } |
452 | Console.WriteLine(" |"+(new String(buffer))+"|"); | 452 | Console.WriteLine(" |"+(new String(buffer))+"|"); |
453 | } | 453 | } |
454 | else | 454 | else |
455 | { | 455 | { |
456 | Console.Write("\n"); | 456 | Console.Write("\n"); |
457 | } | 457 | } |
458 | 458 | ||
459 | } | 459 | } |
460 | 460 | ||
461 | } | 461 | } |
462 | 462 | ||
463 | // Local exception type | 463 | // Local exception type |
464 | 464 | ||
465 | public class RestException : Exception | 465 | public class RestException : Exception |
@@ -470,8 +470,8 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
470 | internal string httpmethod; | 470 | internal string httpmethod; |
471 | internal string httppath; | 471 | internal string httppath; |
472 | 472 | ||
473 | public RestException(string msg) : base(msg) | 473 | public RestException(string msg) : base(msg) |
474 | { | 474 | { |
475 | } | 475 | } |
476 | } | 476 | } |
477 | 477 | ||