1 //
2 // String.cs
3 //
4 // Permission is hereby granted, free of charge, to any person obtaining
5 // a copy of this software and associated documentation files (the
6 // "Software"), to deal in the Software without restriction, including
7 // without limitation the rights to use, copy, modify, merge, publish,
8 // distribute, sublicense, and/or sell copies of the Software, and to
9 // permit persons to whom the Software is furnished to do so, subject to
10 // the following conditions:
11 //
12 // The above copyright notice and this permission notice shall be
13 // included in all copies or substantial portions of the Software.
14 //
15 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 //
23 
24 namespace Mono.WebServer.FastCgi {
25 	static class Strings {
26 		public static string Server_MaxConnsOutOfRange = "At least one connection must be permitted.";
27 		public static string Server_MaxReqsOutOfRange = "At least one request must be permitted.";
28 		public static string Server_AlreadyStarted = "The server is already started.";
29 		public static string Server_NotStarted = "The server has not been started.";
30 		public static string Server_ValueUnknown = "Unknown value, {0}, requested by client.";
31 		public static string Server_Accepting = "Accepting an incoming connection.";
32 		public static string Server_AcceptFailed = "Failed to accept connection. Reason: {0}";
33 		public static string Server_ConnectionFailed = "Failed to process connection.";
34 		public static string Server_ConnectionClosed = "The FastCGI connection has been closed.";
35 		public static string Server_ResponderDoesNotImplement = "Responder must implement the FastCgi.IResponder interface.";
36 		public static string Server_ResponderLacksProperConstructor = "Responder must contain public constructor {0}(ResponderRequest)";
37 		public static string Server_ResponderNotSupported = "Responder role is not supported.";
38 		public static string Connection_BeginningRun = "Beginning to receive records on connection.";
39 		public static string Connection_EndingRun = "Finished receiving records on connection.";
40 		public static string Connection_RecordNotReceived = "Failed to receive record.";
41 		public static string Connection_RequestAlreadyExists = "Request with given ID already exists.";
42 		public static string Connection_RoleNotSupported = "{0} role not supported by server.";
43 		public static string Connection_RequestDoesNotExist = "Request {0} does not exist.";
44 		public static string Connection_AbortRecordReceived = "FastCGI Abort Request";
45 		public static string Connection_UnknownRecordType = "Unknown type, {0}, encountered.";
46 		public static string Connection_Terminating = "Terminating connection.";
47 		public static string Connection_NoSocketInRun = "Run called, but no socket found.";
48 		public static string NameValuePair_ParameterRead = "Read parameter. ({0} = {1})";
49 		public static string NameValuePair_DuplicateParameter = "Duplicate name, {0}, encountered. Overwriting existing value.";
50 		public static string NameValuePair_DictionaryContainsNonString = "Dictionary must only contain string values.";
51 		public static string NameValuePair_LengthLessThanZero = "Length must be greater than or equal to zero.";
52 		public static string Record_Received = "Record received. (Type: {0}, ID: {1}, Length: {2})";
53 		public static string Record_Sent = "Record sent. (Type: {0}, ID: {1}, Length: {2})";
54 		public static string Record_DataTooBig = "Data exceeds 65535 bytes and cannot be stored.";
55 		public static string Record_ToString = "FastCGI Record:\n   Version:        {0}\n   Type:           {0}\n   Request ID:     {0}\n   Content Length: {0}";
56 		public static string BeginRequestBody_WrongType = "The record's type is not BeginRequest.";
57 		public static string BeginRequestBody_WrongSize = "8 bytes expected, got {0}.";
58 		public static string UnmanagedSocket_NotSupported = "Unmanaged sockets not supported.";
59 		public static string UnixSocket_AlreadyExists = "There's already a server listening on {0}";
60 		public static string ResponderRequest_IncompleteInput = "Insufficient input data received. (Expected {0} bytes but got {1}.)";
61 		public static string ResponderRequest_NoContentLength = "Content length parameter missing.";
62 		public static string ResponderRequest_NoContentLengthNotNumber = "Content length parameter not an integer.";
63 		public static string ResponderRequest_ContentExceedsLength = "Input data exceeds content length.";
64 		public static string Request_Aborting = "Aborting request {0}. Reason follows:";
65 		public static string Request_ParametersAlreadyCompleted = "The parameter stream has already been marked as closed. Ignoring record.";
66 		public static string Request_StandardInputAlreadyCompleted = "The standard input stream has already been marked as closed. Ignoring record.";
67 		public static string Request_FileDataAlreadyCompleted = "The file data stream has already been marked as closed. Ignoring record.";
68 		public static string Request_CanNotParseParameters = "Failed to parse parameter data.";
69 		public static string Request_NotStandardInput = "The record's type is not StandardInput.";
70 		public static string Request_NotFileData = "The record's type is not Data.";
71 	}
72 }