没有合适的资源?快使用搜索试试~ 我知道了~
resteasy
资源推荐
资源详情
资源评论
RESTEasy JAX-RS
RESTFul Web Services for Java
3.0.16.Final
iii
Preface ............................................................................................................................. ix
1. Overview ...................................................................................................................... 1
2. License ........................................................................................................................ 3
3. Installation/Configuration ............................................................................................ 5
3.1. Upgrading Resteasy Within JBoss AS 7 ............................................................... 5
3.2. Upgrading Resteasy Within JBoss EAP 6.1 .......................................................... 5
3.3. Upgrading Resteasy Within Wildfly ...................................................................... 5
3.4. Configuring in JBoss AS 7, EAP, and Wildfly ........................................................ 5
3.4.1. Resteasy Modules in AS7, EAP6.1, Wildfly ................................................ 6
3.5. Standalone Resteasy in Servlet 3.0 Containers .................................................... 7
3.6. Standalone Resteasy in Older Servlet Containers ................................................. 8
3.7. Configuration Switches ........................................................................................ 9
3.8. javax.ws.rs.core.Application ............................................................................... 11
3.9. RESTEasy as a ServletContextListener .............................................................. 13
3.10. RESTEasy as a servlet Filter ........................................................................... 14
3.11. RESTEasyLogging .......................................................................................... 14
4. Using @Path and @GET, @POST, etc. ...................................................................... 17
4.1. @Path and regular expression mappings ........................................................... 18
5. @PathParam .............................................................................................................. 21
5.1. Advanced @PathParam and Regular Expressions .............................................. 22
5.2. @PathParam and PathSegment ........................................................................ 22
6. @QueryParam ............................................................................................................ 25
7. @HeaderParam .......................................................................................................... 27
8. Linking resources ...................................................................................................... 29
8.1. Link Headers .................................................................................................... 29
8.2. Atom links in the resource representations ......................................................... 29
8.2.1. Configuration .......................................................................................... 29
8.2.2. Your first links injected ........................................................................... 29
8.2.3. Customising how the Atom links are serialised ......................................... 32
8.2.4. Specifying which JAX-RS methods are tied to which resources .................. 32
8.2.5. Specifying path parameter values for URI templates ................................. 33
8.2.6. Securing entities .................................................................................... 36
8.2.7. Extending the UEL context ..................................................................... 36
8.2.8. Resource facades .................................................................................. 38
9. @MatrixParam ............................................................................................................ 41
10. @CookieParam ........................................................................................................ 43
11. @FormParam ........................................................................................................... 45
12. @Form ..................................................................................................................... 47
13. @DefaultValue .......................................................................................................... 51
14. @Encoded and encoding ......................................................................................... 53
15. @Context ................................................................................................................. 55
16. JAX-RS Resource Locators and Sub Resources ..................................................... 57
17. JAX-RS Content Negotiation .................................................................................... 61
17.1. URL-based negotiation .................................................................................... 62
RESTEasy JAX-RS
iv
17.2. Query String Parameter-based negotiation ........................................................ 64
18. Content Marshalling/Providers ................................................................................. 65
18.1. Default Providers and default JAX-RS Content Marshalling ................................ 65
18.2. Content Marshalling with @Provider classes ..................................................... 65
18.3. Providers Utility Class ..................................................................................... 66
18.4. Configuring Document Marshalling ................................................................... 68
19. JAXB providers ........................................................................................................ 71
19.1. JAXB Decorators ............................................................................................ 72
19.2. Pluggable JAXBContext's with ContextResolvers .............................................. 73
19.3. JAXB + XML provider ...................................................................................... 74
19.3.1. @XmlHeader and @Stylesheet ............................................................. 74
19.4. JAXB + JSON provider .................................................................................... 76
19.5. JAXB + FastinfoSet provider ............................................................................ 80
19.6. Arrays and Collections of JAXB Objects ........................................................... 81
19.6.1. JSON and JAXB Collections/arrays ....................................................... 83
19.7. Maps of JAXB Objects .................................................................................... 84
19.7.1. JSON and JAXB maps ......................................................................... 87
19.7.2. Possible Problems with Jettison Provider ............................................... 87
19.8. Interfaces, Abstract Classes, and JAXB ............................................................ 88
19.9. Configurating JAXB Marshalling ....................................................................... 88
20. Resteasy Atom Support ........................................................................................... 91
20.1. Resteasy Atom API and Provider ..................................................................... 91
20.2. Using JAXB with the Atom Provider ................................................................. 92
21. JSON Support via Jackson ...................................................................................... 95
21.1. Using Jackson 1.9.x Outside of JBoss AS7 ...................................................... 95
21.2. Using Jackson 1.9.x Inside of JBoss AS7 ......................................................... 95
21.3. Using Jackson 2.2.x Outside of JBoss AS7 ...................................................... 95
21.4. Using Jackson 2.2.x Inside of JBoss AS7 ......................................................... 96
21.5. Additional Resteasy Specifics .......................................................................... 96
21.6. Possible Conflict With JAXB Provider ............................................................... 97
21.7. JSONP Support .............................................................................................. 98
21.8. Jackson JSON Decorator ................................................................................ 99
22. JSON Support via Java EE 7 JSON-P API .............................................................. 101
23. Multipart Providers ................................................................................................. 103
23.1. Input with multipart/mixed .............................................................................. 103
23.2. java.util.List with multipart data ....................................................................... 105
23.3. Input with multipart/form-data ......................................................................... 105
23.4. java.util.Map with multipart/form-data .............................................................. 106
23.5. Input with multipart/related ............................................................................. 106
23.6. Output with multipart ..................................................................................... 107
23.7. Multipart Output with java.util.List ................................................................... 108
23.8. Output with multipart/form-data ...................................................................... 108
23.9. Multipart FormData Output with java.util.Map .................................................. 110
23.10. Output with multipart/related ......................................................................... 110
v
23.11. @MultipartForm and POJOs ........................................................................ 111
23.12. XML-binary Optimized Packaging (Xop) ........................................................ 113
23.13. Note about multipart parsing and working with other frameworks ..................... 115
23.14. Overwriting the default fallback content type for multipart messages ................ 115
23.15. Overwriting the content type for multipart messages ...................................... 116
23.16. Overwriting the default fallback charset for multipart messages ....................... 116
24. YAML Provider ....................................................................................................... 119
25. String marshalling for String based @*Param ....................................................... 121
26. Responses using javax.ws.rs.core.Response ........................................................ 123
27. Exception Handling ................................................................................................ 125
27.1. Exception Mappers ........................................................................................ 125
27.2. Resteasy Built-in Internally-Thrown Exceptions ................................................ 126
27.3. Overriding Resteasy Builtin Exceptions ........................................................... 127
28. Configuring Individual JAX-RS Resource Beans ................................................... 129
29. GZIP Compression/Decompression ....................................................................... 131
30. CORS ..................................................................................................................... 133
31. Content-Range Support ......................................................................................... 135
32. Resteasy Caching Features ................................................................................... 137
32.1. @Cache and @NoCache Annotations ............................................................ 137
32.2. Client "Browser" Cache ................................................................................. 138
32.3. Local Server-Side Response Cache ............................................................... 139
33. Filters and Interceptors .......................................................................................... 141
33.1. Server Side Filters ........................................................................................ 141
33.2. Client Side Filters .......................................................................................... 142
33.3. Reader and Writer Interceptors ...................................................................... 142
33.4. Per Resource Method Filters and Interceptors ................................................. 143
33.5. Ordering ....................................................................................................... 143
34. Asynchronous HTTP Request Processing ............................................................. 145
35. Asynchronous Job Service .................................................................................... 147
35.1. Using Async Jobs ......................................................................................... 147
35.2. Oneway: Fire and Forget ............................................................................... 148
35.3. Setup and Configuration ................................................................................ 148
36. Embedded Containers ............................................................................................ 151
36.1. Undertow ...................................................................................................... 151
36.2. Sun JDK HTTP Server .................................................................................. 153
36.3. TJWS Embeddable Servlet Container ............................................................. 154
36.4. Netty ............................................................................................................ 155
37. Server-side Mock Framework ................................................................................. 157
38. Securing JAX-RS and RESTeasy ........................................................................... 159
39. OAuth 2.0 and Resteasy Skeleton Key .................................................................. 163
39.1. System Requirements ................................................................................... 164
39.2. Generate the Security Domain Key Pair ......................................................... 164
39.3. Setting up the Auth Server ............................................................................ 164
39.3.1. Setting up your Security Domain ......................................................... 164
剩余275页未读,继续阅读
资源评论
- csdn_酒鬼2016-09-19这个可以不要分的吧!全英的!
snail_simba_eric
- 粉丝: 95
- 资源: 75
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- MyBatis进阶技巧:探索动态SQL的无限可能.md
- HM2300C-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- HM2300B-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 员工解除劳动合同申请表.pdf
- 物模块模型代码,前往设计物模块所属
- mybatis动态sql(使用<where>标签来处理多个查询条件)
- Java面试手册,助力大家面试过五关斩六将,面试成功
- HITK0303MP-VB一款P-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- mybatis动态sql之xml增删改查批量操作示例EmpMapper.xml
- C/C++内存检测工具Sanitizers
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功