Class sfclasses.Macro
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sfclasses.Macro

java.lang.Object
   |
   +----sfclasses.Macro

public class Macro
extends Object
implements Persistent
This class implements address and service macros. An object of this class holds all information about one macro. The static parts of the class take care of the macro vectors and of static macros. Static macros are stored in the vector staticMacros and are inserted into that vector in a static initializer. Dynamic macros are stored in a vector in the ManageDomain class.

Variable Index

 o addresses
 o firstDynamic
 o MACRO_ADDRESSLIST
macroType: use addresses
 o MACRO_CONFCLIENTS
macroSpecial: insert addresses of all authorized configuration clients
 o MACRO_FIREWALLS
macroSpecial: insert addresses of all firewalls
 o MACRO_FIRSTPORT
 o MACRO_INSIDE
macroType: inside
 o MACRO_LASTPORT
 o MACRO_OUTSIDE
macroType: outside
 o MACRO_OWNADDR
macroType: own addresses of the firewall
 o MACRO_PORTS_ONLY
macroType: check for ports only
 o MACRO_TEMPLATE
macroSpecial: macro is generated automatically from server template
 o macroName
 o macroNumber
 o macroSpecial
 o macroType
 o port
 o prend
 o STATIC_CONFIG_CLIENTS
 o STATIC_DNSPORT
 o STATIC_FINGERPORT
 o STATIC_FIREWALLS
 o STATIC_FIREWALLS_CONFPORT
 o STATIC_FIREWALLS_IDENTPORT
 o STATIC_FIREWALLS_TRACEROUTEPORTS
 o STATIC_FIREWALLS_UNPRIV
 o STATIC_FTPPORT
 o STATIC_HTTPPORTS
 o STATIC_HTTPSPORTS
 o STATIC_IDENTPORT
 o STATIC_INSIDE
 o STATIC_INSIDE_IDENTPORT
 o STATIC_INSIDE_OUTSIDE
 o STATIC_INSIDE_TRACEROUTEPORTS
 o STATIC_LOCALHOST
 o STATIC_OUTSIDE
 o STATIC_OWNADDRESSES
 o STATIC_OWNADDRESSES_RELAYPORT
 o STATIC_RUSERPORT
 o STATIC_SERVER
 o STATIC_SMTPPORT
 o STATIC_SSHPORT
 o STATIC_TELNETPORT
 o STATIC_TRACEROUTEPORTS
 o staticMacros

Constructor Index

 o Macro()
Initialize empty macro.
 o Macro(int)
Initialize macro.

Method Index

 o constructList(List, Vector)
Construct list box containing all macros.
 o constructList(List, Vector, int)
Construct list box containing all macros.
 o edit(Refreshable, Frame, ManageDomain, boolean)
Open a dialog to edit the macro.
 o getMacro(int, Vector)
Get macro with given number.
 o getMacro(String, Vector)
Get macro with given name.
 o read(PersistentInputStream)
Read object data from a persistent input stream
 o staticMacro(int)
Get static macro with given number
 o staticMacro(String)
Get static macro with given name
 o write(PersistentOutputStream)
Write object data to a persistent output stream

Variables

 o macroNumber
  public int macroNumber
 o macroName
  public String macroName
 o macroType
  public int macroType
 o MACRO_ADDRESSLIST
  public final static int MACRO_ADDRESSLIST
macroType: use addresses
 o MACRO_INSIDE
  public final static int MACRO_INSIDE
macroType: inside
 o MACRO_OUTSIDE
  public final static int MACRO_OUTSIDE
macroType: outside
 o MACRO_PORTS_ONLY
  public final static int MACRO_PORTS_ONLY
macroType: check for ports only
 o MACRO_OWNADDR
  public final static int MACRO_OWNADDR
macroType: own addresses of the firewall
 o macroSpecial
  public int macroSpecial
 o MACRO_FIREWALLS
  public final static int MACRO_FIREWALLS
macroSpecial: insert addresses of all firewalls
 o MACRO_CONFCLIENTS
  public final static int MACRO_CONFCLIENTS
macroSpecial: insert addresses of all authorized configuration clients
 o MACRO_TEMPLATE
  public final static int MACRO_TEMPLATE
