/src/yolk-configuration.adb

http://github.com/ThomasLocke/yolk · Ada · 253 lines · 167 code · 62 blank · 24 comment · 0 complexity · 21932e75535e4320fb25076610815f6e MD5 · raw file

  1. -------------------------------------------------------------------------------
  2. -- --
  3. -- Copyright (C) 2010-, Thomas ¸cke --
  4. -- --
  5. -- This library is free software; you can redistribute it and/or modify --
  6. -- it under terms of the GNU General Public License as published by the --
  7. -- Free Software Foundation; either version 3, or (at your option) any --
  8. -- later version. This library is distributed in the hope that it will be --
  9. -- useful, but WITHOUT ANY WARRANTY; without even the implied warranty of --
  10. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --
  11. -- --
  12. -- As a special exception under Section 7 of GPL version 3, you are --
  13. -- granted additional permissions described in the GCC Runtime Library --
  14. -- Exception, version 3.1, as published by the Free Software Foundation. --
  15. -- --
  16. -- You should have received a copy of the GNU General Public License and --
  17. -- a copy of the GCC Runtime Library Exception along with this program; --
  18. -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
  19. -- <http://www.gnu.org/licenses/>. --
  20. -- --
  21. -------------------------------------------------------------------------------
  22. with AWS.Config.Set;
  23. package body Yolk.Configuration is
  24. ---------------------------
  25. -- Get_AWS_Configuration --
  26. ---------------------------
  27. function Get_AWS_Configuration return AWS.Config.Object
  28. is
  29. Object : AWS.Config.Object;
  30. begin
  31. AWS.Config.Set.Accept_Queue_Size
  32. (O => Object,
  33. Value => Config.Get (Accept_Queue_Size));
  34. AWS.Config.Set.Admin_Password
  35. (O => Object,
  36. Value => Config.Get (Admin_Password));
  37. AWS.Config.Set.Admin_URI
  38. (O => Object,
  39. Value => Config.Get (Admin_URI));
  40. AWS.Config.Set.Case_Sensitive_Parameters
  41. (O => Object,
  42. Value => Config.Get (Case_Sensitive_Parameters));
  43. AWS.Config.Set.Certificate
  44. (O => Object,
  45. Filename => Config.Get (Certificate));
  46. AWS.Config.Set.Certificate_Required
  47. (O => Object,
  48. Value => Config.Get (Certificate_Required));
  49. AWS.Config.Set.Check_URL_Validity
  50. (O => Object,
  51. Value => Config.Get (Check_URL_Validity));
  52. AWS.Config.Set.Cleaner_Client_Data_Timeout
  53. (O => Object,
  54. Value => Config.Get (Cleaner_Client_Data_Timeout));
  55. AWS.Config.Set.Cleaner_Client_Header_Timeout
  56. (O => Object,
  57. Value => Config.Get (Cleaner_Client_Header_Timeout));
  58. AWS.Config.Set.Cleaner_Server_Response_Timeout
  59. (O => Object,
  60. Value => Config.Get (Cleaner_Server_Response_Timeout));
  61. AWS.Config.Set.Cleaner_Wait_For_Client_Timeout
  62. (O => Object,
  63. Value => Config.Get (Cleaner_Wait_For_Client_Timeout));
  64. AWS.Config.Set.Context_Lifetime
  65. (Value => Config.Get (Context_Lifetime));
  66. AWS.Config.Set.CRL_File
  67. (O => Object,
  68. Filename => Config.Get (CRL_File));
  69. AWS.Config.Set.Directory_Browser_Page
  70. (O => Object,
  71. Value => Config.Get (System_Templates_Path) & "/aws_directory.tmpl");
  72. AWS.Config.Set.Exchange_Certificate
  73. (O => Object,
  74. Value => Config.Get (Exchange_Certificate));
  75. AWS.Config.Set.Force_Client_Data_Timeout
  76. (O => Object,
  77. Value => Config.Get (Force_Client_Data_Timeout));
  78. AWS.Config.Set.Force_Client_Header_Timeout
  79. (O => Object,
  80. Value => Config.Get (Force_Client_Header_Timeout));
  81. AWS.Config.Set.Force_Server_Response_Timeout
  82. (O => Object,
  83. Value => Config.Get (Force_Server_Response_Timeout));
  84. AWS.Config.Set.Force_Wait_For_Client_Timeout
  85. (O => Object,
  86. Value => Config.Get (Force_Wait_For_Client_Timeout));
  87. AWS.Config.Set.Free_Slots_Keep_Alive_Limit
  88. (O => Object,
  89. Value => Config.Get (Free_Slots_Keep_Alive_Limit));
  90. AWS.Config.Set.Hotplug_Port
  91. (O => Object,
  92. Value => Config.Get (Hotplug_Port));
  93. AWS.Config.Set.Keep_Alive_Force_Limit
  94. (O => Object,
  95. Value => Config.Get (Keep_Alive_Force_Limit));
  96. AWS.Config.Set.Key
  97. (O => Object,
  98. Filename => Config.Get (Key));
  99. AWS.Config.Set.Line_Stack_Size
  100. (O => Object,
  101. Value => Config.Get (Line_Stack_Size));
  102. AWS.Config.Set.Log_Extended_Fields
  103. (O => Object,
  104. Value => Config.Get (Log_Extended_Fields));
  105. AWS.Config.Set.Max_Concurrent_Download
  106. (Value => Config.Get (Max_Concurrent_Download));
  107. AWS.Config.Set.Max_Connection
  108. (O => Object,
  109. Value => Config.Get (Max_Connection));
  110. AWS.Config.Set.Max_POST_Parameters
  111. (O => Object,
  112. Value => Config.Get (Max_POST_Parameters));
  113. AWS.Config.Set.Max_WebSocket_Handler
  114. (Value => Config.Get (Max_WebSocket_Handler));
  115. AWS.Config.Set.MIME_Types
  116. (O => Object,
  117. Value => Config.Get (MIME_Types_File));
  118. AWS.Config.Set.Protocol_Family
  119. (O => Object,
  120. Value => Config.Get (Protocol_Family));
  121. AWS.Config.Set.Receive_Timeout
  122. (O => Object,
  123. Value => Config.Get (Receive_Timeout));
  124. AWS.Config.Set.Reuse_Address
  125. (O => Object,
  126. Value => Config.Get (Reuse_Address));
  127. AWS.Config.Set.Security
  128. (O => Object,
  129. Value => Config.Get (Security));
  130. AWS.Config.Set.Security_Mode
  131. (O => Object,
  132. Mode => Config.Get (Security_Mode));
  133. AWS.Config.Set.Send_Timeout
  134. (O => Object,
  135. Value => Config.Get (Send_Timeout));
  136. AWS.Config.Set.Server_Host
  137. (O => Object,
  138. Value => Config.Get (Server_Host));
  139. AWS.Config.Set.Server_Name
  140. (O => Object,
  141. Value => Config.Get (Server_Name));
  142. AWS.Config.Set.Server_Port
  143. (O => Object,
  144. Value => Config.Get (Server_Port));
  145. AWS.Config.Set.Server_Priority
  146. (O => Object,
  147. Value => Config.Get (Server_Priority));
  148. AWS.Config.Set.Service_Priority
  149. (Value => Config.Get (Service_Priority));
  150. AWS.Config.Set.Session
  151. (O => Object,
  152. Value => Config.Get (Session));
  153. AWS.Config.Set.Session_Cleanup_Interval
  154. (Value => Config.Get (Session_Cleanup_Interval));
  155. AWS.Config.Set.Session_Cleaner_Priority
  156. (Value => Config.Get (Session_Cleaner_Priority));
  157. AWS.Config.Set.Session_Id_Length
  158. (Value => Config.Get (Session_Id_Length));
  159. AWS.Config.Set.Session_Lifetime
  160. (Value => Config.Get (Session_Lifetime));
  161. AWS.Config.Set.Session_Name
  162. (O => Object,
  163. Value => Config.Get (Session_Name));
  164. AWS.Config.Set.Status_Page
  165. (O => Object,
  166. Value => Config.Get (Status_Page));
  167. AWS.Config.Set.Transient_Cleanup_Interval
  168. (Value => Config.Get (Transient_Cleanup_Interval));
  169. AWS.Config.Set.Transient_Lifetime
  170. (Value => Config.Get (Transient_Lifetime));
  171. AWS.Config.Set.Trusted_CA
  172. (O => Object,
  173. Filename => Config.Get (Trusted_CA));
  174. AWS.Config.Set.Upload_Directory
  175. (O => Object,
  176. Value => Config.Get (Upload_Directory));
  177. AWS.Config.Set.Upload_Size_Limit
  178. (O => Object,
  179. Value => Config.Get (Upload_Size_Limit));
  180. AWS.Config.Set.WebSocket_Message_Queue_Size
  181. (Value => Config.Get (WebSocket_Message_Queue_Size));
  182. AWS.Config.Set.WebSocket_Origin
  183. (Value => Config.Get (WebSocket_Origin));
  184. AWS.Config.Set.WebSocket_Priority
  185. (Value => Config.Get (WebSocket_Priority));
  186. AWS.Config.Set.WWW_Root
  187. (O => Object,
  188. Value => Config.Get (WWW_Root));
  189. return Object;
  190. end Get_AWS_Configuration;
  191. end Yolk.Configuration;