when a client makes a web request for a particular resource, the request is processed, a view is generated, and a result is returned to the client. to provide more detail, we can define several logical components and subcomponents of a typical web-based architecture: request handler:
- request processing 【程序编程相关:Printing Rich Docume】 - pre- and postprocessing 【推荐阅读:Building a Combined 】 - navigation resolution 【扩展信息:Introducing... ColdF】 - command processing navigation and dispatch: - request dispatching view processor: - view preparation - view creation these components and subcomponents are shown visually in figure 1. lets have a look at the intercepting filter pattern, which addresses issues in the request-handling portion of the architecture, as outlined above and in the figure.intercepting filter
the intercepting filter pattern documents issues relating to preprocessing and postprocessing a web request. here are some common examples of preprocessing: decrypting an input stream: the incoming data may have been encrypted for security purposes. decompressing a stream: the incoming stream may have been compressed for more efficient transfer over the network. translating various encoding schemes to a common format: multiple encoding schemes require different handling. if each encoding is translated to a common format, the core request-handli... 下一页