macroSpecial: macro is generated automatically from server template
 o port
  public int port
 o prend
  public int prend
 o MACRO_FIRSTPORT
  public final static int MACRO_FIRSTPORT
 o MACRO_LASTPORT
  public final static int MACRO_LASTPORT
 o addresses
  public AddrList addresses
 o STATIC_INSIDE_OUTSIDE
  public final static int STATIC_INSIDE_OUTSIDE
 o STATIC_SERVER
  public final static int STATIC_SERVER
 o STATIC_FIREWALLS
  public final static int STATIC_FIREWALLS
 o STATIC_FIREWALLS_UNPRIV
  public final static int STATIC_FIREWALLS_UNPRIV
 o STATIC_FIREWALLS_CONFPORT
  public final static int STATIC_FIREWALLS_CONFPORT
 o STATIC_FIREWALLS_IDENTPORT
  public final static int STATIC_FIREWALLS_IDENTPORT
 o STATIC_FIREWALLS_TRACEROUTEPORTS
  public final static int STATIC_FIREWALLS_TRACEROUTEPORTS
 o STATIC_CONFIG_CLIENTS
  public final static int STATIC_CONFIG_CLIENTS
 o STATIC_INSIDE
  public final static int STATIC_INSIDE
 o STATIC_OUTSIDE
  public final static int STATIC_OUTSIDE
 o STATIC_LOCALHOST
  public final static int STATIC_LOCALHOST
 o STATIC_SMTPPORT
  public final static int STATIC_SMTPPORT
 o STATIC_IDENTPORT
  public final static int STATIC_IDENTPORT
 o STATIC_RUSERPORT
  public final static int STATIC_RUSERPORT
 o STATIC_DNSPORT
  public final static int STATIC_DNSPORT
 o STATIC_FTPPORT
  public final static int STATIC_FTPPORT
 o STATIC_TELNETPORT
  public final static int STATIC_TELNETPORT
 o STATIC_SSHPORT
  public final static int STATIC_SSHPORT
 o STATIC_HTTPPORTS
  public final static int STATIC_HTTPPORTS
 o STATIC_HTTPSPORTS
  public final static int STATIC_HTTPSPORTS
 o STATIC_TRACEROUTEPORTS
  public final static int STATIC_TRACEROUTEPORTS
 o STATIC_INSIDE_IDENTPORT
  public final static int STATIC_INSIDE_IDENTPORT
 o STATIC_INSIDE_TRACEROUTEPORTS
  public final static int STATIC_INSIDE_TRACEROUTEPORTS
 o STATIC_OWNADDRESSES
  public final static int STATIC_OWNADDRESSES
 o STATIC_OWNADDRESSES_RELAYPORT
  public final static int STATIC_OWNADDRESSES_RELAYPORT
 o STATIC_FINGERPORT
  public final static int STATIC_FINGERPORT
 o staticMacros
  public static Vector staticMacros
 o firstDynamic
  public final static int firstDynamic

Constructors

 o Macro
  public Macro()
Initialize empty macro. This is used when loading data from a persistent input stream.
 o Macro
  public Macro(int number)
Initialize macro.
Parameters:
number - Macro number

Methods

 o edit
  public void edit(Refreshable co,
                   Frame p,
                   ManageDomain md,
                   boolean newMacro)
Open a dialog to edit the macro.
Parameters:
co - Calling object, will be notified when the edit dialog is closed.
p - Parent frame
md - ManageDomain object holding the configuration data
newMacro - The macro is being created and not changed. If the user cancels the operation, the macro will be deleted from the vector.
See Also:
Refreshable
 o write
  public void write(PersistentOutputStream ps)
Write object data to a persistent output stream
Parameters:
ps - Stream
See Also:
PersistentOutputStream
 o read
  public void read(PersistentInputStream ps) throws IOException
Read object data from a persistent input stream
Parameters:
ps - Stream
See Also:
PersistentInputStream
 o staticMacro
  public static Macro staticMacro(int number)
Get static macro with given number
Parameters:
number - Number of macro
Returns:
macro
 o staticMacro
  public static Macro staticMacro(String name)
Get static macro with given name
Parameters:
name - name of macro
Returns:
macro
 o getMacro
  public static Macro getMacro(String name,
                               Vector dynMacros)
Get macro with given name. First the static macros are searched and then the dynamic macros are searched.
Parameters:
name - Macro name
dynMacros - Vector containing the dynamic macros
 o getMacro
  public static Macro getMacro(int number,
                               Vector dynMacros)
Get macro with given number. First the static macros are searched and then the dynamic macros are searched.
Parameters:
number - Macro number
dynMacros - Vector containing the dynamic macros
 o constructList
  public static void constructList(List l,
                                   Vector dynMacros,
                                   int macronum)
Construct list box containing all macros.
Parameters:
l - List box
dynMacros - Vector containing the dynamic macros
macronum - Number of macro that is selected initially
 o constructList
  public static void constructList(List l,
                                   Vector dynMacros)
Construct list box containing all macros.
Parameters:
l - List box
dynMacros - Vector containing the dynamic macros

All Packages  Class Hierarchy  This Package  Previous  Next  Index