28 |
|
|
29 |
|
//---CONSTRUCTORS--- |
30 |
|
|
31 |
< |
public HostInit(Socket socket, Configurator configurator, Logger logger) throws IOException { |
32 |
< |
_configurator = configurator; |
31 |
> |
public HostInit(Socket socket, ConfigurationManager configManager, Logger logger) throws IOException { |
32 |
> |
_configManager = configManager; |
33 |
|
_logger = logger; |
34 |
|
_socket = socket; |
35 |
|
_socketIn = new BufferedReader(new InputStreamReader(_socket.getInputStream())); |
48 |
|
throw new IOException("Protocol Error"); |
49 |
|
} |
50 |
|
|
51 |
< |
Configuration myConfig = _configurator.getConfiguration(_socket.getInetAddress().getHostName().toLowerCase()); |
51 |
> |
Configuration myConfig = _configManager.getConfiguration(_socket.getInetAddress().getHostName().toLowerCase()); |
52 |
|
if (myConfig == null) { |
53 |
|
_socketOut.println("ERROR"); |
54 |
|
throw new IOException("No Configuration File For Host"); |
126 |
|
|
127 |
|
//---ATTRIBUTES--- |
128 |
|
|
129 |
< |
Configurator _configurator; |
129 |
> |
ConfigurationManager _configManager; |
130 |
|
Logger _logger; |
131 |
|
Socket _socket; |
132 |
|
BufferedReader _socketIn; |