$995.00
$945.25 CAD / 2 DAYS

web special rate

1) Select Location for Dates in Your City:


Choose Date

  • No available dates.

Notify me Click on date to Register Now or click Notify Me to receive an email notification when course is Guaranteed to Run. once the following courses become Guaranteed to run.

No available dates.
Canada
,
Canada
,
Canada
,

Jump to Shopping Cart Continue shopping

JVF15: RESTful Java and Web Services

 

Summary

2 days

Representational State Transfer (REST) has gained widespread acceptance across the Web as a simpler alternative to SOAP – and Web Services Description Language. The Java API for Restful web service is a new API that aims to make development web services in Java simple.

Prerequisites

Course JV002Java Programming Languageor equivalent knowledge.

Table of Content

Chapter 1: Introduction

  • What is REST?
  • Why is it Called Representation State Transfer?
  • Set of Constrain
  • Rest – An Architectural Style.
  • Rest And SOAP
  • Resources
  • Representation
  • A Uniform Resource Identifier (URI)
  • Resource-Oriented Architecture
  • REST – Not a Standard
  • HTTP Methods
  • Resources With Multiple Representations
  • Web Services
  • Summary

Chapter 2: Examples

  • Example 1: Parts Depot
    • Logical URLs Versus Physical URLs.
    • Java, REST And RESTEasy.
  • Example 2: Hello World
    • Creating Project
    • HelloWorldResource Class
    • Registering Web Services
    • Web.xml File
    • Export WAR File
    • Run Web Service
  • Exercise
  • Method with Parameter
  • Method with More then One Parameter
  • Exercise

Chapter 3: Design RESTful Service

  • Designing A RESTful Web Service
  • Design Principles
  • Requirements
  • Resource Identification
  • Representation Definition
  • URI Definition
  • @Path Annotation
  • @Path: Template Parameters
  • @Produces Annotation
  • @Consumes Annotation
  • Application Class
  • JAX-RS And Java Interfaces
  • Customers Example
  • Customer Class
    • CustomersResource Class
    • Retriving Customers
    • Updating a Customer
    • The outputCustomer() Method
    • The readCustomer() Method
    • Run Example
  • Summary

Chapter 4: JAX-RS Injection

  • @PathParam Annotation
  • @FormParam Annotation
  • @QueryParam Annotation
  • @HeaderParam Annotation
  • @CookieParam Annotation
  • @Content Annotation
  • Example: @HeaderParam
  • Example: @Content InputForm
  • Input Form With More Then One Buttons
  • Example: @FormParam
  • Matrix Parameters
  • PathSegment And Matrix Parameters
  • Automatic Conversion
  • @DefaultValue Annotation
  • Example
  • Exercise
  • Summary

Chapter 5: Filters and Interceptors

  • Introduction
  • Filters
  • Server Side Filters
  • Client Side Filters
  • Server Request Filter
  • Example
  • Server Response Filter
  • Client Side Filters
  • Client Request Filter
  • Example
  • Client Response Filter
  • Example
  • Interceptors
  • Reader and Writer Interceptors
  • Writer Interceptors
  • Example
  • Reader (Request) Interceptors
  • Example
  • Another Example

Chapter 6: Client API

  • Introduction
  • Client Interface
  • ClientBuilder Class
  • WebTarget Class
  • Entity Class
  • More About Client API
  • Building and Invoking Request
  • Response get() Method
  • Example
  • Example Details
  • PUT and POST Requests
  • More About Entity Class
  • POST Example
  • Form Class
  • Example
  • GET Example

Chapter 7: Content Negotiation

  • Overview
  • Explanation
  • Preference Ordering
  • Language Negotiation
  • Encoding Negotiation
  • Method Dispatching
  • Example: Return as Text
  • Example: Return as XML
  • Example: Return as JSON
  • Exercise
  • Summary

Chapter 8: EJB 3.1 As A Web Service

  • EJB 3.1 Overview
  • Creating Restful Project in JEE 6
  • Adding EJB To Restful Project
  • Setup Build Pass
  • Simple Client
  • Testing Web Service
  • Example
  • Exercise
  • Summary