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.
-
addresses
-
-
firstDynamic
-
-
MACRO_ADDRESSLIST
- macroType: use addresses
-
MACRO_CONFCLIENTS
- macroSpecial: insert addresses of all authorized configuration clients
-
MACRO_FIREWALLS
- macroSpecial: insert addresses of all firewalls
-
MACRO_FIRSTPORT
-
-
MACRO_INSIDE
- macroType: inside
-
MACRO_LASTPORT
-
-
MACRO_OUTSIDE
- macroType: outside
-
MACRO_OWNADDR
- macroType: own addresses of the firewall
-
MACRO_PORTS_ONLY
- macroType: check for ports only
-
MACRO_TEMPLATE
- macroSpecial: macro is generated automatically from server template
-
macroName
-
-
macroNumber
-
-
macroSpecial
-
-
macroType
-
-
port
-
-
prend
-
-
STATIC_CONFIG_CLIENTS
-
-
STATIC_DNSPORT
-
-
STATIC_FINGERPORT
-
-
STATIC_FIREWALLS
-
-
STATIC_FIREWALLS_CONFPORT
-
-
STATIC_FIREWALLS_IDENTPORT
-
-
STATIC_FIREWALLS_TRACEROUTEPORTS
-
-
STATIC_FIREWALLS_UNPRIV
-
-
STATIC_FTPPORT
-
-
STATIC_HTTPPORTS
-
-
STATIC_HTTPSPORTS
-
-
STATIC_IDENTPORT
-
-
STATIC_INSIDE
-
-
STATIC_INSIDE_IDENTPORT
-
-
STATIC_INSIDE_OUTSIDE
-
-
STATIC_INSIDE_TRACEROUTEPORTS
-
-
STATIC_LOCALHOST
-
-
STATIC_OUTSIDE
-
-
STATIC_OWNADDRESSES
-
-
STATIC_OWNADDRESSES_RELAYPORT
-
-
STATIC_RUSERPORT
-
-
STATIC_SERVER
-
-
STATIC_SMTPPORT
-
-
STATIC_SSHPORT
-
-
STATIC_TELNETPORT
-
-
STATIC_TRACEROUTEPORTS
-
-
staticMacros
-
-
Macro()
- Initialize empty macro.
-
Macro(int)
- Initialize macro.
-
constructList(List, Vector)
- Construct list box containing all macros.
-
constructList(List, Vector, int)
- Construct list box containing all macros.
-
edit(Refreshable, Frame, ManageDomain, boolean)
- Open a dialog to edit the macro.
-
getMacro(int, Vector)
- Get macro with given number.
-
getMacro(String, Vector)
- Get macro with given name.
-
read(PersistentInputStream)
- Read object data from a persistent input stream
-
staticMacro(int)
- Get static macro with given number
-
staticMacro(String)
- Get static macro with given name
-
write(PersistentOutputStream)
- Write object data to a persistent output stream
macroNumber
public int macroNumber
macroName
public String macroName
macroType
public int macroType
MACRO_ADDRESSLIST
public final static int MACRO_ADDRESSLIST
- macroType: use addresses
MACRO_INSIDE
public final static int MACRO_INSIDE
- macroType: inside
MACRO_OUTSIDE
public final static int MACRO_OUTSIDE
- macroType: outside
MACRO_PORTS_ONLY
public final static int MACRO_PORTS_ONLY
- macroType: check for ports only
MACRO_OWNADDR
public final static int MACRO_OWNADDR
- macroType: own addresses of the firewall
macroSpecial
public int macroSpecial
MACRO_FIREWALLS
public final static int MACRO_FIREWALLS
- macroSpecial: insert addresses of all firewalls
MACRO_CONFCLIENTS
public final static int MACRO_CONFCLIENTS
- macroSpecial: insert addresses of all authorized configuration clients
MACRO_TEMPLATE
public final static int MACRO_TEMPLATE
- macroSpecial: macro is generated automatically from server template
port
public int port
prend
public int prend
MACRO_FIRSTPORT
public final static int MACRO_FIRSTPORT
MACRO_LASTPORT
public final static int MACRO_LASTPORT
addresses
public AddrList addresses
STATIC_INSIDE_OUTSIDE
public final static int STATIC_INSIDE_OUTSIDE
STATIC_SERVER
public final static int STATIC_SERVER
STATIC_FIREWALLS
public final static int STATIC_FIREWALLS
STATIC_FIREWALLS_UNPRIV
public final static int STATIC_FIREWALLS_UNPRIV
STATIC_FIREWALLS_CONFPORT
public final static int STATIC_FIREWALLS_CONFPORT
STATIC_FIREWALLS_IDENTPORT
public final static int STATIC_FIREWALLS_IDENTPORT
STATIC_FIREWALLS_TRACEROUTEPORTS
public final static int STATIC_FIREWALLS_TRACEROUTEPORTS
STATIC_CONFIG_CLIENTS
public final static int STATIC_CONFIG_CLIENTS
STATIC_INSIDE
public final static int STATIC_INSIDE
STATIC_OUTSIDE
public final static int STATIC_OUTSIDE
STATIC_LOCALHOST
public final static int STATIC_LOCALHOST
STATIC_SMTPPORT
public final static int STATIC_SMTPPORT
STATIC_IDENTPORT
public final static int STATIC_IDENTPORT
STATIC_RUSERPORT
public final static int STATIC_RUSERPORT
STATIC_DNSPORT
public final static int STATIC_DNSPORT
STATIC_FTPPORT
public final static int STATIC_FTPPORT
STATIC_TELNETPORT
public final static int STATIC_TELNETPORT
STATIC_SSHPORT
public final static int STATIC_SSHPORT
STATIC_HTTPPORTS
public final static int STATIC_HTTPPORTS
STATIC_HTTPSPORTS
public final static int STATIC_HTTPSPORTS
STATIC_TRACEROUTEPORTS
public final static int STATIC_TRACEROUTEPORTS
STATIC_INSIDE_IDENTPORT
public final static int STATIC_INSIDE_IDENTPORT
STATIC_INSIDE_TRACEROUTEPORTS
public final static int STATIC_INSIDE_TRACEROUTEPORTS
STATIC_OWNADDRESSES
public final static int STATIC_OWNADDRESSES
STATIC_OWNADDRESSES_RELAYPORT
public final static int STATIC_OWNADDRESSES_RELAYPORT
STATIC_FINGERPORT
public final static int STATIC_FINGERPORT
staticMacros
public static Vector staticMacros
firstDynamic
public final static int firstDynamic
Macro
public Macro()
- Initialize empty macro. This is used when loading data from a
persistent input stream.
Macro
public Macro(int number)
- Initialize macro.
- Parameters:
- number - Macro number
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
write
public void write(PersistentOutputStream ps)
- Write object data to a persistent output stream
- Parameters:
- ps - Stream
- See Also:
- PersistentOutputStream
read
public void read(PersistentInputStream ps) throws IOException
- Read object data from a persistent input stream
- Parameters:
- ps - Stream
- See Also:
- PersistentInputStream
staticMacro
public static Macro staticMacro(int number)
- Get static macro with given number
- Parameters:
- number - Number of macro
- Returns:
- macro
staticMacro
public static Macro staticMacro(String name)
- Get static macro with given name
- Parameters:
- name - name of macro
- Returns:
- macro
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
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
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
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