Download Jersey 2.10 User Guide

Transcript
Jersey 2.10 User Guide
10.
11.
12.
13.
14.
15.
16.
9.2. Filters .............................................................................................................
9.2.1. Server filters ..........................................................................................
9.2.2. Client filters ..........................................................................................
9.3. Interceptors ......................................................................................................
9.4. Filter and interceptor execution order ....................................................................
9.5. Name binding ...................................................................................................
9.6. Dynamic binding ..............................................................................................
9.7. Priorities ..........................................................................................................
Asynchronous Services and Clients ...............................................................................
10.1. Asynchronous Server API .................................................................................
10.1.1. Asynchronous Server-side Callbacks .........................................................
10.1.2. Chunked Output ....................................................................................
10.2. Client API ......................................................................................................
10.2.1. Asynchronous Client Callbacks ...............................................................
10.2.2. Chunked input ......................................................................................
URIs and Links .........................................................................................................
11.1. Building URIs .................................................................................................
11.2. Resolve and Relativize .....................................................................................
11.3. Link ..............................................................................................................
Declarative Hyperlinking .............................................................................................
12.1. Dependency ....................................................................................................
12.2. Links in Representations ...................................................................................
12.3. Binding Template Parameters ............................................................................
12.4. Conditional Link Injection ................................................................................
12.5. List of Link Injection .......................................................................................
12.6. Link Headers ..................................................................................................
12.7. Configure and register ......................................................................................
Programmatic API for Building Resources .....................................................................
13.1. Introduction ....................................................................................................
13.2. Programmatic Hello World example ...................................................................
13.2.1. Deployment of programmatic resources .....................................................
13.3. Additional examples ........................................................................................
13.4. Model processors ............................................................................................
Server-Sent Events (SSE) Support ................................................................................
14.1. What are Server-Sent Events .............................................................................
14.2. When to use Server-Sent Events .........................................................................
14.3. Jersey Server-Sent Events API ...........................................................................
14.4. Implementing SSE support in a JAX-RS resource ..................................................
14.4.1. Simple SSE resource method ..................................................................
14.4.2. Broadcasting with Jersey SSE .................................................................
14.5. Consuming SSE events with Jersey clients ...........................................................
14.5.1. Reading SSE events with EventInput ...................................................
14.5.2. Asynchronous SSE processing with EventSource ...................................
Security ....................................................................................................................
15.1. Securing server ...............................................................................................
15.1.1. SecurityContext ....................................................................................
15.1.2. Authorization - securing resources ............................................................
15.2. Client Security ................................................................................................
15.3. OAuth Support ................................................................................................
15.3.1. OAuth 1 ..............................................................................................
15.3.2. OAuth 2 Support ..................................................................................
WADL Support .........................................................................................................
16.1. WADL introduction .........................................................................................
16.2. Configuration ..................................................................................................
v
129
129
132
132
134
136
138
140
141
141
143
145
147
147
149
151
151
152
152
154
154
154
155
155
155
156
156
157
157
157
159
160
161
164
164
165
165
166
166
169
171
171
172
176
176
176
177
179
180
181
185
188
188
196