Assuming the user wishes to follow the knowledge-rich approach (i.e., she does not want the system to decide which pages should be converted), we had to find an efficient way to provide her the possibility to ''tell'' the server which pages should be transformed, i.e., what criteria an incoming HTTP-request has to meet, so that the corresponding HTTP-response data (or also the original request itself) will be modified by one ore more transformation-rules. Therefore, we compare incoming HTTP-requests with so called (HTTP-request-)patterns that are defined by the user (in the patterns configuartion file). When an HTTP-request matches a pattern (e.g. host=''www.xyz.com'', path equals ''/''), a set of transformations - or rules - are then be applied to the corresponding response of the web server (or even before - to the client's request-header). For this reason, we compare (also involving regular expressions) characteristical parts the HTTP-request, such as server, port, path, parameters and header fields to corresponding values of stored request-patterns. This makes it for example possible, to apply particular transformation-rules (or a group of them) for all requests with header field ''User-Agent'' containing the word ''WML'' or for all pages on server ''www.example.org'' in URL-path ''/news'' or for a certain page with URL-parameter ''user'' set to ''john'', to name just a few.
root 2006-05-22