Sun Java System Portal Server 7.1 Technical Reference

Chapter 46 Robot Application Functions - Setup Functions

This section describes the functions that are used during the setup phase by both enumeration and generation filters. The following functions are described:

filterrules-setup

When you use the filterrules-setup function, logtype is the type of log file to use. The value can be verbose, normal, or terse.

Parameters

The list of parameters used with the filterrules-setup function and their description are:

config

Path name to the file containing the filter rules to be used by this filter.

Example


Setup fn=filterrules-setup config=./config/filterrules.conf logtype=normal

setup-regex-cache

The setup-regex-cache function initializes the cache size for the filter-by-regex and generate-by-regex functions. Use this function to specify a number other than the default of 32.

Parameters

The parameter used with the setup-regex-cache function and its description is:

cache-size

Maximum number of compiled regular expressions to be kept in the regex cache.

Example


Setup fn=setup-regex-cache cache-size=28

setup-type-by-extension

The setup-type-by-extension function configures the filter to recognize file name extensions. It must be called before the assign-type-by-extension function can be used. The file specified as a parameter must contain mappings between standard MIME content types and file extension strings.

Parameters

The parameter used with the setup-type-by-extension function and its description is:

file

Name of the MIME types configuration file.

Example


Setup fn=setup-type-by-extension file=./config/mime.types