- 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.
- Learning OpenDaylight
- Linux設備驅動開發詳解(第2版)
- 零起點學Linux系統管理
- Linux系統文件安全實戰全攻略
- Cybersecurity:Attack and Defense Strategies
- Learning Windows Server Containers
- vSphere Virtual Machine Management
- SharePoint 2013 WCM Advanced Cookbook
- Linux系統安全基礎:二進制代碼安全性分析基礎與實踐
- STM32庫開發實戰指南:基于STM32F4
- 竹林蹊徑:深入淺出windows驅動開發
- Kali Linux 2018:Windows Penetration Testing
- ElasticSearch Cookbook
- Linux內核API完全參考手冊(第2版)
- Getting Started with Citrix XenApp 6.5