|
The table contains the list of attribute names, together with their
legitimate values, that must be received either as part of the request
Query String or as an HTTP request header. For this filter to run
successfully, all of the required attributes must be
present in the request, and must have the correct value.
The Name column gives the name of the HTTP header field
or Query String attribute. In order for this filter to succeed,
all named headers and Query String attributes
must be present in the incoming request.
The Type column indicates whether the request parameter
is an HTTP header or a Query String attribute.
The Regular Expression column gives the name of the
regular expression that the Enterprise Gateway will use to restrict the value of the
named request parameter. The value of the named request parameter
must comply with the constraints imposed by the
regular expression. As we will see a little later, a number of common
regular expression are available for selection.
The Required field indicates whether the attribute must
be present or not. If this field is marked as "Yes", the corresponding
parameter name must be present in the request. If it
is not present, the filter will fail. If it is marked as "No", the
attribute need not be present in order for the filter to pass.
If the Allow unspecified attributes checkbox has been
checked, additional un-named header names and Query String attributes
will not be filtered by the Enterprise Gateway. This is useful in cases where we
are interested in filtering the content of only a small number of Query
String attributes, for example, but the request may contain many
attributes. In such cases, it is only necessary to filter those few
attributes, and by checking this checkbox, the Enterprise Gateway will ignore all
other Query String attributes.
New regular expressions can be added, edited, and removed by selecting
the Add, Edit, and
Delete buttons respectively. Regular expressions are
added/edited through the
Configure Query String or HTTP Header interface.
This dialog allows you to configure regular expressions to restrict the
values of request Query Strings or HTTP headers. To configure such a
regular expression, simply complete the following fields:
-
The regular expression can be applied to a Query String attribute or
to the value of a named HTTP header. Select the appropriate type of
request parameter using the Type field.
-
Enter the name of the Query String attribute or HTTP header in the
Name field.
-
Specify whether this request parameter is Optional or
Required using the appropriate radio button.
-
The regular expression which is to restrict the value of the request
parameter can be entered either manually, or selected from the
regular expression library of previously stored expressions. A
number of common regular expressions are provided for convenience.
For example, regular expressions are supplied for alphanumeric values,
dates, and email addresses.
Enter or select an appropriate regular expression which will restrict
the value of the specified request parameter. A regular expression
can be added to the library by selecting the Add/Edit
button. Simply enter a Name for the expression
followed by the Regular Expression itself.
|