You can have one content handler that handles both cases , but this requires a check to see which case needs to be handled each time the parser invokes the handler 可以用一个内容处理程序来处理这两种情况,但每次解析器调用处理程序时,都需要进行一次检查,以查看到底是哪一种情况需要被处理。
Because you can examine incoming requests , your http module can perform custom authentication or other security checks before the requested page , xml web service , or handler is called 因为您可以检查传入的请求,所以http模块可以在请求页、 xml web services或调用处理程序之前执行自定义的身份验证或其他安全检查。