Training Capstone Courseware

Training goals dlearning

code: CC-563 | version: v2.0.1

This course shows experienced Java programmers how to build RESTful web services using the Java API for RESTful Web Services, or JAX-RS. We first overview the key concepts of REST -- ultimately the thorough and thoughtful use of URLs, HTTP methods, and media types to design and implement scalable and maintainable enterprise services. Then we dive into the elegant JAX-RS standard for building RESTful services, learning how to manage URLs and URL patterns and methods, how to bind input and control response production, and how to manage HTTP entities in popular content types such as XML and JSON.

From here students investigate intermediate features including dependency injection, error handling, and JSR-303 validation, and use Java generics to implement patterns for common operations over an application's domain classes. We explore sub-resources, the JAX-RS client API, filters and interceptors, and testing techniques, before closing with a summary chapter on REST security that includes implementations of HTTP BASIC security and HMAC signatures.

Learning Objectives

  • Understand the advantages of the REST architecture for web services.
  • Use JAX-RS to develop simple RESTful services.
  • Control dispatching to service methods based on URL patterns and HTTP methods.
  • Bind request values to method parameters when expressed as HTTP query parameters, form values, headers, cookies, and more.
  • Manage XML and JSON content using XML Schema and JAXB -- or without JAXB using leading JAX-RS providers and Reflection-driven entity providers such as MOXy and Jackson.
  • Handle error conditions by producing appropriate HTTP responses.
  • Use JSR-303 validation for request parameters, headers, and entities.
  • Use Java generics to implement REST API patterns for various domain classes.
  • Take advantage of lifecycle and context services available to JAX-RS services.
  • Organize request-handling methods into sub-resource classes to make REST APIs extensible and maintainable.
  • Implement REST clients using the JAX-RS standard API.
  • Build filters and interceptors to adapt service endpoint behavior.
  • Develop unit tests for JAX-RS services that cover both method code and JAX-RS annotations, using the Jersey test framework.
  • Be aware of security concerns for RESTful services and secure services appropriately.

Conspect Show list

  1. Overview of REST and JAX-RS
    • The REST Vision
    • Use of HTTP
    • Use of URIs
    • Use of Content Types
    • CRUD Operations and Business Operations
    • HATEOAS and the Richardson Maturity Model
    • JAX-RS
    • Applications, Resources, and Providers
  2. Configuration and Lifecycle
    • The JAX-RS Application
    • XML Configuration
    • Annotation-Driven Configuration
    • Applications
    • Root Resource Classes
    • Per-Request vs. Singleton Lifecycle
    • Providers
  3. Handling Requests
    • The Application Path
    • The @Path Annotation
    • The HTTP Method Annotations
    • Sub-Resource Locators
    • Annotation Inheritance and overriding
    • @XXXParam Annotations
    • The @DefaultValue Annotation
    • Parameter Types
    • Parameter Converters
  4. Producing Responses
    • Supported Return Types
    • The Response Class
    • Response Entities
    • Binary Content
    • Delivering a File
  5. Entity Translation
    • Entity Parameter and Return Type
    • Entity Providers
    • @Consumes and @Produces Annotations
    • Built-In Entity Providers
    • Custom Entity Providers
  6. Working with XML and JSON
    • The JAXB Entity Provider
    • Driving XML Representations from Schema
    • Driving JSON Representations with JAXB
    • JSON Without JAXB: Jackson, MOXy, etc.
    • CRUD Patterns
    • Error Handling
    • Sub-Resources
  7. Dependency Injection
    • The @Context Annotation
    • Injectable Types
    • The Application Subclass
    • Servlet Configuration and Context
    • Impact of Lifecycle Policies
    • Context Providers
    • Using CDI
  8. Validation and Error Handling
    • Using Response
    • Throwing WebApplicationException
    • Exception Mapping Providers
    • Selection of Exception Mappers
    • Java EE Bean Validation
    • Constraint Annotations
    • Support for JSR-303
    • Annotating Method Parameters
    • Annotating Entity Classes
    • Error Reporting
  9. Generic Services
    • Generic Entities
    • Generic Entity Providers
    • ParameterizedType
    • Reflection-Driven Entity Providers
    • Annotation Inheritance
    • CRUD Patterns, II
    • Serialization, Recursion, and Scope
    • Dynamic Sub-Resources
  10. Working with Databases
    • Persistence Services
    • The Java Persistence API
    • JPA Support for JSR-303
    • Handling IDs and Keys
    • Cascading
    • Caching
    • Error Handling
    • Hypermedia Challenges
  11. Sub-Resources
    • Significance of Sub-Resources
    • Exposing Sub-Objects
    • Exposing Collections
    • Multiple Paths to Resources
    • Exposing Actions
    • Using Sub-Resource Locators
    • Collection vs. Instance Services
  12. The Client API
    • The Builder Pattern
    • Client
    • WebTarget
    • Invocation
    • Basic Usage
    • Managing Content Types and Entities
    • Error Handling
    • Registering Providers
    • The Service Locator Pattern
    • Generic Clients
  13. Filters and Interceptors
    • The Filter Interfaces
    • Processing Pattern
    • The Request and Response Context Interfaces
    • Aborting a Request
    • The Interceptor Interfaces
    • Adaptive Streams
    • Filters on the Client Side
    • Interceptor Strategy for Hypermedia
  14. Testing
    • Testing JAX-RS Services
    • Unit Testing and Integration Testing
    • Mocking the Container
    • The Jersey Test Framework
    • Test Configuration
    • Mocking Dependencies
    • Testing JAX-RS Clients
    • Mocking Services
  15. Security
    • Concerns for RESTful Services
    • Authentication and Authorization
    • HTTPS
    • Programmatic Security
    • SQL Injection
    • Cross-Site Request Forgery
    • Message-Level Security
    • HMACs
Download conspect training as PDF

Additional information

  • Strong Java programming skills are essential -- Course 103 is excellent preparation.
  • Experience with other Java EE standards, especially servlets and JSP, will be very helpful in class, but is not strictly required.
Difficulty level
Duration 5 days

The participants will obtain certificates signed by Capstone Courseware.


Authorized Capstone Courseware Trainer.

Other training Capstone Courseware | XML and Web Services

Training thematically related



Contact form

Please fill form below to obtain more info about this training.

* Fields marked with (*) are required !!!

Information on data processing by Compendium - Centrum Edukacyjne Spółka z o.o.

1150 EUR


Discount codes

Discount code may refer to (training, producer, deadline). If you have a discount code, enter it in the appropriate field.
(green means entering the correct code | red means the code is incorrect)



Traditional training

Sessions organised at Compendium CE are usually held in our locations in Kraków and Warsaw, but also in venues designated by the client. The group participating in training meets at a specific place and specific time with a coach and actively participates in laboratory sessions.

Dlearning training

You may participate from at any place in the world. It is sufficient to have a computer (or, actually a tablet, or smartphone) connected to the Internet. Compendium CE provides each Distance Learning training participant with adequate software enabling connection to the Data Center. For more information, please visit site



Paper materials

Traditional Materials: The price includes standard materials issued in the form of paper books, printed or other, depending on the arrangements with the manufacturer.

Ctab materials

Ctab materials: the price includes ctab tablet and electronic training materials or traditional training materials and supplies provided electronically according to manufacturer's specifications (in PDF or EPUB form). The materials provided are adapted for display on ctab tablets. For more information, check out the ctab website.



No deadlines for this training.

Suggest your own appointment

Upcoming Capstone Courseware training

Training schedule
Capstone Courseware