Developing RESTful Services Using Java Version 2.0 Training in Erfurt, Germany

Enroll in or hire us to teach our Developing RESTful Services Using Java Version 2.0 class in Erfurt, Germany by calling us @303.377.6176. Like all HSG classes, Developing RESTful Services Using Java Version 2.0 may be offered either onsite or via instructor led virtual training. Consider looking at our public training schedule to see if it is scheduled: Public Training Classes
Provided there are enough attendees, Developing RESTful Services Using Java Version 2.0 may be taught at one of our local training facilities.
We offer private customized training for groups of 3 or more attendees.

Course Description

 
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.
Course Length: 5 Days
Course Tuition: $2090 (US)

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

Java Programming Uses & Stats

Java Programming is Used For:
Android & IOS Development Software Products Video Games Desktop GUI's
Difficulty
Popularity
Year Created
1995
Pros

Most Commonly Used: 
According to Oracle, three billion devices run on Java.  And, because of its real-world applications, it consistently ranks at the top of the TIOBE Programming Community Index. 

Great Career Choice: 
Some of the fastest-growing salaries in the U.S. in 2018 are for Java developers.  (Glassdoor)  

Android Apps Development:
Developers predominatly use their Java skills in building apps for Google's Android. The Android platform is the number one mobile paltform in the world

It Can Run On Any Platform:
Java can compile on Windows and run the same compiled file on Linux, Windows and Mac.

Great Supporting IDE's:
Over the years, coding in Java has become simpler with the introduction of open source development tools, i.e. Eclipse and NetBeans that use Java capabilities for debugging.  
 

Cons

Uses a Lot of Memory:
Performance can be significantly slower with Java and more memory-consuming than natively compiled languages such as C or C++.

Difficulty in Learning: 
Learning Java can be a bit challenging if you are a beginner.  However, once you get the hang of Object Oriented Programming and a decent grasp of the syntax, you will be well on your way.

Slow Start Up Times:
There is quite a bit of one-time initialization done by JDK classes before compiling as well as loading classes and verification (making sure code doesn't do evil things, all of which takes longer that some other languages such as C. 

Verbose and Complex Code:
Long, over-complicated sentences make code less readable and scannable. Compare to let's say Python, we can see how clear Python code appears: It doesn’t require semicolons; uses “and,” “or,” and “not” as operators instead of Java’s “&&,” “||,” and “!”; and generally has fewer bells and whistles such as parentheses or curly braces.

Commercial License Cost:
Companies have to prepare for the changes that Oracle will institute in 2019 . Today, the current version of Java is free and available for redistribution for general purpose computing. However, If you are a DEVELOPER, Oracle recommends you review the roadmap information for Java SE 8 and beyond and take appropriate action depending on the type of application you develop and your distribution mode.

Java Programming Job Market
Average Salary
$102,000
Job Count
26,856
Top Job Locations

New York City 
San Jose
Washington D.C, 

Complimentary Skills to have along with Java Programming

- If you are an experienced Java developer, learning a complimentary language to Java should come much more naturally.  As an example JetBrains recently created the Kotlin programming language which is officially supported by Google for mobile development.  Kotlin compiles to Java bytecode and runs on the JVM; it's purported to address many of Java's shortcomings...

Interesting Reads Take a class with us and receive a book of your choosing for 50% off MSRP.