public void Init(HttpApplication r_objApplication)
{
_canonicalServerName = String.Empty;
_useCanonicalName = false;
_appRoot = "";
_log = new Acp.Logger(Acp.Logger.LEVEL_DEBUG);
// Create HttpApplication and HttpContext objects to access
// request and response properties.
HttpApplication application = r_objApplication;
HttpContext context = application.Context;
// _appRoot = context.Request.ApplicationPath;
_log.Debug("Application path is " + _appRoot);
GetConfig();
// Register our event handler with Application object.
// TODO: See if we can register a handler only if UseCanonicalName is configured
r_objApplication.PreSendRequestHeaders += new EventHandler(this.PreSendRequestHeaders);
}