- Java EE 8 High Performance
- Romain Manni Bucau
- 164字
- 2021-06-30 19:14:28
JAX-RS – the servlet router
Even if JAX-RS is not fully bound to HTTP and is usable over JMS, WebSockets, and so on, we will just consider the HTTP case here and, more particularly, the case it runs on top of the servlet specification (which is the most common one).
The goal of JAX-RS is to provide a command pattern based on the API to implement the HTTP communications. In other words, it abstracts the I/O with Java modeling. You can see it as a HTTP Java object binding solution. This is what QuoteResource uses.
The role of JAX-RS is to provide all the necessary tooling to make servlet abstraction directly usable for most cases. For this purpose, it provides the following:
- A routing layer letting developers directly map the request based on its path
- A serialization layer allowing the conversion of Java objects into HTTP models and streams
- An exception handling layer enabling the mapping of an exception to an HTTP response
推薦閱讀
- Social Media Mining with R
- Persistence in PHP with the Doctrine ORM
- 嵌入式應用程序設計綜合教程(微課版)
- 高性能Linux服務器構建實戰:系統安全、故障排查、自動化運維與集群架構
- 混沌工程:復雜系統韌性實現之道
- Windows Phone應用程序開發
- Mastering Reactive JavaScript
- Learning Magento 2 Administration
- Ceph分布式存儲實戰
- INSTANT Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
- 從實踐中學習Kali Linux無線網絡滲透測試
- Windows Server 2012網絡操作系統項目教程(第4版)
- Distributed Computing with Go
- Ubuntu Linux操作系統實用教程
- 再也不踩坑的kubernetes實戰指南