Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jwall.type
Class NetworkInterface  view NetworkInterface download NetworkInterface.java

java.lang.Object
  extended byorg.jwall.type.NetworkInterface

public class NetworkInterface
extends java.lang.Object

Title: jWall Description: Class to describe physical or logical network interfaces of the firewall Copyright: Copyright (c) 2001 Company:

Version:
1.0

Field Summary
static int ALLOW_THIS_NET
           
(package private)  java.util.Vector allowed_nets
           
(package private)  IP allowthisnet
           
(package private)  int antispoof
           
(package private)  boolean antiSpoofing
           
(package private)  java.lang.String comment
           
static int INTERNET
           
(package private)  IP ip
           
(package private)  boolean isExternal
           
(package private)  java.lang.String name
           
static int NO_POLICY
           
 
Constructor Summary
NetworkInterface()
           
NetworkInterface(NetworkInterface nInterface)
           
NetworkInterface(java.lang.String name, IP ip)
           
NetworkInterface(java.lang.String name, IP ip, boolean isExternal)
           
 
Method Summary
 java.lang.String getAllowedNet()
           
 java.lang.String[] getAllowedNets()
          Method to return all allowed networks on this interface
 int getAntiSpoofing()
          Method to get AntiSpoofing policy of NetworkInterface
 java.lang.String getComment()
          Method to get comment of Interface
 java.lang.String getIP()
          Method to get IP of Interface
 java.lang.String getName()
          Method to get name of Interface
 java.lang.String getSubnetBits()
          Method to get Subnet Bits of Interface
 void setAllowedNet(IP ip)
           
 void setAllowedNets(IP[] nets)
           
 void setAntiSpoofing(int antispoof)
          Method to set how this interface deals with spoofing
 void setComment(java.lang.String comment)
          Method to set comment on Interface
 void setIP(IP ip)
          Method to set ip of interface
 void setName(java.lang.String name)
          Method to set name of interface
 void setSubnetBits(java.lang.String subnet_bits)
          Method to set subnet bits on this interface's IP address
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

java.lang.String name

comment

java.lang.String comment

ip

IP ip

allowed_nets

java.util.Vector allowed_nets

allowthisnet

IP allowthisnet

antispoof

int antispoof

NO_POLICY

public static final int NO_POLICY
See Also:
Constant Field Values

INTERNET

public static final int INTERNET
See Also:
Constant Field Values

ALLOW_THIS_NET

public static final int ALLOW_THIS_NET
See Also:
Constant Field Values

isExternal

boolean isExternal

antiSpoofing

boolean antiSpoofing
Constructor Detail

NetworkInterface

public NetworkInterface()

NetworkInterface

public NetworkInterface(NetworkInterface nInterface)

NetworkInterface

public NetworkInterface(java.lang.String name,
                        IP ip)

NetworkInterface

public NetworkInterface(java.lang.String name,
                        IP ip,
                        boolean isExternal)
Method Detail

getName

public java.lang.String getName()
Method to get name of Interface


getIP

public java.lang.String getIP()
Method to get IP of Interface


getSubnetBits

public java.lang.String getSubnetBits()
Method to get Subnet Bits of Interface


getComment

public java.lang.String getComment()
Method to get comment of Interface


getAntiSpoofing

public int getAntiSpoofing()
Method to get AntiSpoofing policy of NetworkInterface


getAllowedNet

public java.lang.String getAllowedNet()

getAllowedNets

public java.lang.String[] getAllowedNets()
Method to return all allowed networks on this interface


setName

public void setName(java.lang.String name)
Method to set name of interface


setIP

public void setIP(IP ip)
Method to set ip of interface


setSubnetBits

public void setSubnetBits(java.lang.String subnet_bits)
Method to set subnet bits on this interface's IP address


setComment

public void setComment(java.lang.String comment)
Method to set comment on Interface


setAntiSpoofing

public void setAntiSpoofing(int antispoof)
Method to set how this interface deals with spoofing


setAllowedNet

public void setAllowedNet(IP ip)

setAllowedNets

public void setAllowedNets(IP[] nets)

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).