<commit_before>indexing
	description: "Configuration information required for GOA_APPLICATION_SERVER"
	author: "<NAME> <<EMAIL>>"
	date: "$Date$"
	revision: "$Revision$"
	copyright: "(c) <NAME>"
	License: "Eiffel Forum License Version 2 (see forum.txt)"

deferred class
	GOA_APPLICATION_CONFIGURATION
	
inherit
	
	GOA_TRANSACTION_MANAGEMENT
	KL_SHARED_EXECUTION_ENVIRONMENT
	KL_SHARED_FILE_SYSTEM
	SHARED_SERVLETS

feature -- Page Sequencing
	
	next_page (processing_result: REQUEST_PROCESSING_RESULT): GOA_DISPLAYABLE_SERVLET is
			-- What is the next page to display to the user?
		require
			valid_processing_result: processing_result /= Void and then processing_result.was_processed
			not_ok_to_read_write_data: implements_transaction_and_version_access implies not (ok_to_read_data (processing_result) or ok_to_write_data (processing_result))
		deferred
		ensure
			valid_result: Result /= Void
			result_ok_to_display: Result.ok_to_display (processing_result)
			not_ok_to_read_write_data: implements_transaction_and_version_access implies not (ok_to_read_data (processing_result) or ok_to_write_data (processing_result))
		end
		
	data_directory: STRING is
			-- Interpreted version of internal_data_directory
		once
			Result := execution_environment.interpreted_string (internal_data_directory)
		end
		
	document_root: STRING is
			-- Interpreted version of internal_document_root
		once
			Result := execution_environment.interpreted_string (internal_document_root)
		end
		
feature -- Deferred Features

	internal_data_directory: STRING is
			-- Directory containing application data files; e.g. must exist and be writable
			-- Include trailing directory separator
		deferred
		end
		
	internal_document_root: STRING is
			-- The document root directory where stand alone server looks for documents
			-- Not sure what this is used for in a fastcgi application (use an arbitrary string).
		deferred
		end

	internal_test_mode: BOOLEAN is
			-- This configuration should run in "test mode"
			-- In test mode, page xml data is written to file
			-- In test mode, the application does not run as a daemon
		deferred
		end
		
	port: INTEGER is
			-- Server connection port
		deferred
		end
		
	default_virtual_host_lookup_string: STRING is
			-- The default virtual host name to use, if the actual host name
			-- does not correspond to an existing VIRTUAL_DOMAIN_HOST
		deferred
		end
<commit_msg>Added host attribute<commit_after>indexing
	description: "Configuration information required for GOA_APPLICATION_SERVER"
	author: "<NAME> <<EMAIL>>"
	date: "$Date$"
	revision: "$Revision$"
	copyright: "(c) <NAME>"
	License: "Eiffel Forum License Version 2 (see forum.txt)"

deferred class
	GOA_APPLICATION_CONFIGURATION
	
inherit
	
	GOA_TRANSACTION_MANAGEMENT
	KL_SHARED_EXECUTION_ENVIRONMENT
	KL_SHARED_FILE_SYSTEM
	SHARED_SERVLETS

feature -- Page Sequencing
	
	next_page (processing_result: REQUEST_PROCESSING_RESULT): GOA_DISPLAYABLE_SERVLET is
			-- What is the next page to display to the user?
		require
			valid_processing_result: processing_result /= Void and then processing_result.was_processed
			not_ok_to_read_write_data: implements_transaction_and_version_access implies not (ok_to_read_data (processing_result) or ok_to_write_data (processing_result))
		deferred
		ensure
			valid_result: Result /= Void
			result_ok_to_display: Result.ok_to_display (processing_result)
			not_ok_to_read_write_data: implements_transaction_and_version_access implies not (ok_to_read_data (processing_result) or ok_to_write_data (processing_result))
		end
		
	data_directory: STRING is
			-- Interpreted version of internal_data_directory
		once
			Result := execution_environment.interpreted_string (internal_data_directory)
		end
		
	document_root: STRING is
			-- Interpreted version of internal_document_root
		once
			Result := execution_environment.interpreted_string (internal_document_root)
		end
		
feature -- Deferred Features

	internal_data_directory: STRING is
			-- Directory containing application data files; e.g. must exist and be writable
			-- Include trailing directory separator
		deferred
		end
		
	internal_document_root: STRING is
			-- The document root directory where stand alone server looks for documents
			-- Not sure what this is used for in a fastcgi application (use an arbitrary string).
		deferred
		end

	internal_test_mode: BOOLEAN is
			-- This configuration should run in "test mode"
			-- In test mode, page xml data is written to file
			-- In test mode, the application does not run as a daemon
		deferred
		end
		
	host: STRING is
			-- Host name for server to listen on
			-- Use 'localhost' to listen only to requests from local machine (domain socket)
			-- Use IP Address of host running the MSP_SERVER if server should accept requests from other machines
		once
			Result := "localhost"
		end
		
		
	port: INTEGER is
			-- Server connection port
		deferred
		end
		
	default_virtual_host_lookup_string: STRING is
			-- The default virtual host name to use, if the actual host name
			-- does not correspond to an existing VIRTUAL_DOMAIN_HOST
		deferred
		end

{'fraction_non_alphanumeric': 0.05219941348973607, 'fraction_numerical': 0.00039100684261974585, 'mean_word_length': 4.454157782515991, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2646276', 'n_tokens_mistral': 1702, 'n_tokens_neox': 1493, 'n_words': 500}