- Java EE 8 Design Patterns and Best Practices
- Rhuan Rocha Jo?o Purifica??o
- 149字
- 2021-07-23 16:54:52
Implementing the intercepting filter pattern using Java EE 8
To implement this pattern with the best practices of Java EE 8, we will use the servlet filter from the Java Servlet specification. With the servlet filter, we can create an ordered request interceptor to treat the requests and responses. These interceptors are mapped by the URL pattern or servlet name. The servlet filter can be configured with XML (on web.xml) or annotation. In our case, we will imagine that we want to create a log of all the requests that are sent to the server. We will also have two filters—one to log the access time and another to log the information about the browser that the client is using. To log the access time, we will create a filter called LogAccessFilter, and to log the browser information we will create a filter called LogBrowserFilter.
- 從零開始寫Linux內核:一書學透核心原理與實現
- Ansible權威指南
- 白話區塊鏈
- VMware Horizon View 6 Desktop Virtualization Cookbook
- Linux集群和自動化運維
- Windows Phone應用程序開發
- Java EE 8 Design Patterns and Best Practices
- 嵌入式系統及其應用(第三版)
- AWS SysOps Cookbook
- Heroku Cloud Application Development
- Linux應用大全 基礎與管理
- Linux 從入門到項目實踐(超值版)
- VMware Horizon Mirage Essentials
- Linux操作系統案例教程(第2版)
- BuddyPress Theme Development