factory.initialize(this);
} catch (Exception ex) {
String err = ("Unable to create a client factory of class "+
"\"" + factory_class + "\""+
" details: \r\n" + ex.getMessage());
throw new ServerHandlerInitException(err);
}
// If needed, create a server socket instance for that context:
try {
socket = factory.createServerSocket();
} catch (IOException ex) {
String err = ("Unable to create server socket on port "+port
+ ": " + ex.getMessage() + ".");
throw new ServerHandlerInitException(err);
}
this.thread = new Thread (this) ;
this.thread.setName(identifier) ;
this.thread.setPriority (Thread.MAX_PRIORITY) ;
}