router = new HttpTunnelRouter(name,new FileServer(new File(root),new File(page404),indexPage,getMimeTypes()));
}
else if(type.equals("http-load-balance-service"))
{
HttpLoadBalancingRouter balancingRouter = new HttpLoadBalancingRouter(name,server.getFileServer());
router = balancingRouter;
XmlElement balancingServers = xServiceDefinition.getElementByName("http-balance-servers");
for(int loop=0;loop<balancingServers.getElementCount();loop++)
{
XmlElement balancingServer = balancingServers.getElementByIndex(loop);
balancingRouter.addBalancingServer( balancingServer.getAttributeValueByName("address"),Integer.parseInt(balancingServer.getAttributeValueByName("port")) );
}
}
if(router!=null)
{