Java Reference
In-Depth Information
Figure 12-17.
Generated JAX-RS 2.0 Filter File
Interceptors
To create a JAX-RS 2.0 Interceptor using the NetBeans wizard, follow these steps:
1.
Right-click on a project directory, or select File
➤
“New File” from the NetBeans File menu
to open the “New File” dialog.
2.
Select “Web Services” from the Categories select box, and then select “JAX-RS 2.0
Interceptor” from the “File Types” select box.
3.
When the “New JAX-RS 2.0 Interceptor” dialog opens, choose the type of interceptor
you wish to create (ReaderInterceptor or WriterInterceptor), and specify file name and
location, as seen in Figure
12-18
.