Live Chat
Monday - Friday 8am - 6pm EST Chat Now
Contact Us
Monday - Friday 8am - 8pm EST 1-866-716-6688 Other Contact Options
Checkout

Cart () Loading...

    • Quantity:
    • Delivery:
    • Dates:
    • Location:

    $

RESTful Java and Web Services

New – Learn about the Java API for Restful web service–a new API that aims to make development web services in Java simple.

GK# 6966

Course Overview

TOP

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.

Schedule

TOP
  • Delivery Format:
  • Date:
  • Location:
  • Access Period:

$

What You'll Learn

TOP
  • Design RESTful Service
  • JAX-RS Injection
  • Filters and Interceptors
  • Client API
  • Content Negotiation
  • EJB 3.1 As a Web Service

Outline

TOP
Viewing outline for:

Classroom Live Outline

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
  • 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

Prerequisites

TOP
Course Delivery

This course is available in the following formats:

Classroom Live

Receive face-to-face instruction at one of our training center locations.

Duration: 2 day

Virtual Classroom Live

Experience expert-led online training from the convenience of your home, office or anywhere with an internet connection.

Duration: 2 day

Request this course in a different delivery format.
Enroll