|
| 1 | +------------------------------------------------------------------------------ |
| 2 | +-- Ada Web Server -- |
| 3 | +-- -- |
| 4 | +-- Copyright (C) 2020, AdaCore -- |
| 5 | +-- -- |
| 6 | +-- This is free software; you can redistribute it and/or modify it -- |
| 7 | +-- under terms of the GNU General Public License as published by the -- |
| 8 | +-- Free Software Foundation; either version 3, or (at your option) any -- |
| 9 | +-- later version. This software is distributed in the hope that it will -- |
| 10 | +-- be useful, but WITHOUT ANY WARRANTY; without even the implied warranty -- |
| 11 | +-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- |
| 12 | +-- General Public License for more details. -- |
| 13 | +-- -- |
| 14 | +-- You should have received a copy of the GNU General Public License -- |
| 15 | +-- distributed with this software; see file COPYING3. If not, go -- |
| 16 | +-- to http://www.gnu.org/licenses for a complete copy of the license. -- |
| 17 | +------------------------------------------------------------------------------ |
| 18 | + |
| 19 | +with Ada.Text_IO; |
| 20 | + |
| 21 | +with AWS.Config; |
| 22 | +with AWS.Utils; |
| 23 | + |
| 24 | +procedure Prog_Config is |
| 25 | + |
| 26 | + use Ada; |
| 27 | + use AWS; |
| 28 | + |
| 29 | + Conf : constant Config.Object := Config.Get_Current; |
| 30 | + -- Config as read from the ini files |
| 31 | + |
| 32 | + ------------- |
| 33 | + -- Display -- |
| 34 | + ------------- |
| 35 | + |
| 36 | + procedure Display (O : Config.Object) is |
| 37 | + begin |
| 38 | + Text_IO.Put_Line |
| 39 | + ("Disable Program Ini : " |
| 40 | + & Boolean'Image (Config.Disable_Program_Ini)); |
| 41 | + Text_IO.Put_Line (Config.Server_Name (O)); |
| 42 | + Text_IO.Put_Line (Config.WWW_Root (O)); |
| 43 | + Text_IO.Put_Line (Utils.Image (Config.Server_Port (O))); |
| 44 | + Text_IO.Put_Line (Utils.Image (Config.Max_Connection (O))); |
| 45 | + Text_IO.Put_Line (Config.Directory_Browser_Page (O)); |
| 46 | + Text_IO.New_Line; |
| 47 | + end Display; |
| 48 | + |
| 49 | +begin |
| 50 | + Display (Conf); |
| 51 | +end Prog_Config; |
0 commit comments