Creating and Using the Sample URL Rewriter |
||||||
Timothy is now all set to use the sample URL rewiter API for one of the Web sources created by the user. He has a simple request from the creator of the Acme Web source - If the URL is "http://acme-qa.us.acme.com:9009", it has to be changed to "http://www.acme.com". Timothy observes the SampleRewriter.java program. This sample program addresses the above request directly. He compiles and packages the class file into a jar file. Using the rewriter class name and the jar file name, he enables UrlRewriter option in the SES administration tool of the required exisiting Web source. Let's watch Timothy perform the URL Rewriting task.
|