com.eurotech.framework.linux.net.route
Class RouteFile

java.lang.Object
  extended by com.eurotech.framework.linux.net.route.RouteFile

public class RouteFile
extends Object


Constructor Summary
RouteFile(String interfaceName)
           
 
Method Summary
 boolean addRoute(IPAddress destination, IPAddress gateway, IPAddress netmask, String ifaceName)
           
 void cleanFile()
           
 RouteConfig[] getRoutes()
           
 boolean removeRoute(IPAddress destination, IPAddress gateway, IPAddress netmask, String iface)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteFile

public RouteFile(String interfaceName)
Method Detail

addRoute

public boolean addRoute(IPAddress destination,
                        IPAddress gateway,
                        IPAddress netmask,
                        String ifaceName)

removeRoute

public boolean removeRoute(IPAddress destination,
                           IPAddress gateway,
                           IPAddress netmask,
                           String iface)

getRoutes

public RouteConfig[] getRoutes()

cleanFile

public void cleanFile()


Copyright © 2013. All Rights Reserved.