Instructor-led training
Developing RESTful Services Using Java Version 2.0 Training in Boca Raton, Florida
This course shows experienced Java programmers how to build RESTful web services using the Java API for RESTful Web Services, or JAX-RS.
What you'll learn
This course shows experienced Java programmers how to build RESTful web
services using the Java API for RESTful Web Services, or JAX-RS. We
develop a clear sense of 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 the JAX-RS client API, and filters and interceptors, before
closing with a summary chapter on REST security that includes
implementations of HTTP BASIC security and HMAC signatures.
Prerequisites
Strong Java programming skills are essential. Experience
with other Java EE standards, especially servlets and JSP, will be very
helpful in class, but is not strictly required.
Course Outline
Chapter 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
Chapter 2. Configuration and Lifecycle
- The JAX-RS Application
- XML Configuration
- Annotation-Driven Configuration
- Applications
- Root Resource Classes
- Per-Request vs. Singleton Lifecycle
- Providers
Chapter 3. Dispatching 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
Chapter 4. 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
Chapter 5. Producing Responses
- Supported Return Types
- The Response Class
- Response Entities
- Binary Content
- Delivering a File
Chapter 6. Entity Translation
- Entity Parameter and Return Type
- Entity Providers
- @Consumes and @Produces Annotations
- Built-In Entity Providers
- Custom Entity Providers
Chapter 7. 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
Chapter 8. Dependency Injection
- The @Context Annotation
- Injectable Types
- The Application Subclass
- Servlet Configuration and Context
- Impact of Lifecycle Policies
- Context Providers
- Using CDI
Chapter 9. Validation and Error Handling
- Using Response
- Throwing WebApplicationException
- Exception Mapping Providers
- Selection of Exception Mappers
- Support for JSR-303
- Annotating Method Parameters
- Annotating Entity Classes
- Error Reporting
Chapter 10. Generic Services
- Generic Entities
- Generic Entity Providers
- ParameterizedType
- Reflection-Driven Entity Providers
- Annotation Inheritance
- CRUD Patterns, II
- Serialization, Recursion, and Scope
- Dynamic Sub-Resources
Chapter 11. Working with Databases
- Persistence Services
- The Java Persistence API
- JPA Support for JSR-303
- Handling IDs and Keys
- Cascading
- Caching
- Error Handling
- Hypermedia Challenges
Chapter 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
Chapter 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
Chapter 14. Security
- Concerns for RESTful Services
- Authentication and Authorization
- HTTP BASIC and DIGEST
- HTTPS
- Programmatic Security
- SQL Injection
- Cross-Site Request Forgery
- Message-Level Security
- HMACs
Chapter 15. The Java API for XML Binding
- The Need for Data Binding
- XML Schema
- Two Paths
- JAXB Compilation
- Mapping Schema Types to Java
- Java-to-XML Mapping Using Annotations
- Marshalling and Unmarshalling
- Working with JAXB Object Models
Training locations
Developing RESTful Services Using Java Version 2.0 training across the U.S. and beyond.
We provide Developing RESTful Services Using Java Version 2.0 training onsite and live online for organizations throughout the United States and internationally.
View all Developing RESTful Services Using Java Version 2.0 training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- Training for groups of 3 or more
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.