- 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
推薦閱讀
- Learning OpenDaylight
- Modern Web Testing with TestCafe
- Social Media Mining with R
- VMware Horizon View 6 Desktop Virtualization Cookbook
- RESS Essentials
- Microsoft Operations Management Suite Cookbook
- Learning Bootstrap
- Linux內(nèi)核設(shè)計(jì)的藝術(shù):圖解Linux操作系統(tǒng)架構(gòu)設(shè)計(jì)與實(shí)現(xiàn)原理
- Red Hat Enterprise Linux 6.4網(wǎng)絡(luò)操作系統(tǒng)詳解
- Windows 7實(shí)戰(zhàn)從入門到精通(超值版)
- Ubuntu Linux操作系統(tǒng)實(shí)用教程
- Agile IT Security Implementation Methodology
- Java EE 7 Developer Handbook
- Learn Quantum Computing with Python and IBM Quantum Experience
- Learning IBM Watson Analytics