UML Model

UML Model

UML Model

UML Model

UML Model

UML Model


Table of Contents

Actors
Use Cases
Interfaces
Classes
Apache2ConfigParser
Apache2ConfigDirective
Apache2ConfigSection
DirectorySection
VirtualHostSection
DirectoryMatchSection
LocationMatchSection
IfModuleSection
LocationSection
CommentLine
i6ehDTIxpgm2
McVD4GvwlRz0
ayb1HNs10ZBc
mfhCc3TcENOR
vAF5WO3uibLG
7jOsjz5Svx6p
areEZSEWOAew
IfVersionSection
LimitSection
IfDefineSection
FilesSection
FilesMatchSection
LimitExceptSection
Diagrams
class diagram
Classes:

Actors

Use Cases

Interfaces

Classes

Apache2ConfigParser

Table 1. 

ClassApache2ConfigParser

Operations:

visibility

return

name

public

void

initialize
 constructor
public

void

parse!
 opens the config file and parses its contents into the config tree. throws an exception if the file does not exist or an invalid configuration option was found (this happens, if the current configuration section disallows the found statement)
public to_s
 returns the string representation of the configuration, i.e. the syntactically correct apache2 config file.
public

void

[]=
 change given configuration directive. Example: config[24] = new Apache2ConfigDirective('Alias', '/foo /bar/foo')
public

void

[]
 returns the requested configuration directive. Example: set "Allow from all" at position 42, if that directive is an "Allow" directive config[42].value = 'from all' if config[42].name == 'Allow' Example: assuming there is a "VirtualHost" section on pos 42 has a "DocumentRoot" directive on pos 3, set this to "/home/www/foo": config[42][3].value = "/home/www/foo"
public

void

each
 the iterator function

Apache2ConfigDirective

Table 2. 

ClassApache2ConfigDirective
Attributes:
visibilitytypename
protected name
protected value
protected comment

Operations:

visibility

return

name

public

void

initialize
  
public to_s
 returns a syntactically correct object representation to be stored into a config file: <name>\t<value>\t#<comment>

Apache2ConfigSection

Table 3. 

ClassApache2ConfigSection
Attributes:
visibilitytypename
protected name
protected allowed_directives

Operations:

visibility

return

name

public

void

to_s
 String Representation of this object to be stored in the config file
public allowed?
 returns TRUE if the given directive is allowed within current context (=configuration section), or FALSE otherwise.

DirectorySection

Table 4. 

ClassDirectorySection
Attributes:
visibilitytypename
protected directory_name

VirtualHostSection

Table 5. 

ClassVirtualHostSection
Attributes:
visibilitytypename
protected host_name
protected port

DirectoryMatchSection

Table 6. 

ClassDirectoryMatchSection

LocationMatchSection

Table 7. 

ClassLocationMatchSection

IfModuleSection

Table 8. 

ClassIfModuleSection
Attributes:
visibilitytypename
protected module_name

LocationSection

Table 9. 

ClassLocationSection
Attributes:
visibilitytypename
protected location_name

CommentLine

Table 10. 

ClassCommentLine

A comment line contains nothing but a comment.

Attributes:
visibilitytypename
protected content

Operations:

visibility

return

name

public to_s
 returns #<content>

i6ehDTIxpgm2

Table 11. 

Classi6ehDTIxpgm2

McVD4GvwlRz0

Table 12. 

ClassMcVD4GvwlRz0

ayb1HNs10ZBc

Table 13. 

Classayb1HNs10ZBc

mfhCc3TcENOR

Table 14. 

ClassmfhCc3TcENOR

vAF5WO3uibLG

Table 15. 

ClassvAF5WO3uibLG

7jOsjz5Svx6p

Table 16. 

Class7jOsjz5Svx6p

areEZSEWOAew

Table 17. 

ClassareEZSEWOAew

IfVersionSection

Table 18. 

ClassIfVersionSection

LimitSection

Table 19. 

ClassLimitSection

IfDefineSection

Table 20. 

ClassIfDefineSection

FilesSection

Table 21. 

ClassFilesSection

FilesMatchSection

Table 22. 

ClassFilesMatchSection

LimitExceptSection

Table 23. 

ClassLimitExceptSection

Diagrams

class diagram

Classes: